From 048136b19f50da09ee6dc2c90c6af07796fd267f Mon Sep 17 00:00:00 2001 From: Jaex Date: Tue, 8 Sep 2015 20:24:53 +0300 Subject: [PATCH] Added Russian language option --- ShareX/Enums.cs | 2 ++ ShareX/Forms/ApplicationSettingsForm.cs | 3 +++ ShareX/Forms/ApplicationSettingsForm.resx | 2 +- ShareX/Forms/ApplicationSettingsForm.tr.resx | 3 +++ ShareX/LanguageHelper.cs | 3 +++ ShareX/Properties/Resources.Designer.cs | 10 ++++++++++ ShareX/Properties/Resources.resx | 3 +++ ShareX/Resources/ru.png | Bin 0 -> 420 bytes ShareX/ShareX.csproj | 1 + 9 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 ShareX/Resources/ru.png diff --git a/ShareX/Enums.cs b/ShareX/Enums.cs index f561fff96..66583e027 100644 --- a/ShareX/Enums.cs +++ b/ShareX/Enums.cs @@ -45,6 +45,8 @@ public enum SupportedLanguage Korean, [Description("Português-Brasil (Portuguese-Brazil)")] PortugueseBrazil, + [Description("Русский (Russian)")] + Russian, [Description("简体中文 (Simplified Chinese)")] SimplifiedChinese, [Description("Español (Spanish)")] diff --git a/ShareX/Forms/ApplicationSettingsForm.cs b/ShareX/Forms/ApplicationSettingsForm.cs index fff08d50b..e2899e628 100644 --- a/ShareX/Forms/ApplicationSettingsForm.cs +++ b/ShareX/Forms/ApplicationSettingsForm.cs @@ -165,6 +165,9 @@ private Image GetLanguageIcon(SupportedLanguage language) case SupportedLanguage.PortugueseBrazil: icon = Resources.br; break; + case SupportedLanguage.Russian: + icon = Resources.ru; + break; case SupportedLanguage.SimplifiedChinese: icon = Resources.cn; break; diff --git a/ShareX/Forms/ApplicationSettingsForm.resx b/ShareX/Forms/ApplicationSettingsForm.resx index f92de35da..5a7059563 100644 --- a/ShareX/Forms/ApplicationSettingsForm.resx +++ b/ShareX/Forms/ApplicationSettingsForm.resx @@ -452,7 +452,7 @@ Windows - + @Invariant gbGeneralWindows diff --git a/ShareX/Forms/ApplicationSettingsForm.tr.resx b/ShareX/Forms/ApplicationSettingsForm.tr.resx index da0fe9b08..ece5d44d3 100644 --- a/ShareX/Forms/ApplicationSettingsForm.tr.resx +++ b/ShareX/Forms/ApplicationSettingsForm.tr.resx @@ -270,4 +270,7 @@ Chrome eklenti desteği... + + Uygulama + \ No newline at end of file diff --git a/ShareX/LanguageHelper.cs b/ShareX/LanguageHelper.cs index 1443079c6..d526bde21 100644 --- a/ShareX/LanguageHelper.cs +++ b/ShareX/LanguageHelper.cs @@ -69,6 +69,9 @@ public static bool ChangeLanguage(SupportedLanguage language, params Form[] form case SupportedLanguage.PortugueseBrazil: cultureName = "pt-BR"; break; + case SupportedLanguage.Russian: + cultureName = "ru"; + break; case SupportedLanguage.SimplifiedChinese: cultureName = "zh-CN"; break; diff --git a/ShareX/Properties/Resources.Designer.cs b/ShareX/Properties/Resources.Designer.cs index b9d52ef8f..be3449af0 100644 --- a/ShareX/Properties/Resources.Designer.cs +++ b/ShareX/Properties/Resources.Designer.cs @@ -1434,6 +1434,16 @@ public static System.Drawing.Bitmap RoundedRectangle { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap ru { + get { + object obj = ResourceManager.GetObject("ru", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/ShareX/Properties/Resources.resx b/ShareX/Properties/Resources.resx index f82c82cd8..89de67935 100644 --- a/ShareX/Properties/Resources.resx +++ b/ShareX/Properties/Resources.resx @@ -790,4 +790,7 @@ Would you like to restart ShareX? Chrome support disabled. + + ..\Resources\ru.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/ShareX/Resources/ru.png b/ShareX/Resources/ru.png new file mode 100644 index 0000000000000000000000000000000000000000..47da4214fd9edb383687c1d4f84fe8b42a51ceb2 GIT binary patch literal 420 zcmV;V0bBlwP)X|NRSO0LlM<{-BURBqYRGSojej zfLOL~|EH_V_~;P>Nc10*D0|Jxss< zFi1)Q<$$6LU}rIc*dU*QNFV}+9T))>0|XG`SD?F)5CbX~O$rDA0t^5@iDe$xIAIn5 O0000 +