From f6f4f920a24a0a913fe0ee53ee324961dc81cce8 Mon Sep 17 00:00:00 2001 From: L1Q <0xL1Q@ex.ua> Date: Tue, 4 Jul 2017 19:10:58 +0300 Subject: [PATCH 1/2] Improving translation support PNGBitDepth enum is now translatable --- ShareX.HelpersLib/Enums.cs | 6 +--- .../Properties/Resources.Designer.cs | 36 +++++++++++++++++++ ShareX.HelpersLib/Properties/Resources.resx | 12 +++++++ 3 files changed, 49 insertions(+), 5 deletions(-) diff --git a/ShareX.HelpersLib/Enums.cs b/ShareX.HelpersLib/Enums.cs index 4cfb2e12d..3ad87ec16 100644 --- a/ShareX.HelpersLib/Enums.cs +++ b/ShareX.HelpersLib/Enums.cs @@ -36,15 +36,11 @@ public enum EDataType URL } - public enum PNGBitDepth // TODO: Translate + public enum PNGBitDepth // Localized { - [Description("Default")] Default, - [Description("Automatically detect")] Automatic, - [Description("32 bit")] Bit32, - [Description("24 bit")] Bit24 } diff --git a/ShareX.HelpersLib/Properties/Resources.Designer.cs b/ShareX.HelpersLib/Properties/Resources.Designer.cs index ce4d456bd..f43f2a7a0 100644 --- a/ShareX.HelpersLib/Properties/Resources.Designer.cs +++ b/ShareX.HelpersLib/Properties/Resources.Designer.cs @@ -1825,6 +1825,42 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to Automatically detect. + /// + internal static string PNGBitDepth_Automatic { + get { + return ResourceManager.GetString("PNGBitDepth_Automatic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 24 bit. + /// + internal static string PNGBitDepth_Bit24 { + get { + return ResourceManager.GetString("PNGBitDepth_Bit24", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 32 bit. + /// + internal static string PNGBitDepth_Bit32 { + get { + return ResourceManager.GetString("PNGBitDepth_Bit32", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Default. + /// + internal static string PNGBitDepth_Default { + get { + return ResourceManager.GetString("PNGBitDepth_Default", resourceCulture); + } + } + /// /// Looks up a localized string similar to Show tray balloon tip. /// diff --git a/ShareX.HelpersLib/Properties/Resources.resx b/ShareX.HelpersLib/Properties/Resources.resx index 7cf142456..a7e32c04c 100644 --- a/ShareX.HelpersLib/Properties/Resources.resx +++ b/ShareX.HelpersLib/Properties/Resources.resx @@ -1016,4 +1016,16 @@ Would you like to download it? Image uploader + + Default + + + Automatically detect + + + 32 bit + + + 24 bit + \ No newline at end of file From c30c57050a7b429b4a0ac1812bae4d2e4335c0e5 Mon Sep 17 00:00:00 2001 From: L1Q <0xL1Q@ex.ua> Date: Tue, 4 Jul 2017 19:11:40 +0300 Subject: [PATCH 2/2] Updating russian translation translating PNGBitDepth enum --- ShareX.HelpersLib/Properties/Resources.ru.resx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ShareX.HelpersLib/Properties/Resources.ru.resx b/ShareX.HelpersLib/Properties/Resources.ru.resx index 33c06540a..1db27da99 100644 --- a/ShareX.HelpersLib/Properties/Resources.ru.resx +++ b/ShareX.HelpersLib/Properties/Resources.ru.resx @@ -994,4 +994,16 @@ Сервис картинок + + По умолчанию + + + Определять автоматически + + + 32 бит + + + 24 бит + \ No newline at end of file