Added Ukrainian to language list

This commit is contained in:
Jaex 2018-04-19 23:49:26 +03:00
parent 9f1728bc5e
commit 9e18c12753
7 changed files with 25 additions and 0 deletions

View file

@ -67,6 +67,8 @@ public enum SupportedLanguage
TraditionalChinese,
[Description("Türkçe (Turkish)")]
Turkish,
[Description("Українська (Ukrainian)")]
Ukrainian,
[Description("Tiếng Việt (Vietnamese)")]
Vietnamese
}

View file

@ -95,6 +95,7 @@ public AboutForm()
{Resources.AboutForm_AboutForm_Language_ru}: https://github.com/L1Q
{Resources.AboutForm_AboutForm_Language_zh_TW}: https://github.com/alantsai
{Resources.AboutForm_AboutForm_Language_it_IT}: https://github.com/pjammo
Ukrainian: https://github.com/6c6c6
{Resources.AboutForm_AboutForm_External_libraries}:

View file

@ -116,6 +116,9 @@ public static Image GetLanguageIcon(SupportedLanguage language)
case SupportedLanguage.Turkish:
icon = Resources.tr;
break;
case SupportedLanguage.Ukrainian:
icon = Resources.ua;
break;
case SupportedLanguage.Vietnamese:
icon = Resources.vn;
break;
@ -170,6 +173,9 @@ public static string GetCultureName(SupportedLanguage language)
case SupportedLanguage.Turkish:
cultureName = "tr-TR";
break;
case SupportedLanguage.Ukrainian:
cultureName = "uk-UA";
break;
case SupportedLanguage.Vietnamese:
cultureName = "vi-VN";
break;

View file

@ -2391,6 +2391,16 @@ public static System.Drawing.Bitmap Twitter {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ua {
get {
object obj = ResourceManager.GetObject("ua", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -964,4 +964,7 @@ Middle click to close</value>
<data name="UploadManager_ShowShortenURLDialog_Shorten" xml:space="preserve">
<value>Shorten</value>
</data>
<data name="ua" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ua.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

BIN
ShareX/Resources/ua.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 B

View file

@ -1489,6 +1489,9 @@
<None Include="Resources\pipette.png" />
<None Include="Resources\cursor.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\ua.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>