diff options
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/Controls/SourceSelection.xaml | 24 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs | 99 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Properties/ResourcesUI.resx | 33 |
3 files changed, 144 insertions, 12 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml index 17fc82164..c887a1c1e 100644 --- a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml +++ b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="http://www.caliburnproject.org"
xmlns:controls="clr-namespace:HandBrakeWPF.Controls"
- >
+ xmlns:Properties="clr-namespace:HandBrakeWPF.Properties">
<Grid VerticalAlignment="Stretch">
@@ -28,19 +28,19 @@ <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="20,8,0,0">
- <TextBlock Text="Source Selection" FontSize="26" FontFamily="Segoe UI Light" />
+ <TextBlock Text="{x:Static Properties:ResourcesUI.SourceSelection_SourceSelection}" FontSize="26" FontFamily="Segoe UI Light" />
</StackPanel>
<!-- Title Specific Scan -->
<StackPanel Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Left" Margin="20,15,0,0">
<StackPanel Orientation="Horizontal">
- <TextBlock Text="Optionally choose a specific title: " />
+ <TextBlock Text="{x:Static Properties:ResourcesUI.SourceSelection_ChooseSpecificTitle}" />
<controls:NumberBox Width="60" Height="24" Margin="10,0,0,0"
Minimum="0" Maximum="5000" Number="{Binding TitleSpecificScan, Mode=TwoWay}" />
</StackPanel>
- <TextBlock Text="Then choose the video(s) you'd like to encode: " Margin="0,10,0,0" />
+ <TextBlock Text="{x:Static Properties:ResourcesUI.SourceSelection_ChooseVideo}" Margin="0,10,0,0" />
</StackPanel>
<!-- Source Type -->
@@ -53,26 +53,26 @@ </Grid.RowDefinitions>
<!-- Ctrl + R -->
- <Button Grid.Row="0" AutomationProperties.Name="Choose Folder to Scan" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FolderScan]"
+ <Button Grid.Row="0" AutomationProperties.Name="{x:Static Properties:ResourcesUI.SourceSelection_ChooseFolder}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FolderScan]"
Margin="0,0,0,7" Padding="8" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal" MinWidth="100">
<Image Source="../Views/Images/folder32.png" Width="32" />
<StackPanel Orientation="Vertical">
- <TextBlock Text="Folder (Batch Scan)" VerticalAlignment="Center" Margin="5,0,0,0" />
- <TextBlock Text="Open a folder with one or more files." VerticalAlignment="Center" Margin="5,0,0,0" />
+ <TextBlock Text="{x:Static Properties:ResourcesUI.SourceSelection_FolderBatchScan}" VerticalAlignment="Center" Margin="5,0,0,0" />
+ <TextBlock Text="{x:Static Properties:ResourcesUI.SourceSelection_OpenFolderWIth}" VerticalAlignment="Center" Margin="5,0,0,0" />
</StackPanel>
</StackPanel>
</Button>
<!--Ctrl + F-->
- <Button Grid.Row="1" AutomationProperties.Name="Choose File to Scan" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FileScan]"
+ <Button Grid.Row="1" AutomationProperties.Name="{x:Static Properties:ResourcesUI.SourceSelection_ChooseFile}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FileScan]"
Margin="0,0,0,7" Padding="8" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal" MinWidth="100">
<Image Source="../Views/Images/File32.png" Width="32" />
<StackPanel Orientation="Vertical">
- <TextBlock Text="File" VerticalAlignment="Center" Margin="5,0,0,0" />
- <TextBlock Text="Open a single video file." VerticalAlignment="Center" Margin="5,0,0,0" />
+ <TextBlock Text="{x:Static Properties:ResourcesUI.SourceSelection_File}" VerticalAlignment="Center" Margin="5,0,0,0" />
+ <TextBlock Text="{x:Static Properties:ResourcesUI.SourceSelection_SingleVideoFile}" VerticalAlignment="Center" Margin="5,0,0,0" />
</StackPanel>
</StackPanel>
</Button>
@@ -83,12 +83,12 @@ <Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
cal:Message.Attach="[Event Click] = [Action ProcessDrive($this.Tag)]"
Margin="0,0,0,10" Padding="8" HorizontalAlignment="Left"
- Tag="{Binding}" AutomationProperties.Name="Choose Disc to Scan">
+ Tag="{Binding}" AutomationProperties.Name="{x:Static Properties:ResourcesUI.SourceSelection_ChooseDisc}">
<StackPanel Orientation="Horizontal" MinWidth="100">
<Image Source="../Views/Images/Disc.png" Width="32" />
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding Text}" VerticalAlignment="Center" Margin="5,0,0,0" />
- <TextBlock Text="Open this DVD or Bluray Drive" VerticalAlignment="Center" Margin="5,0,0,0" />
+ <TextBlock Text="{x:Static Properties:ResourcesUI.SourceSelection_OpenDVDBluray}" VerticalAlignment="Center" Margin="5,0,0,0" />
</StackPanel>
</StackPanel>
</Button>
diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs b/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs index efd1cf59f..b5f058344 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs @@ -1393,6 +1393,105 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
+ /// Looks up a localized string similar to Choose Disc to Scan.
+ /// </summary>
+ public static string SourceSelection_ChooseDisc {
+ get {
+ return ResourceManager.GetString("SourceSelection_ChooseDisc", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Choose File to Scan.
+ /// </summary>
+ public static string SourceSelection_ChooseFile {
+ get {
+ return ResourceManager.GetString("SourceSelection_ChooseFile", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Choose Folder to Scan.
+ /// </summary>
+ public static string SourceSelection_ChooseFolder {
+ get {
+ return ResourceManager.GetString("SourceSelection_ChooseFolder", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Optionally choose a specific title: .
+ /// </summary>
+ public static string SourceSelection_ChooseSpecificTitle {
+ get {
+ return ResourceManager.GetString("SourceSelection_ChooseSpecificTitle", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Then choose the video(s) you'd like to encode: .
+ /// </summary>
+ public static string SourceSelection_ChooseVideo {
+ get {
+ return ResourceManager.GetString("SourceSelection_ChooseVideo", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to File.
+ /// </summary>
+ public static string SourceSelection_File {
+ get {
+ return ResourceManager.GetString("SourceSelection_File", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Folder (Batch Scan).
+ /// </summary>
+ public static string SourceSelection_FolderBatchScan {
+ get {
+ return ResourceManager.GetString("SourceSelection_FolderBatchScan", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Open this DVD or Bluray Drive.
+ /// </summary>
+ public static string SourceSelection_OpenDVDBluray {
+ get {
+ return ResourceManager.GetString("SourceSelection_OpenDVDBluray", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Open a folder with one or more files..
+ /// </summary>
+ public static string SourceSelection_OpenFolderWIth {
+ get {
+ return ResourceManager.GetString("SourceSelection_OpenFolderWIth", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Open a single video file..
+ /// </summary>
+ public static string SourceSelection_SingleVideoFile {
+ get {
+ return ResourceManager.GetString("SourceSelection_SingleVideoFile", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Source Selection.
+ /// </summary>
+ public static string SourceSelection_SourceSelection {
+ get {
+ return ResourceManager.GetString("SourceSelection_SourceSelection", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to Duration:.
/// </summary>
public static string StaticPreviewView_Duration {
diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx index 11b8d5ea5..f750284bd 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx @@ -648,4 +648,37 @@ <data name="VideoView_Video" xml:space="preserve">
<value>Video</value>
</data>
+ <data name="SourceSelection_SourceSelection" xml:space="preserve">
+ <value>Source Selection</value>
+ </data>
+ <data name="SourceSelection_ChooseSpecificTitle" xml:space="preserve">
+ <value>Optionally choose a specific title: </value>
+ </data>
+ <data name="SourceSelection_ChooseVideo" xml:space="preserve">
+ <value>Then choose the video(s) you'd like to encode: </value>
+ </data>
+ <data name="SourceSelection_ChooseFolder" xml:space="preserve">
+ <value>Choose Folder to Scan</value>
+ </data>
+ <data name="SourceSelection_ChooseFile" xml:space="preserve">
+ <value>Choose File to Scan</value>
+ </data>
+ <data name="SourceSelection_OpenDVDBluray" xml:space="preserve">
+ <value>Open this DVD or Bluray Drive</value>
+ </data>
+ <data name="SourceSelection_SingleVideoFile" xml:space="preserve">
+ <value>Open a single video file.</value>
+ </data>
+ <data name="SourceSelection_File" xml:space="preserve">
+ <value>File</value>
+ </data>
+ <data name="SourceSelection_ChooseDisc" xml:space="preserve">
+ <value>Choose Disc to Scan</value>
+ </data>
+ <data name="SourceSelection_FolderBatchScan" xml:space="preserve">
+ <value>Folder (Batch Scan)</value>
+ </data>
+ <data name="SourceSelection_OpenFolderWIth" xml:space="preserve">
+ <value>Open a folder with one or more files.</value>
+ </data>
</root>
\ No newline at end of file |