diff --git a/ShareX.Setup/InnoSetup/ShareX-setup.iss b/ShareX.Setup/InnoSetup/ShareX-setup.iss index 1dc662cb2..78d1d4ddc 100644 --- a/ShareX.Setup/InnoSetup/ShareX-setup.iss +++ b/ShareX.Setup/InnoSetup/ShareX-setup.iss @@ -54,6 +54,7 @@ Source: "{#MyAppReleaseDirectory}\es\*.resources.dll"; DestDir: {app}\Languages\ Source: "{#MyAppReleaseDirectory}\es-MX\*.resources.dll"; DestDir: {app}\Languages\es-MX; Flags: ignoreversion Source: "{#MyAppReleaseDirectory}\fa-IR\*.resources.dll"; DestDir: {app}\Languages\fa-IR; Flags: ignoreversion Source: "{#MyAppReleaseDirectory}\fr\*.resources.dll"; DestDir: {app}\Languages\fr; Flags: ignoreversion +Source: "{#MyAppReleaseDirectory}\he-IL\*.resources.dll"; DestDir: {app}\Languages\he-IL; Flags: ignoreversion Source: "{#MyAppReleaseDirectory}\hu\*.resources.dll"; DestDir: {app}\Languages\hu; Flags: ignoreversion Source: "{#MyAppReleaseDirectory}\id-ID\*.resources.dll"; DestDir: {app}\Languages\id-ID; Flags: ignoreversion Source: "{#MyAppReleaseDirectory}\it-IT\*.resources.dll"; DestDir: {app}\Languages\it-IT; Flags: ignoreversion diff --git a/ShareX.Setup/Program.cs b/ShareX.Setup/Program.cs index e57296cb4..89fab9b5b 100644 --- a/ShareX.Setup/Program.cs +++ b/ShareX.Setup/Program.cs @@ -380,7 +380,7 @@ private static void CreateFolder(string source, string destination, SetupJobs jo FileHelpers.CopyFiles(Path.Combine(NativeMessagingHostDir, "ShareX_NativeMessagingHost.exe"), destination); } - string[] languages = new string[] { "de", "es", "es-MX", "fa-IR", "fr", "hu", "id-ID", "it-IT", "ja-JP", "ko-KR", "nl-NL", "pl", "pt-BR", "pt-PT", + string[] languages = new string[] { "de", "es", "es-MX", "fa-IR", "fr", "he-IL", "hu", "id-ID", "it-IT", "ja-JP", "ko-KR", "nl-NL", "pl", "pt-BR", "pt-PT", "ro", "ru", "tr", "uk", "vi-VN", "zh-CN", "zh-TW" }; foreach (string language in languages) diff --git a/ShareX/Enums.cs b/ShareX/Enums.cs index 758912930..487f3c070 100644 --- a/ShareX/Enums.cs +++ b/ShareX/Enums.cs @@ -53,6 +53,8 @@ public enum SupportedLanguage French, [Description("Deutsch (German)")] German, + [Description("עִברִית (Hebrew)")] + Hebrew, [Description("Magyar (Hungarian)")] Hungarian, [Description("Bahasa Indonesia (Indonesian)")] diff --git a/ShareX/Forms/AboutForm.cs b/ShareX/Forms/AboutForm.cs index 21b9f6cc6..9fa610776 100644 --- a/ShareX/Forms/AboutForm.cs +++ b/ShareX/Forms/AboutForm.cs @@ -97,6 +97,7 @@ public AboutForm() {Resources.AboutForm_AboutForm_Language_ja_JP}: https://github.com/kanaxx {Resources.AboutForm_AboutForm_Language_ro}: https://github.com/Edward205 {Resources.AboutForm_AboutForm_Language_pl}: https://github.com/RikoDEV +{Resources.AboutForm_AboutForm_Language_he_IL}: https://github.com/E-RELevant ", FontStyle.Regular); rtbInfo.AppendLine(Resources.AboutForm_AboutForm_Credits, FontStyle.Bold, 13); diff --git a/ShareX/LanguageHelper.cs b/ShareX/LanguageHelper.cs index 5b65a9686..7ed1eb1d0 100644 --- a/ShareX/LanguageHelper.cs +++ b/ShareX/LanguageHelper.cs @@ -89,6 +89,9 @@ public static Image GetLanguageIcon(SupportedLanguage language) case SupportedLanguage.German: icon = Resources.de; break; + case SupportedLanguage.Hebrew: + icon = Resources.il; + break; case SupportedLanguage.Hungarian: icon = Resources.hu; break; @@ -167,6 +170,9 @@ public static string GetCultureName(SupportedLanguage language) case SupportedLanguage.German: cultureName = "de-DE"; break; + case SupportedLanguage.Hebrew: + cultureName = "he-IL"; + break; case SupportedLanguage.Hungarian: cultureName = "hu-HU"; break; diff --git a/ShareX/Properties/Resources.Designer.cs b/ShareX/Properties/Resources.Designer.cs index e646044b4..907df3de9 100644 --- a/ShareX/Properties/Resources.Designer.cs +++ b/ShareX/Properties/Resources.Designer.cs @@ -123,6 +123,15 @@ public static string AboutForm_AboutForm_Language_fr { } } + /// + /// Looks up a localized string similar to Hebrew. + /// + public static string AboutForm_AboutForm_Language_he_IL { + get { + return ResourceManager.GetString("AboutForm_AboutForm_Language_he-IL", resourceCulture); + } + } + /// /// Looks up a localized string similar to Hungarian. /// @@ -1725,6 +1734,16 @@ public static System.Drawing.Bitmap id { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap il { + get { + object obj = ResourceManager.GetObject("il", 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 d88f5cbc6..e2bd944de 100644 --- a/ShareX/Properties/Resources.resx +++ b/ShareX/Properties/Resources.resx @@ -1119,4 +1119,10 @@ Middle click to close FFmpeg does not exist at the following path: + + ..\Resources\il.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Hebrew + \ No newline at end of file diff --git a/ShareX/Resources/il.png b/ShareX/Resources/il.png new file mode 100644 index 000000000..2ca772d0b Binary files /dev/null and b/ShareX/Resources/il.png differ diff --git a/ShareX/ShareX.csproj b/ShareX/ShareX.csproj index 0502e28c2..5a57c8fca 100644 --- a/ShareX/ShareX.csproj +++ b/ShareX/ShareX.csproj @@ -2279,6 +2279,9 @@ + + +