Skip to content

Commit

Permalink
Windows-GUI: Make some "Filter" drop down menus text translatable (Ha…
Browse files Browse the repository at this point in the history
  • Loading branch information
hnsteyding authored Sep 29, 2024
1 parent 8f1ba0c commit 267308e
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 8 deletions.
9 changes: 7 additions & 2 deletions win/CS/HandBrakeWPF/Model/Filters/CombDetect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,22 @@ namespace HandBrakeWPF.Model.Filters
{
using HandBrake.Interop.Attributes;

using HandBrakeWPF.Properties;

/// <summary>
/// The CombDetect Type.
/// </summary>
public enum CombDetect
{
[ShortName("off")]
[DisplayName(typeof(Resources), "CombDetect_Off")]
[ShortName("off")]
Off,

[DisplayName(typeof(Resources), "CombDetect_Custom")]
[ShortName("custom")]
Custom,

[DisplayName(typeof(Resources), "CombDetect_Default")]
[ShortName("default")]
Default,

Expand All @@ -31,4 +36,4 @@ public enum CombDetect
[ShortName("fast")]
Fast
}
}
}
5 changes: 4 additions & 1 deletion win/CS/HandBrakeWPF/Model/Filters/DeinterlaceFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ namespace HandBrakeWPF.Model.Filters
{
using HandBrake.Interop.Attributes;

using HandBrakeWPF.Properties;

/// <summary>
/// The deinterlace.
/// </summary>
public enum DeinterlaceFilter
{
[DisplayName(typeof(Resources), "DeinterlaceFilter_Off")]
[ShortName("off")]
Off = 0,

Expand All @@ -28,4 +31,4 @@ public enum DeinterlaceFilter
[ShortName("Bwdif")]
Bwdif = 3,
}
}
}
7 changes: 5 additions & 2 deletions win/CS/HandBrakeWPF/Model/Filters/Denoise.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ namespace HandBrakeWPF.Model.Filters
{
using HandBrake.Interop.Attributes;

using HandBrakeWPF.Properties;

/// <summary>
/// The denoise.
/// </summary>
public enum Denoise
{
[ShortName("off")]
[DisplayName(typeof(Resources), "Denoise_Off")]
[ShortName("off")]
Off = 0,

[ShortName("hqdn3d")]
Expand All @@ -25,4 +28,4 @@ public enum Denoise
[ShortName("nlmeans")]
NLMeans = 2,
}
}
}
9 changes: 8 additions & 1 deletion win/CS/HandBrakeWPF/Model/Filters/Detelecine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,23 @@ namespace HandBrakeWPF.Model.Filters
{
using HandBrake.Interop.Attributes;

using HandBrakeWPF.Properties;

/// <summary>
/// The detelecine.
/// </summary>
public enum Detelecine
{
[DisplayName(typeof(Resources), "Detelecine_Off")]
[ShortName("off")]
Off = 0,

[DisplayName(typeof(Resources), "Detelecine_Default")]
[ShortName("default")]
Default = 2,

[DisplayName(typeof(Resources), "Detelecine_Custom")]
[ShortName("custom")]
Custom = 1
}
}
}
7 changes: 5 additions & 2 deletions win/CS/HandBrakeWPF/Model/Filters/Sharpen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ namespace HandBrakeWPF.Model.Filters
{
using HandBrake.Interop.Attributes;

using HandBrakeWPF.Properties;

/// <summary>
/// The Sharpen.
/// </summary>
public enum Sharpen
{
[ShortName("off")]
[DisplayName(typeof(Resources), "Sharpen_Off")]
[ShortName("off")]
Off,

[ShortName("unsharp")]
Expand All @@ -25,4 +28,4 @@ public enum Sharpen
[ShortName("lapsharp")]
LapSharp
}
}
}
81 changes: 81 additions & 0 deletions win/CS/HandBrakeWPF/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions win/CS/HandBrakeWPF/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2888,4 +2888,31 @@ To allow multiple simultaneous encodes, turn on "Process Isolation" in Tools Men
<data name="AnamorphicMode_Automatic" xml:space="preserve">
<value>Automatic</value>
</data>
<data name="CombDetect_Off" xml:space="preserve">
<value>Off</value>
</data>
<data name="CombDetect_Custom" xml:space="preserve">
<value>Custom</value>
</data>
<data name="CombDetect_Default" xml:space="preserve">
<value>Default</value>
</data>
<data name="DeinterlaceFilter_Off" xml:space="preserve">
<value>Off</value>
</data>
<data name="Denoise_Off" xml:space="preserve">
<value>Off</value>
</data>
<data name="Detelecine_Off" xml:space="preserve">
<value>Off</value>
</data>
<data name="Detelecine_Default" xml:space="preserve">
<value>Default</value>
</data>
<data name="Detelecine_Custom" xml:space="preserve">
<value>Custom</value>
</data>
<data name="Sharpen_Off" xml:space="preserve">
<value>Off</value>
</data>
</root>

0 comments on commit 267308e

Please sign in to comment.