Added Japanese language

This commit is contained in:
Jaex 2020-10-13 14:42:24 +03:00
parent 28c9e57e92
commit 645c76e0f5
7 changed files with 37 additions and 0 deletions

View file

@ -59,6 +59,8 @@ public enum SupportedLanguage
Indonesian,
[Description("Italiano (Italian)")]
Italian,
[Description("日本語 (Japanese)")]
Japanese,
[Description("한국어 (Korean)")]
Korean,
[Description("Español mexicano (Mexican Spanish)")]

View file

@ -100,6 +100,7 @@ public AboutForm()
{Resources.AboutForm_AboutForm_Language_es_MX}: https://github.com/absay
{Resources.AboutForm_AboutForm_Language_fa_IR}: https://github.com/pourmand1376
{Resources.AboutForm_AboutForm_Language_pt_PT}: https://github.com/FarewellAngelina
{Resources.AboutForm_AboutForm_Language_ja_JP}: https://github.com/kanaxx
{Resources.AboutForm_AboutForm_External_libraries}:

View file

@ -98,6 +98,9 @@ public static Image GetLanguageIcon(SupportedLanguage language)
case SupportedLanguage.Italian:
icon = Resources.it;
break;
case SupportedLanguage.Japanese:
icon = Resources.jp;
break;
case SupportedLanguage.Korean:
icon = Resources.kr;
break;
@ -167,6 +170,9 @@ public static string GetCultureName(SupportedLanguage language)
case SupportedLanguage.Italian:
cultureName = "it-IT";
break;
case SupportedLanguage.Japanese:
cultureName = "ja-JP";
break;
case SupportedLanguage.Korean:
cultureName = "ko-KR";
break;

View file

@ -159,6 +159,15 @@ public class Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Japanese.
/// </summary>
public static string AboutForm_AboutForm_Language_ja_JP {
get {
return ResourceManager.GetString("AboutForm_AboutForm_Language_ja_JP", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Korean.
/// </summary>
@ -1716,6 +1725,16 @@ public class Resources {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap jp {
get {
object obj = ResourceManager.GetObject("jp", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -1066,4 +1066,10 @@ Middle click to close</value>
<data name="user-business" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\user-business.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="jp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\jp.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AboutForm_AboutForm_Language_ja_JP" xml:space="preserve">
<value>Japanese</value>
</data>
</root>

BIN
ShareX/Resources/jp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

View file

@ -1910,6 +1910,9 @@
<ItemGroup>
<None Include="Resources\user-business.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\jp.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>