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,
|
Korean,
|
||||||
[Description("Español mexicano (Mexican Spanish)")]
|
[Description("Español mexicano (Mexican Spanish)")]
|
||||||
MexicanSpanish,
|
MexicanSpanish,
|
||||||
|
[Description("فارسی (Persian)")]
|
||||||
|
Persian,
|
||||||
[Description("Português-Brasil (Portuguese-Brazil)")]
|
[Description("Português-Brasil (Portuguese-Brazil)")]
|
||||||
PortugueseBrazil,
|
PortugueseBrazil,
|
||||||
[Description("Русский (Russian)")]
|
[Description("Русский (Russian)")]
|
||||||
|
@ -78,9 +80,7 @@ public enum SupportedLanguage
|
||||||
[Description("Українська (Ukrainian)")]
|
[Description("Українська (Ukrainian)")]
|
||||||
Ukrainian,
|
Ukrainian,
|
||||||
[Description("Tiếng Việt (Vietnamese)")]
|
[Description("Tiếng Việt (Vietnamese)")]
|
||||||
Vietnamese,
|
Vietnamese
|
||||||
[Description("فارسی (Iran)")]
|
|
||||||
Persian
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum TaskJob
|
public enum TaskJob
|
||||||
|
|
|
@ -104,6 +104,9 @@ public static Image GetLanguageIcon(SupportedLanguage language)
|
||||||
case SupportedLanguage.MexicanSpanish:
|
case SupportedLanguage.MexicanSpanish:
|
||||||
icon = Resources.mx;
|
icon = Resources.mx;
|
||||||
break;
|
break;
|
||||||
|
case SupportedLanguage.Persian:
|
||||||
|
icon = Resources.ir;
|
||||||
|
break;
|
||||||
case SupportedLanguage.PortugueseBrazil:
|
case SupportedLanguage.PortugueseBrazil:
|
||||||
icon = Resources.br;
|
icon = Resources.br;
|
||||||
break;
|
break;
|
||||||
|
@ -128,9 +131,6 @@ public static Image GetLanguageIcon(SupportedLanguage language)
|
||||||
case SupportedLanguage.Vietnamese:
|
case SupportedLanguage.Vietnamese:
|
||||||
icon = Resources.vn;
|
icon = Resources.vn;
|
||||||
break;
|
break;
|
||||||
case SupportedLanguage.Persian:
|
|
||||||
icon = Resources.IR;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return icon;
|
return icon;
|
||||||
|
@ -170,6 +170,9 @@ public static string GetCultureName(SupportedLanguage language)
|
||||||
case SupportedLanguage.MexicanSpanish:
|
case SupportedLanguage.MexicanSpanish:
|
||||||
cultureName = "es-MX";
|
cultureName = "es-MX";
|
||||||
break;
|
break;
|
||||||
|
case SupportedLanguage.Persian:
|
||||||
|
cultureName = "fa-IR";
|
||||||
|
break;
|
||||||
case SupportedLanguage.PortugueseBrazil:
|
case SupportedLanguage.PortugueseBrazil:
|
||||||
cultureName = "pt-BR";
|
cultureName = "pt-BR";
|
||||||
break;
|
break;
|
||||||
|
@ -194,9 +197,6 @@ public static string GetCultureName(SupportedLanguage language)
|
||||||
case SupportedLanguage.Vietnamese:
|
case SupportedLanguage.Vietnamese:
|
||||||
cultureName = "vi-VN";
|
cultureName = "vi-VN";
|
||||||
break;
|
break;
|
||||||
case SupportedLanguage.Persian:
|
|
||||||
cultureName = "fa-IR";
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return cultureName;
|
return cultureName;
|
||||||
|
|
|
@ -234,10 +234,16 @@ public static string ScreenshotsFolder
|
||||||
[STAThread]
|
[STAThread]
|
||||||
private static void Main(string[] args)
|
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;
|
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);
|
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
|
||||||
|
|
||||||
|
// Add the event handler for handling non-UI thread exceptions to the event
|
||||||
|
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
StartTimer = Stopwatch.StartNew(); // For be able to show startup time
|
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>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static System.Drawing.Bitmap IR {
|
public static System.Drawing.Bitmap ir {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("IR", resourceCulture);
|
object obj = ResourceManager.GetObject("ir", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1024,7 +1024,7 @@ Middle click to close</value>
|
||||||
<data name="SwitchToListView" xml:space="preserve">
|
<data name="SwitchToListView" xml:space="preserve">
|
||||||
<value>Switch to list view</value>
|
<value>Switch to list view</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="IR" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<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>
|
<value>..\Resources\ir.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
Binary file not shown.
Before Width: | Height: | Size: 385 B |
|
@ -1668,7 +1668,7 @@
|
||||||
<None Include="Resources\SocialHideButton.png" />
|
<None Include="Resources\SocialHideButton.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Resources\IR.png" />
|
<None Include="Resources\ir.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
Loading…
Reference in a new issue