1
0
mirror of synced 2025-02-22 21:19:56 +01:00

Integrate funnym0th spanish CLang file

This commit is contained in:
0aubsq 2021-11-09 13:45:21 +01:00
parent 33259ad04b
commit f6e7e239ef
2 changed files with 9 additions and 1 deletions

View File

@ -16,6 +16,9 @@ namespace TJAPlayer3
public static void langAttach(string lang) public static void langAttach(string lang)
{ {
switch (lang) { switch (lang) {
case "es":
CLangManager.LangInstance = new CLang_es();
break;
case "fr": case "fr":
CLangManager.LangInstance = new CLang_fr(); CLangManager.LangInstance = new CLang_fr();
break; break;
@ -33,6 +36,8 @@ namespace TJAPlayer3
{ {
switch (lang) switch (lang)
{ {
case "es":
return 3;
case "fr": case "fr":
return 2; return 2;
case "en": case "en":
@ -47,6 +52,8 @@ namespace TJAPlayer3
{ {
switch (idx) switch (idx)
{ {
case 3:
return "es";
case 2: case 2:
return "fr"; return "fr";
case 1: case 1:
@ -57,7 +64,7 @@ namespace TJAPlayer3
} }
} }
public static readonly string[] Languages = new string[] { "日本語", "English", "Français" }; public static readonly string[] Languages = new string[] { "日本語", "English", "Français", "Español" };
public static ILang LangInstance { get; private set; } = new CLang_jp(); public static ILang LangInstance { get; private set; } = new CLang_jp();
} }
} }

View File

@ -106,6 +106,7 @@
<Compile Include="Common\Discord.cs" /> <Compile Include="Common\Discord.cs" />
<Compile Include="Common\Easing.cs" /> <Compile Include="Common\Easing.cs" />
<Compile Include="Common\NamePlateConfig.cs" /> <Compile Include="Common\NamePlateConfig.cs" />
<Compile Include="I18N\CLang_es.cs" />
<Compile Include="I18N\CLang_fr.cs" /> <Compile Include="I18N\CLang_fr.cs" />
<Compile Include="I18N\CLang_en.cs" /> <Compile Include="I18N\CLang_en.cs" />
<Compile Include="I18N\CLang_jp.cs" /> <Compile Include="I18N\CLang_jp.cs" />