1
0
mirror of synced 2025-02-21 04:47:15 +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)
{
switch (lang) {
case "es":
CLangManager.LangInstance = new CLang_es();
break;
case "fr":
CLangManager.LangInstance = new CLang_fr();
break;
@ -33,6 +36,8 @@ namespace TJAPlayer3
{
switch (lang)
{
case "es":
return 3;
case "fr":
return 2;
case "en":
@ -47,6 +52,8 @@ namespace TJAPlayer3
{
switch (idx)
{
case 3:
return "es";
case 2:
return "fr";
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();
}
}

View File

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