mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Small changes related to Persian language
This commit is contained in:
parent
83b1985f8f
commit
5a346cf5eb
7 changed files with 22 additions and 16 deletions
|
@ -63,6 +63,8 @@ public enum SupportedLanguage
|
|||
Korean,
|
||||
[Description("Español mexicano (Mexican Spanish)")]
|
||||
MexicanSpanish,
|
||||
[Description("فارسی (Persian)")]
|
||||
Persian,
|
||||
[Description("Português-Brasil (Portuguese-Brazil)")]
|
||||
PortugueseBrazil,
|
||||
[Description("Русский (Russian)")]
|
||||
|
@ -78,9 +80,7 @@ public enum SupportedLanguage
|
|||
[Description("Українська (Ukrainian)")]
|
||||
Ukrainian,
|
||||
[Description("Tiếng Việt (Vietnamese)")]
|
||||
Vietnamese,
|
||||
[Description("فارسی (Iran)")]
|
||||
Persian
|
||||
Vietnamese
|
||||
}
|
||||
|
||||
public enum TaskJob
|
||||
|
|
|
@ -104,6 +104,9 @@ public static Image GetLanguageIcon(SupportedLanguage language)
|
|||
case SupportedLanguage.MexicanSpanish:
|
||||
icon = Resources.mx;
|
||||
break;
|
||||
case SupportedLanguage.Persian:
|
||||
icon = Resources.ir;
|
||||
break;
|
||||
case SupportedLanguage.PortugueseBrazil:
|
||||
icon = Resources.br;
|
||||
break;
|
||||
|
@ -128,9 +131,6 @@ public static Image GetLanguageIcon(SupportedLanguage language)
|
|||
case SupportedLanguage.Vietnamese:
|
||||
icon = Resources.vn;
|
||||
break;
|
||||
case SupportedLanguage.Persian:
|
||||
icon = Resources.IR;
|
||||
break;
|
||||
}
|
||||
|
||||
return icon;
|
||||
|
@ -170,6 +170,9 @@ public static string GetCultureName(SupportedLanguage language)
|
|||
case SupportedLanguage.MexicanSpanish:
|
||||
cultureName = "es-MX";
|
||||
break;
|
||||
case SupportedLanguage.Persian:
|
||||
cultureName = "fa-IR";
|
||||
break;
|
||||
case SupportedLanguage.PortugueseBrazil:
|
||||
cultureName = "pt-BR";
|
||||
break;
|
||||
|
@ -194,9 +197,6 @@ public static string GetCultureName(SupportedLanguage language)
|
|||
case SupportedLanguage.Vietnamese:
|
||||
cultureName = "vi-VN";
|
||||
break;
|
||||
case SupportedLanguage.Persian:
|
||||
cultureName = "fa-IR";
|
||||
break;
|
||||
}
|
||||
|
||||
return cultureName;
|
||||
|
|
|
@ -234,10 +234,16 @@ public static string ScreenshotsFolder
|
|||
[STAThread]
|
||||
private static void Main(string[] args)
|
||||
{
|
||||
#if !DEBUG // Allow Visual Studio to break on exceptions in Debug builds.
|
||||
// Allow Visual Studio to break on exceptions in Debug builds
|
||||
#if !DEBUG
|
||||
// Add the event handler for handling UI thread exceptions to the event
|
||||
Application.ThreadException += Application_ThreadException;
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
|
||||
// Set the unhandled exception mode to force all Windows Forms errors to go through our handler
|
||||
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
|
||||
|
||||
// Add the event handler for handling non-UI thread exceptions to the event
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
#endif
|
||||
|
||||
StartTimer = Stopwatch.StartNew(); // For be able to show startup time
|
||||
|
|
4
ShareX/Properties/Resources.Designer.cs
generated
4
ShareX/Properties/Resources.Designer.cs
generated
|
@ -1571,9 +1571,9 @@ public static string IntegrationHelpers_UploadWithShareX {
|
|||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap IR {
|
||||
public static System.Drawing.Bitmap ir {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("IR", resourceCulture);
|
||||
object obj = ResourceManager.GetObject("ir", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1024,7 +1024,7 @@ Middle click to close</value>
|
|||
<data name="SwitchToListView" xml:space="preserve">
|
||||
<value>Switch to list view</value>
|
||||
</data>
|
||||
<data name="IR" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IR.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="ir" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ir.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
Binary file not shown.
Before Width: | Height: | Size: 385 B |
|
@ -1668,7 +1668,7 @@
|
|||
<None Include="Resources\SocialHideButton.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Resources\IR.png" />
|
||||
<None Include="Resources\ir.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
|
|
Loading…
Reference in a new issue