Added Hebrew language

This commit is contained in:
Jaex 2023-03-27 08:37:57 +03:00
parent 5c8b170ed0
commit 7c30b1fa71
9 changed files with 39 additions and 1 deletions

View file

@ -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

View file

@ -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)

View file

@ -53,6 +53,8 @@ public enum SupportedLanguage
French,
[Description("Deutsch (German)")]
German,
[Description("עִברִית (Hebrew)")]
Hebrew,
[Description("Magyar (Hungarian)")]
Hungarian,
[Description("Bahasa Indonesia (Indonesian)")]

View file

@ -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);

View file

@ -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;

View file

@ -123,6 +123,15 @@ public class Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Hebrew.
/// </summary>
public static string AboutForm_AboutForm_Language_he_IL {
get {
return ResourceManager.GetString("AboutForm_AboutForm_Language_he-IL", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Hungarian.
/// </summary>
@ -1725,6 +1734,16 @@ public class Resources {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap il {
get {
object obj = ResourceManager.GetObject("il", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -1119,4 +1119,10 @@ Middle click to close</value>
<data name="FFmpegDoesNotExistAtTheFollowingPath" xml:space="preserve">
<value>FFmpeg does not exist at the following path:</value>
</data>
<data name="il" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\il.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AboutForm_AboutForm_Language_he-IL" xml:space="preserve">
<value>Hebrew</value>
</data>
</root>

BIN
ShareX/Resources/il.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

View file

@ -2279,6 +2279,9 @@
<ItemGroup>
<None Include="Resources\openhand.cur" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\il.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>