#4774: Added Portuguese to settings

This commit is contained in:
Jaex 2020-05-08 14:23:38 +03:00
parent 87d39b0ec6
commit b8d9a36a6b
8 changed files with 41 additions and 1 deletions

View file

@ -159,7 +159,9 @@
<Compile Include="Input\KeyboardHook.cs" />
<Compile Include="NameParser\CodeMenuEntryActions.cs" />
<Compile Include="ClipboardFormat.cs" />
<Compile Include="NameParser\CodeMenu.cs" />
<Compile Include="NameParser\CodeMenu.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ColorMatrixManager.cs" />
<Compile Include="Colors\CMYK.cs" />
<Compile Include="Colors\ColorEventHandler.cs" />
@ -1221,6 +1223,7 @@
<EmbeddedResource Include="Properties\Resources.ko-KR.resx" />
<EmbeddedResource Include="Properties\Resources.nl-NL.resx" />
<EmbeddedResource Include="Properties\Resources.pt-BR.resx" />
<EmbeddedResource Include="Properties\Resources.pt-PT.resx" />
<EmbeddedResource Include="Properties\Resources.ru.resx" />
<EmbeddedResource Include="Properties\Resources.tr.resx" />
<EmbeddedResource Include="Properties\Resources.uk.resx" />

View file

@ -65,6 +65,8 @@ public enum SupportedLanguage
MexicanSpanish,
[Description("فارسی (Persian)")]
Persian,
[Description("Português (Portuguese)")]
Portuguese,
[Description("Português-Brasil (Portuguese-Brazil)")]
PortugueseBrazil,
[Description("Русский (Russian)")]

View file

@ -100,6 +100,7 @@ public AboutForm()
{Resources.AboutForm_AboutForm_Language_uk}: https://github.com/6c6c6
{Resources.AboutForm_AboutForm_Language_id_ID}: https://github.com/Nicedward
{Resources.AboutForm_AboutForm_Language_es_MX}: https://github.com/absay
{Resources.AboutForm_AboutForm_Language_pt_PT}: https://github.com/FarewellAngelina
{Resources.AboutForm_AboutForm_External_libraries}:

View file

@ -107,6 +107,9 @@ public static Image GetLanguageIcon(SupportedLanguage language)
case SupportedLanguage.Persian:
icon = Resources.ir;
break;
case SupportedLanguage.Portuguese:
icon = Resources.pt;
break;
case SupportedLanguage.PortugueseBrazil:
icon = Resources.br;
break;
@ -173,6 +176,9 @@ public static string GetCultureName(SupportedLanguage language)
case SupportedLanguage.Persian:
cultureName = "fa-IR";
break;
case SupportedLanguage.Portuguese:
cultureName = "pt-PT";
break;
case SupportedLanguage.PortugueseBrazil:
cultureName = "pt-BR";
break;

View file

@ -177,6 +177,15 @@ public static string AboutForm_AboutForm_Language_pt_BR {
}
}
/// <summary>
/// Looks up a localized string similar to Portuguese.
/// </summary>
public static string AboutForm_AboutForm_Language_pt_PT {
get {
return ResourceManager.GetString("AboutForm_AboutForm_Language_pt_PT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Russian.
/// </summary>
@ -2062,6 +2071,16 @@ public static string Program_WritePersonalPathConfig_Cant_access_to_file {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap pt {
get {
object obj = ResourceManager.GetObject("pt", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Input text to encode.
/// </summary>

View file

@ -1033,4 +1033,10 @@ Middle click to close</value>
<data name="edit_scale_white" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\edit-scale-white.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="pt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\pt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AboutForm_AboutForm_Language_pt_PT" xml:space="preserve">
<value>Portuguese</value>
</data>
</root>

BIN
ShareX/Resources/pt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

View file

@ -1760,6 +1760,9 @@
<ItemGroup>
<None Include="Resources\edit-scale-white.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\pt.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>