diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Views')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/AboutView.xaml | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/AddPresetView.xaml | 20 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/ChaptersView.xaml | 21 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/LogView.xaml | 9 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 65 |
5 files changed, 61 insertions, 58 deletions
diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml b/win/CS/HandBrakeWPF/Views/AboutView.xaml index ac625ef5d..01fc3f2d0 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml @@ -34,11 +34,11 @@ <StackPanel Grid.Row="0"
Margin="5,10,0,0"
Orientation="Horizontal">
- <TextBlock Margin="0,0,5,0" FontSize="16" FontFamily="Segoe UI Light" Text="Version: " />
+ <TextBlock Margin="0,0,5,0" FontSize="16" FontFamily="Segoe UI Light" Text="{x:Static Properties:ResourcesUI.MainView_AudioTab}" />
<TextBlock Margin="0,0,0,1" FontSize="16" FontFamily="Segoe UI Light" VerticalAlignment="Bottom" Text="{Binding Version}" />
</StackPanel>
- <TextBlock Grid.Row="1" Margin="5,10,0,5" Text="License: " />
+ <TextBlock Grid.Row="1" Margin="5,10,0,5" Text="{x:Static Properties:ResourcesUI.AboutView_License}" />
<TextBox Text="{x:Static Properties:Resources.About_GPL}" Grid.Row="2" Margin="10,0,10,10" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" />
diff --git a/win/CS/HandBrakeWPF/Views/AddPresetView.xaml b/win/CS/HandBrakeWPF/Views/AddPresetView.xaml index 9940282c7..eb9d67b26 100644 --- a/win/CS/HandBrakeWPF/Views/AddPresetView.xaml +++ b/win/CS/HandBrakeWPF/Views/AddPresetView.xaml @@ -33,8 +33,8 @@ <RowDefinition Height="Auto" />
</Grid.RowDefinitions>
- <TextBlock Text="Add Preset" FontSize="26" FontFamily="Segoe UI Light" FontWeight="Bold" Margin="10,10,10,10" Grid.Row="0" />
-
+ <TextBlock Text="{x:Static Properties:ResourcesUI.AddPresetView_AddPreset}" FontSize="26" FontFamily="Segoe UI Light" FontWeight="Bold" Margin="10,10,10,10" Grid.Row="0" />
+
<!-- Header -->
<Grid Grid.Row="1" Margin="10,0,10,0">
<Grid.ColumnDefinitions>
@@ -56,7 +56,7 @@ <!-- Name -->
<TextBlock Grid.Row="0"
Grid.Column="0"
- Text="Name:" />
+ Text="{x:Static Properties:ResourcesUI.AddPresetView_Name}" />
<TextBox Grid.Row="0"
Grid.Column="1"
Width="150"
@@ -64,12 +64,12 @@ Text="{Binding Preset.Name}" />
<!-- Settings -->
- <TextBlock Grid.Row="2" Margin="0,10,0,0"
+ <TextBlock Grid.Row="2" Margin="0,10,10,0"
Grid.Column="0"
Style="{StaticResource LongToolTipHolder}"
VerticalAlignment="Center"
ToolTip="{x:Static Properties:Resources.AddPreset_PictureSizeMode}"
- Text="Save Picture Size:" />
+ Text="{x:Static Properties:ResourcesUI.AddPresetView_SavePictureSize}" />
<ComboBox Grid.Row="2" Margin="0,10,0,0"
Grid.Column="1"
Width="125"
@@ -99,13 +99,13 @@ <CheckBox Grid.Row="4"
Grid.Column="0" Grid.ColumnSpan="2"
Margin="0,10,0,0"
- Content="Save Video Filter Settings"
+ Content="{x:Static Properties:ResourcesUI.AddPresetView_SaveVideoFilters}"
IsChecked="{Binding Preset.UsePictureFilters}" />
<!-- Description -->
<TextBlock Grid.Row="5"
Grid.Column="0" Margin="0,10,0,0"
- Text="Description:" />
+ Text="{x:Static Properties:ResourcesUI.AddPresetView_Description}" />
<TextBox Grid.Row="5"
Grid.Column="1" Margin="0,10,0,0"
HorizontalAlignment="Stretch"
@@ -115,7 +115,7 @@ <!-- Controls -->
<Grid Grid.Row="3"
Margin="0,20,0,0">
-
+
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
@@ -125,13 +125,13 @@ <Button Grid.Column="1"
Margin="0,5,10,10"
cal:Message.Attach="[Event Click] = [Action Cancel]"
- Content="Cancel"
+ Content="{x:Static Properties:ResourcesUI.Generic_Cancel}"
IsCancel="True"
Padding="8,2" />
<Button Grid.Column="2"
Margin="0,5,10,10"
cal:Message.Attach="[Event Click] = [Action Add]"
- Content="Add"
+ Content="{x:Static Properties:ResourcesUI.Generic_Add}"
IsDefault="True"
Padding="8,2" />
</Grid>
diff --git a/win/CS/HandBrakeWPF/Views/ChaptersView.xaml b/win/CS/HandBrakeWPF/Views/ChaptersView.xaml index 583e2c41d..6dfe53410 100644 --- a/win/CS/HandBrakeWPF/Views/ChaptersView.xaml +++ b/win/CS/HandBrakeWPF/Views/ChaptersView.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="http://www.caliburnproject.org"
+ xmlns:Properties="clr-namespace:HandBrakeWPF.Properties"
d:DesignHeight="170"
d:DesignWidth="616"
mc:Ignorable="d" >
@@ -13,7 +14,7 @@ <RowDefinition Height="*" />
</Grid.RowDefinitions>
- <TextBlock Text="Chapter Markers" FontWeight="Bold" Margin="10,5,0,0" Grid.Row="0" ></TextBlock>
+ <TextBlock Text="{x:Static Properties:ResourcesUI.ChaptersView_ChapterMarkers}" FontWeight="Bold" Margin="10,5,0,0" Grid.Row="0" ></TextBlock>
<Grid Grid.Row="1" Margin="10,5,10,0">
<Grid.ColumnDefinitions>
@@ -22,9 +23,9 @@ <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
- <CheckBox Content="Create chapter markers" IsChecked="{Binding IncludeChapterMarkers}" Grid.Column="0" VerticalAlignment="Center" />
- <Button Content="Import" Name="import" Grid.Column="2" Width="75" Margin="0,0,10,0" cal:Message.Attach="[Event Click] = [Action Import]" />
- <Button Content="Export" Name="export" Grid.Column="3" Width="75" cal:Message.Attach="[Event Click] = [Action Export]" />
+ <CheckBox Content="{x:Static Properties:ResourcesUI.ChaptersView_CreateChapterMarkers}" IsChecked="{Binding IncludeChapterMarkers}" Grid.Column="0" VerticalAlignment="Center" />
+ <Button Content="{x:Static Properties:ResourcesUI.ChaptersView_Import}" Name="import" Grid.Column="2" Width="75" Margin="0,0,10,0" cal:Message.Attach="[Event Click] = [Action Import]" />
+ <Button Content="{x:Static Properties:ResourcesUI.ChaptersView_Export}" Name="export" Grid.Column="3" Width="75" cal:Message.Attach="[Event Click] = [Action Export]" />
</Grid>
<DataGrid Grid.Row="2" Margin="10" ItemsSource="{Binding Task.ChapterNames}"
@@ -38,16 +39,16 @@ </DataGrid.CellStyle>
<DataGrid.ContextMenu>
<ContextMenu>
- <MenuItem Header="Import Names" cal:Message.Attach="[Event Click] = [Action Import]" />
- <MenuItem Header="Export Names" cal:Message.Attach="[Event Click] = [Action Export]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.ChapterView_ImportNames}" cal:Message.Attach="[Event Click] = [Action Import]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.ChapterView_ExportNames}" cal:Message.Attach="[Event Click] = [Action Export]" />
<Separator />
- <MenuItem Header="Reset Chapter Names" cal:Message.Attach="[Event Click] = [Action Reset]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.ChapterView_ResetChapterNames}" cal:Message.Attach="[Event Click] = [Action Reset]" />
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.Columns>
- <DataGridTextColumn Header="Chapter Number" Width="120" Binding="{Binding ChapterNumber}" IsReadOnly="True" />
- <DataGridTextColumn Header="Duration" Width="100" Binding="{Binding Duration}" IsReadOnly="True" />
- <DataGridTextColumn Header="Chapter Name" Width="*" Binding="{Binding ChapterName}" IsReadOnly="False" />
+ <DataGridTextColumn Header="{x:Static Properties:ResourcesUI.ChaptersView_ChapterNumber}" Width="120" Binding="{Binding ChapterNumber}" IsReadOnly="True" />
+ <DataGridTextColumn Header="{x:Static Properties:ResourcesUI.ChaptersView_Duration}" Width="100" Binding="{Binding Duration}" IsReadOnly="True" />
+ <DataGridTextColumn Header="{x:Static Properties:ResourcesUI.ChaptersView_ChapterName}" Width="*" Binding="{Binding ChapterName}" IsReadOnly="False" />
</DataGrid.Columns>
</DataGrid>
diff --git a/win/CS/HandBrakeWPF/Views/LogView.xaml b/win/CS/HandBrakeWPF/Views/LogView.xaml index 163133f94..64ca9da2d 100644 --- a/win/CS/HandBrakeWPF/Views/LogView.xaml +++ b/win/CS/HandBrakeWPF/Views/LogView.xaml @@ -2,6 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="http://www.caliburnproject.org"
+ xmlns:Properties="clr-namespace:HandBrakeWPF.Properties"
Title="{Binding Title}"
Width="525"
Height="600"
@@ -25,13 +26,13 @@ <Button cal:Message.Attach="[Event Click] = [Action CopyLog]" Margin="10,0,0,0">
<StackPanel Orientation="Horizontal">
<Image Width="16" Source="Images/copy.png" />
- <TextBlock Margin="2,0,0,0" Text="Copy to clipboard" />
+ <TextBlock Margin="2,0,0,0" Text="{x:Static Properties:ResourcesUI.LogView_CopyClipboard}" />
</StackPanel>
</Button>
<Button Margin="5,0,0,0" cal:Message.Attach="[Event Click] = [Action OpenLogDirectory]">
<StackPanel Orientation="Horizontal">
<Image Width="16" Source="Images/folder.png" />
- <TextBlock Margin="2,0,0,0" Text="Open Log Directory" />
+ <TextBlock Margin="2,0,0,0" Text="{x:Static Properties:ResourcesUI.LogView_OpenLogDir}" />
</StackPanel>
</Button>
@@ -41,7 +42,7 @@ <TabControl Grid.Row="2" SelectedIndex="{Binding SelectedTab}" Margin="0,3,0,0">
<TabItem>
<TabItem.Header>
- <TextBlock Text="Encode Log" Padding="4">
+ <TextBlock Text="{x:Static Properties:ResourcesUI.LogView_EncodeLog}" Padding="4">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Style.Triggers>
@@ -64,7 +65,7 @@ <TabItem>
<TabItem.Header>
- <TextBlock Text="Scan Log" Padding="4">
+ <TextBlock Text="{x:Static Properties:ResourcesUI.LogView_ScanLog}" Padding="4">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Style.Triggers>
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 80ff24c61..13c1ccd8b 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -6,6 +6,7 @@ xmlns:Micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:commands="clr-namespace:HandBrakeWPF.Commands"
+ xmlns:Properties="clr-namespace:HandBrakeWPF.Properties"
AllowDrop="True"
FontSize="11"
Micro:Message.Attach="[Event Loaded] = [Action Load]"
@@ -155,7 +156,7 @@ />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="Source"
+ Content="{x:Static Properties:ResourcesUI.MainView_Source}"
/>
</StackPanel>
</Button>
@@ -175,7 +176,7 @@ />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="{Binding StartLabel, FallbackValue='Start'}"
+ Content="{Binding StartLabel, FallbackValue='{x:Static Properties:ResourcesUI.MainView_StartEncode}'}"
/>
</StackPanel>
</Button>
@@ -194,7 +195,7 @@ />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="Stop"
+ Content="{x:Static Properties:ResourcesUI.MainView_Stop}"
/>
</StackPanel>
</Button>
@@ -213,7 +214,7 @@ />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="Pause"
+ Content="{x:Static Properties:ResourcesUI.MainView_Pause}"
/>
</StackPanel>
</Button>
@@ -238,7 +239,7 @@ />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="Add to Queue"
+ Content="{x:Static Properties:ResourcesUI.MainView_AddToQueue}"
/>
</StackPanel>
<Button.Style>
@@ -285,7 +286,7 @@ />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="{Binding QueueLabel, FallbackValue='Show Queue'}"
+ Content="{Binding QueueLabel, FallbackValue='{x:Static Properties:ResourcesUI.MainView_ShowQueue}'}"
/>
</StackPanel>
</Button>
@@ -341,18 +342,18 @@ VerticalAlignment="Stretch"
>
<StackPanel Orientation="Horizontal">
- <Label Content="Source" FontWeight="Bold" />
+ <Label Content="{x:Static Properties:ResourcesUI.MainView_Source}" FontWeight="Bold" />
<Label Content="{Binding Path=SourceLabel}" />
</StackPanel>
<StackPanel Orientation="Horizontal">
- <Label Margin="8,0,0,0" Content="Title" />
+ <Label Margin="8,0,0,0" Content="{x:Static Properties:ResourcesUI.MainView_Title}" />
<ComboBox Name="Titles"
MinWidth="100"
Margin="8,0,0,0"
ItemsSource="{Binding ScannedSource.Titles}"
SelectedItem="{Binding Path=SelectedTitle}"
/>
- <Label Margin="8,0,0,0" Content="Angle" />
+ <Label Margin="8,0,0,0" Content="{x:Static Properties:ResourcesUI.MainView_Angle}" />
<ComboBox Name="Angles"
MinWidth="60"
@@ -382,7 +383,7 @@ ConverterParameter=false}"
/>
- <Label Margin="4,0,0,0" Content="through" />
+ <Label Margin="4,0,0,0" Content="{x:Static Properties:ResourcesUI.MainView_through}" />
<ComboBox Name="EndPoint"
MinWidth="60"
Margin="4,0,0,0"
@@ -399,7 +400,7 @@ ConverterParameter=false}"
/>
- <Label Margin="4,0,0,0" Content="Duration" />
+ <Label Margin="4,0,0,0" Content="{x:Static Properties:ResourcesUI.MainView_Duration}" />
<Label Margin="4,0,0,0" Content="{Binding Duration}" />
</StackPanel>
@@ -412,14 +413,14 @@ HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
>
- <Label Content="Destination" FontWeight="Bold" />
+ <Label Content="{x:Static Properties:ResourcesUI.MainView_Destination}" FontWeight="Bold" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
- <Label Margin="8,0,0,0" Content="File" />
+ <Label Margin="8,0,0,0" Content="{x:Static Properties:ResourcesUI.MainView_File}" />
<TextBox Name="Destination"
Grid.Column="1"
Margin="8,0,0,0"
@@ -447,9 +448,9 @@ HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
>
- <Label Content="Output Settings" FontWeight="Bold" />
+ <Label Content="{x:Static Properties:ResourcesUI.MainView_OutputSettings}" FontWeight="Bold" />
<StackPanel Orientation="Horizontal">
- <Label Margin="8,0,0,0" Content="Container" />
+ <Label Margin="8,0,0,0" Content="{x:Static Properties:ResourcesUI.MainView_Container}" />
<ComboBox Name="Container"
MinWidth="100"
Margin="8,0,0,0"
@@ -459,7 +460,7 @@ <CheckBox Name="WebOptimized"
Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="Web Optimized"
+ Content="{x:Static Properties:ResourcesUI.MainView_WebOptimized}"
IsChecked="{Binding Path=CurrentTask.OptimizeMP4}"
Visibility="{Binding IsMkv,
Converter={StaticResource boolToVisConverter},
@@ -468,7 +469,7 @@ <CheckBox Name="iPod5G"
Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="iPod 5G Support"
+ Content="{x:Static Properties:ResourcesUI.MainView_iPod5G}"
IsChecked="{Binding Path=CurrentTask.IPod5GSupport}"
Visibility="{Binding IsMkv,
Converter={StaticResource boolToVisConverter},
@@ -485,25 +486,25 @@ VerticalAlignment="Stretch"
MinHeight="350" MinWidth="720"
>
- <TabItem Name="pictureTab" Header="Picture">
+ <TabItem Name="pictureTab" Header="{x:Static Properties:ResourcesUI.MainView_PictureTab}">
<ContentControl x:Name="PictureSettingsViewModel" />
</TabItem>
- <TabItem Name="filtersTab" Header="Filters">
+ <TabItem Name="filtersTab" Header="{x:Static Properties:ResourcesUI.MainView_FiltersTab}">
<ContentControl x:Name="FiltersViewModel" />
</TabItem>
- <TabItem Name="videoTab" Header="Video">
+ <TabItem Name="videoTab" Header="{x:Static Properties:ResourcesUI.MainView_VideoTab}">
<ContentControl x:Name="VideoViewModel" />
</TabItem>
- <TabItem Name="audioTab" Header="Audio">
+ <TabItem Name="audioTab" Header="{x:Static Properties:ResourcesUI.MainView_AudioTab}">
<ContentControl x:Name="AudioViewModel" />
</TabItem>
- <TabItem Name="subtitlesTab" Header="Subtitles">
+ <TabItem Name="subtitlesTab" Header="{x:Static Properties:ResourcesUI.MainView_SubtitlesTab}">
<ContentControl x:Name="SubtitleViewModel" />
</TabItem>
- <TabItem Name="chaptersTab" Header="Chapters">
+ <TabItem Name="chaptersTab" Header="{x:Static Properties:ResourcesUI.MainView_ChaptersTab}">
<ContentControl x:Name="ChaptersViewModel" />
</TabItem>
- <TabItem Name="advancedTab" Header="Advanced" Visibility="{Binding ShowAdvancedTab, Converter={StaticResource boolToVisConverter}}">
+ <TabItem Name="advancedTab" Header="{x:Static Properties:ResourcesUI.MainView_AdvancedTab}" Visibility="{Binding ShowAdvancedTab, Converter={StaticResource boolToVisConverter}}">
<ContentControl x:Name="AdvancedViewModel" />
</TabItem>
</TabControl>
@@ -590,7 +591,7 @@ <TextBlock Margin="2,0,0,0"
VerticalAlignment="Center"
Style="{StaticResource textBlockOrangeStyle}"
- Text="Add"
+ Text="{x:Static Properties:ResourcesUI.Generic_Add}"
/>
</StackPanel>
</Button.Content>
@@ -606,7 +607,7 @@ <TextBlock Margin="2,0,0,0"
VerticalAlignment="Center"
Style="{StaticResource textBlockOrangeStyle}"
- Text="Remove"
+ Text="{x:Static Properties:ResourcesUI.MainView_Remove}"
/>
</StackPanel>
</Button.Content>
@@ -623,18 +624,18 @@ <TextBlock Margin="2,0,0,0"
VerticalAlignment="Center"
Style="{StaticResource textBlockOrangeStyle}"
- Text="Options"
+ Text="{x:Static Properties:ResourcesUI.MainView_Options}"
/>
</StackPanel>
</MenuItem.Header>
- <MenuItem Header="Set Default" Micro:Message.Attach="[Event Click] = [Action PresetSetDefault]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_SetDefault}" Micro:Message.Attach="[Event Click] = [Action PresetSetDefault]" />
<Separator />
- <MenuItem Header="Update Selected Preset" Micro:Message.Attach="[Event Click] = [Action PresetUpdate]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_UpdateSelectedPreset}" Micro:Message.Attach="[Event Click] = [Action PresetUpdate]" />
<Separator />
- <MenuItem Header="Import" Micro:Message.Attach="[Event Click] = [Action PresetImport]" />
- <MenuItem Header="Export" Micro:Message.Attach="[Event Click] = [Action PresetExport]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.Generic_Import}" Micro:Message.Attach="[Event Click] = [Action PresetImport]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.Generic_Export}" Micro:Message.Attach="[Event Click] = [Action PresetExport]" />
<Separator />
- <MenuItem Header="Reset Built-in Presets" Micro:Message.Attach="[Event Click] = [Action PresetReset]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_ResetBuiltInPresets}" Micro:Message.Attach="[Event Click] = [Action PresetReset]" />
</MenuItem>
</Menu>
</ToolBar>
|