Skip to content

Commit

Permalink
-add: Swedish language for the launcher (#7)
Browse files Browse the repository at this point in the history
Added Swedish (se_sv) to the launcher
Language file provided by TheDarkNoise
  • Loading branch information
ZeromusXYZ committed Jun 4, 2023
1 parent 8c3cce1 commit 4279f3b
Show file tree
Hide file tree
Showing 10 changed files with 362 additions and 12 deletions.
4 changes: 4 additions & 0 deletions AAEmu.Launcher/AAEmu.Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@
</ItemGroup>
<ItemGroup>
<Content Include="aaemu.ico" />
<None Include="Res\flag_se_sv.png" />
<None Include="lng\se_sv.lng">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Res\mini_locale_unknown.png" />
<None Include="Res\flag_traditional_chinese.png" />
<None Include="Res\mini_locale_traditional_chinese.png" />
Expand Down
30 changes: 21 additions & 9 deletions AAEmu.Launcher/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions AAEmu.Launcher/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public partial class ClientLookupHelper
private const string settingsLangJP = "ja"; // Japanese
private const string settingsLangZH_CN = "zh_cn"; // Chinese simplified
private const string settingsLangZH_TW = "zh_tw"; // Chinese traditional // Not sure how I'd do this with flags if ever
private const string settingsLangSE_SV = "se_sv"; // Swedish

public partial class LanguageSettings
{
Expand Down Expand Up @@ -764,6 +765,9 @@ private void ApplyLanguageToLauncher()
case settingsLangZH_CN:
btnLauncherLangChange.Image = Properties.Resources.flag_cn;
break;
case settingsLangSE_SV:
btnLauncherLangChange.Image = Properties.Resources.flag_se_sv;
break;
case settingsLangEN_US:
default:
Setting.LauncherLang = settingsLangEN_US;
Expand Down
6 changes: 3 additions & 3 deletions AAEmu.Launcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ZeromusXYZ")]
[assembly: AssemblyProduct("AAEmu.Launcher")]
[assembly: AssemblyCopyright("Copyright © 2019-2022, No Rights Reserved")]
[assembly: AssemblyCopyright("Copyright © 2019-2023, No Rights Reserved")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// Можно задать все значения или принять номер сборки и номер редакции по умолчанию.
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.5.6.0")]
[assembly: AssemblyFileVersion("0.5.6.0")]
[assembly: AssemblyVersion("0.5.6.1")]
[assembly: AssemblyFileVersion("0.5.6.1")]
10 changes: 10 additions & 0 deletions AAEmu.Launcher/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions AAEmu.Launcher/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,7 @@
<data name="mini_locale_unknown" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Res\mini_locale_unknown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="flag_se_sv" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Res\flag_se_sv.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
2 changes: 2 additions & 0 deletions AAEmu.Launcher/Res/Flags/Nuvola Flags - Wikimedia Commons.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://commons.wikimedia.org/w/index.php?search=nuvola+flags&title=Special:MediaSearch&go=Go&type=image
Loading

0 comments on commit 4279f3b

Please sign in to comment.