mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Added Spanish to application settings
This commit is contained in:
parent
0a5a5273f8
commit
ee7ee0f4c2
8 changed files with 27 additions and 5 deletions
|
@ -118,11 +118,11 @@ private void FormSettings()
|
||||||
ttlvMain.MainTabControl = tcUploaders;
|
ttlvMain.MainTabControl = tcUploaders;
|
||||||
ttlvMain.FocusListView();
|
ttlvMain.FocusListView();
|
||||||
|
|
||||||
CodeMenu.Create<ReplCodeMenuEntry>(txtDropboxPath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
|
CodeMenu.Create(txtDropboxPath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
|
||||||
CodeMenu.Create<ReplCodeMenuEntry>(txtCopyPath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
|
CodeMenu.Create(txtCopyPath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
|
||||||
CodeMenu.Create<ReplCodeMenuEntry>(txtAmazonS3ObjectPrefix, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
|
CodeMenu.Create(txtAmazonS3ObjectPrefix, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
|
||||||
CodeMenu.Create<ReplCodeMenuEntry>(txtMediaFirePath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
|
CodeMenu.Create(txtMediaFirePath, ReplCodeMenuEntry.n, ReplCodeMenuEntry.t, ReplCodeMenuEntry.pn);
|
||||||
CodeMenu.Create<ReplCodeMenuEntry>(txtCustomUploaderArgValue, ReplCodeMenuEntry.n);
|
CodeMenu.Create(txtCustomUploaderArgValue, ReplCodeMenuEntry.n);
|
||||||
|
|
||||||
txtCustomUploaderLog.AddContextMenu();
|
txtCustomUploaderLog.AddContextMenu();
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,8 @@ public enum SupportedLanguage
|
||||||
Korean,
|
Korean,
|
||||||
[Description("简体中文 (Simplified Chinese)")]
|
[Description("简体中文 (Simplified Chinese)")]
|
||||||
SimplifiedChinese,
|
SimplifiedChinese,
|
||||||
|
[Description("Español (Spanish)")]
|
||||||
|
Spanish,
|
||||||
[Description("Türkçe (Turkish)")]
|
[Description("Türkçe (Turkish)")]
|
||||||
Turkish
|
Turkish
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,6 +164,9 @@ private Image GetLanguageIcon(SupportedLanguage language)
|
||||||
case SupportedLanguage.SimplifiedChinese:
|
case SupportedLanguage.SimplifiedChinese:
|
||||||
icon = Resources.cn;
|
icon = Resources.cn;
|
||||||
break;
|
break;
|
||||||
|
case SupportedLanguage.Spanish:
|
||||||
|
icon = Resources.es;
|
||||||
|
break;
|
||||||
case SupportedLanguage.Turkish:
|
case SupportedLanguage.Turkish:
|
||||||
icon = Resources.tr;
|
icon = Resources.tr;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -66,6 +66,9 @@ public static bool ChangeLanguage(SupportedLanguage language, params Form[] form
|
||||||
case SupportedLanguage.SimplifiedChinese:
|
case SupportedLanguage.SimplifiedChinese:
|
||||||
cultureName = "zh-CN";
|
cultureName = "zh-CN";
|
||||||
break;
|
break;
|
||||||
|
case SupportedLanguage.Spanish:
|
||||||
|
cultureName = "es-ES";
|
||||||
|
break;
|
||||||
case SupportedLanguage.Turkish:
|
case SupportedLanguage.Turkish:
|
||||||
cultureName = "tr-TR";
|
cultureName = "tr-TR";
|
||||||
break;
|
break;
|
||||||
|
|
10
ShareX/Properties/Resources.Designer.cs
generated
10
ShareX/Properties/Resources.Designer.cs
generated
|
@ -641,6 +641,16 @@ public static System.IO.UnmanagedMemoryStream ErrorSound {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <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>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -703,4 +703,7 @@ Would you like to restart ShareX?</value>
|
||||||
<data name="kr" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<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>
|
<value>..\Resources\kr.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</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>
|
</root>
|
BIN
ShareX/Resources/es.png
Normal file
BIN
ShareX/Resources/es.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 469 B |
|
@ -808,6 +808,7 @@
|
||||||
<None Include="Resources\robot.png" />
|
<None Include="Resources\robot.png" />
|
||||||
<None Include="Resources\layer-transparent.png" />
|
<None Include="Resources\layer-transparent.png" />
|
||||||
<None Include="Resources\kr.png" />
|
<None Include="Resources\kr.png" />
|
||||||
|
<None Include="Resources\es.png" />
|
||||||
<Content Include="ShareX_Icon.ico" />
|
<Content Include="ShareX_Icon.ico" />
|
||||||
<None Include="Resources\globe--pencil.png" />
|
<None Include="Resources\globe--pencil.png" />
|
||||||
<None Include="Resources\camcorder--pencil.png" />
|
<None Include="Resources\camcorder--pencil.png" />
|
||||||
|
|
Loading…
Reference in a new issue