diff options
author | sr55 <[email protected]> | 2017-12-09 18:02:05 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-12-09 18:02:05 +0000 |
commit | 264f1ee2bbb699f7b7ee4582107b806c474042b9 (patch) | |
tree | 03e4df923742ae3eb2b092ca0591fda424a290bd | |
parent | 238a830dbddec68f597023da5025ecda20a9c177 (diff) |
WinGui: Tidy up some resources
5 files changed, 73 insertions, 13 deletions
diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs index 2cd864b4b..b92043992 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs @@ -19,7 +19,7 @@ namespace HandBrakeWPF.Properties { // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class ResourcesTooltips {
@@ -65,9 +65,7 @@ namespace HandBrakeWPF.Properties { ///
///NLMeans syntax: y-strength=y:y-origin-tune=y:y-patch-size=y:y-range=y:y-frame-count=y:y-prefilter=y:cb-strength=c:cb-origin-tune=c:cb-patch-size=c:cb-range=c:cb-frame-count=c:cb-prefilter=c:cr-strength=c:cr-origin-tune=c:cr-patch-size=c:cr-range=c:cr-frame-count=c:cr-prefilter=c:threads=t
///
- ///NLMeans default: y-strength=6:y-origin-tune=1:y-patch-size=7:y-range=3:y-frame-count=2:y-prefilter=0:cb-strength=6:cb-origin-tune=1:cb-patch-size=7:cb-range=3:cb-frame-count=2:cb-prefilter=0
- ///
- ///HQDN [rest of string was truncated]";.
+ ///NLMeans default: y-strength=6:y-origin-tune=1:y-patch-size=7:y-range=3:y-frame-count=2:y-prefilter=0:cb-strength=6:cb-origin-tune=1:cb-patch-size=7:cb-range=3:cb-frame-count=2:cb-prefilter [rest of string was truncated]";.
/// </summary>
public static string FilterView_CustomDenoiseParams {
get {
@@ -393,6 +391,15 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
+ /// Looks up a localized string similar to Options to control presets..
+ /// </summary>
+ public static string MainView_PresetOptionsContextMenu {
+ get {
+ return ResourceManager.GetString("MainView_PresetOptionsContextMenu", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to Presets are groups of encode settings tailored for specific scenarios. Select the one closest matching your intent.
///
/// Overrides all encode settings. Settings may be further adjusted after selecting a preset..
diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx index 6d31ab411..12f7809cb 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx +++ b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx @@ -457,4 +457,7 @@ Lapsharp's Sprite tune is useful for 1-/4-/8-/16-bit 2-dimensional games. Sprite <data name="MainView_AlignAVStart" xml:space="preserve">
<value>Aligns the initial timestamps of all audio and video streams by inserting blank frames or dropping frames. May improve audio/video sync for broken players that do not honor MP4 edit lists.</value>
</data>
+ <data name="MainView_PresetOptionsContextMenu" xml:space="preserve">
+ <value>Options to control presets.</value>
+ </data>
</root>
\ No newline at end of file diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs b/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs index 7dea4e3a1..045992d05 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs @@ -655,6 +655,33 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
+ /// Looks up a localized string similar to Add All.
+ /// </summary>
+ public static string MainView_AddAll {
+ get {
+ return ResourceManager.GetString("MainView_AddAll", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Add Current.
+ /// </summary>
+ public static string MainView_AddCurrent {
+ get {
+ return ResourceManager.GetString("MainView_AddCurrent", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Add Selection.
+ /// </summary>
+ public static string MainView_AddSelection {
+ get {
+ return ResourceManager.GetString("MainView_AddSelection", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to Add to Queue.
/// </summary>
public static string MainView_AddToQueue {
@@ -853,6 +880,15 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
+ /// Looks up a localized string similar to Preset Options Context Menu.
+ /// </summary>
+ public static string MainView_PresetOptionsContextMenu {
+ get {
+ return ResourceManager.GetString("MainView_PresetOptionsContextMenu", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to Delete Preset.
/// </summary>
public static string MainView_PresetRemove {
diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx index 434ddd3c3..0112f0ff5 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx @@ -989,4 +989,16 @@ This will not affect your current settings in the Subtitle tab.</value> <data name="AddPresetView_AddNewCategory" xml:space="preserve">
<value>-- Add New Category --</value>
</data>
+ <data name="MainView_AddAll" xml:space="preserve">
+ <value>Add All</value>
+ </data>
+ <data name="MainView_AddCurrent" xml:space="preserve">
+ <value>Add Current</value>
+ </data>
+ <data name="MainView_AddSelection" xml:space="preserve">
+ <value>Add Selection</value>
+ </data>
+ <data name="MainView_PresetOptionsContextMenu" xml:space="preserve">
+ <value>Preset Options Context Menu</value>
+ </data>
</root>
\ No newline at end of file diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 89fcb3830..c6e08f7fb 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -128,7 +128,7 @@ ToolBarTray.IsLocked="True"
KeyboardNavigation.TabNavigation="Continue">
- <Button Name="SelectSource" x:Uid="Choose Source" AutomationProperties.Name="Choose Source"
+ <Button Name="SelectSource" x:Uid="Choose Source" AutomationProperties.Name="{x:Static Properties:ResourcesUI.MainView_SourceOpen}"
cal:Message.Attach="[Event Click] = [Action SelectSourceWindow]">
<StackPanel Orientation="Horizontal">
<Image Width="32"
@@ -142,7 +142,7 @@ <Separator />
- <Button Name="Start" AutomationProperties.Name="Start Encode"
+ <Button Name="Start" AutomationProperties.Name="{x:Static Properties:ResourcesUI.MainView_StartEncode}"
cal:Message.Attach="[Event Click] = [Action StartEncode]"
Visibility="{Binding IsEncoding,
Converter={StaticResource boolToVisConverter},
@@ -157,7 +157,7 @@ </StackPanel>
</Button>
- <Button Name="Stop" AutomationProperties.Name="Stop Encode"
+ <Button Name="Stop" AutomationProperties.Name="{x:Static Properties:ResourcesUI.MainView_Stop}"
cal:Message.Attach="[Event Click] = [Action StopEncode]"
Visibility="{Binding IsEncoding,
Converter={StaticResource boolToVisConverter},
@@ -173,7 +173,7 @@ </StackPanel>
</Button>
- <Button Name="Pause" AutomationProperties.Name="Pause"
+ <Button Name="Pause" AutomationProperties.Name="{x:Static Properties:ResourcesUI.MainView_Pause}"
cal:Message.Attach="[Event Click] = [Action PauseEncode]"
Visibility="{Binding CanPause,
Converter={StaticResource boolToVisConverter},
@@ -189,7 +189,7 @@ </StackPanel>
</Button>
- <Button PreviewMouseLeftButtonDown="AddToQueue_PreviewMouseDown" ContextMenuService.IsEnabled="False" AutomationProperties.Name="Add to Queue">
+ <Button PreviewMouseLeftButtonDown="AddToQueue_PreviewMouseDown" ContextMenuService.IsEnabled="False" AutomationProperties.Name="{x:Static Properties:ResourcesUI.MainView_AddToQueue}">
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<Image Width="32" Height="32" SnapsToDevicePixels="True" Source="Images/AddToQueue_small.png" />
@@ -205,9 +205,9 @@ </StackPanel>
<Button.ContextMenu>
<ContextMenu>
- <MenuItem Header="Add Current" cal:Message.Attach="[Event Click] = [Action AddToQueue]" AutomationProperties.Name="Add Current" />
- <MenuItem Header="Add All" cal:Message.Attach="[Event Click] = [Action AddAllToQueue]" AutomationProperties.Name="Add all to Queue" />
- <MenuItem Header="Add Selection" cal:Message.Attach="[Event Click] = [Action AddSelectionToQueue]" AutomationProperties.Name="Add Selection to Queue" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_AddCurrent}" cal:Message.Attach="[Event Click] = [Action AddToQueue]" AutomationProperties.Name="Add Current" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_AddAll}" cal:Message.Attach="[Event Click] = [Action AddAllToQueue]" AutomationProperties.Name="Add all to Queue" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_AddSelection}" cal:Message.Attach="[Event Click] = [Action AddSelectionToQueue]" AutomationProperties.Name="Add Selection to Queue" />
</ContextMenu>
</Button.ContextMenu>
@@ -372,7 +372,9 @@ <StackPanel Orientation="Horizontal">
<TextBlock Margin="0,0,5,0" Padding="0"
VerticalAlignment="Center"
- Text="{x:Static Properties:ResourcesUI.MainView_Options}" />
+ Text="{x:Static Properties:ResourcesUI.MainView_Options}"
+ AutomationProperties.Name="{x:Static Properties:ResourcesUI.MainView_PresetOptionsContextMenu}"
+ ToolTip="{x:Static Properties:ResourcesTooltips.MainView_PresetOptionsContextMenu}"/>
<Path Height="5" Margin="2,2,0,0" VerticalAlignment="Center" HorizontalAlignment="Center"
Data="M 0 0 L 4 4 L 8 0 Z"
|