Added Spanish to application settings

This commit is contained in:
Jaex 2015-04-08 22:15:40 +03:00
parent 0a5a5273f8
commit ee7ee0f4c2
8 changed files with 27 additions and 5 deletions

View file

@ -118,11 +118,11 @@ private void FormSettings()
ttlvMain.MainTabControl = tcUploaders;
ttlvMain.FocusListView();
CodeMenu.Create<ReplCodeMenuEntry>(txtDropboxPath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
CodeMenu.Create<ReplCodeMenuEntry>(txtCopyPath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
CodeMenu.Create<ReplCodeMenuEntry>(txtAmazonS3ObjectPrefix, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
CodeMenu.Create<ReplCodeMenuEntry>(txtMediaFirePath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
CodeMenu.Create<ReplCodeMenuEntry>(txtCustomUploaderArgValue, ReplCodeMenuEntry.n);
CodeMenu.Create(txtDropboxPath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
CodeMenu.Create(txtCopyPath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
CodeMenu.Create(txtAmazonS3ObjectPrefix, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
CodeMenu.Create(txtMediaFirePath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
CodeMenu.Create(txtCustomUploaderArgValue, ReplCodeMenuEntry.n);
txtCustomUploaderLog.AddContextMenu();

View file

@ -43,6 +43,8 @@ public enum SupportedLanguage
Korean,
[Description("简体中文 (Simplified Chinese)")]
SimplifiedChinese,
[Description("Español (Spanish)")]
Spanish,
[Description("Türkçe (Turkish)")]
Turkish
}

View file

@ -164,6 +164,9 @@ private Image GetLanguageIcon(SupportedLanguage language)
case SupportedLanguage.SimplifiedChinese:
icon = Resources.cn;
break;
case SupportedLanguage.Spanish:
icon = Resources.es;
break;
case SupportedLanguage.Turkish:
icon = Resources.tr;
break;

View file

@ -66,6 +66,9 @@ public static bool ChangeLanguage(SupportedLanguage language, params Form[] form
case SupportedLanguage.SimplifiedChinese:
cultureName = "zh-CN";
break;
case SupportedLanguage.Spanish:
cultureName = "es-ES";
break;
case SupportedLanguage.Turkish:
cultureName = "tr-TR";
break;

View file

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

View file

@ -703,4 +703,7 @@ Would you like to restart ShareX?</value>
<data name="kr" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\kr.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="es" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\es.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

BIN
ShareX/Resources/es.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

View file

@ -808,6 +808,7 @@
<None Include="Resources\robot.png" />
<None Include="Resources\layer-transparent.png" />
<None Include="Resources\kr.png" />
<None Include="Resources\es.png" />
<Content Include="ShareX_Icon.ico" />
<None Include="Resources\globe--pencil.png" />
<None Include="Resources\camcorder--pencil.png" />