spanish support

This commit is contained in:
2023-11-09 18:29:53 -05:00
parent e3b5962ecd
commit 0810b1b4df
10472 changed files with 81407 additions and 17087 deletions
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Assets.Scripts;
using Game;
using Qoo.Input;
using Qoo.Wnd;
@@ -82,15 +83,20 @@ namespace Qoo.Game
UnityEngine.Debug.LogWarning("first");
KsExec.confirm = false;
KsExec.confirmResult = false;
if (UnityApp.Instance.isJapanese)
{
KsExec.editName = "アリス";
KsExec.editLastName = "リデル";
}
else
switch (UnityApp.Instance.locale)
{
KsExec.editName = "Alice";
KsExec.editLastName = "Liddell";
case Assets.Scripts.LocaleEnum.English:
KsExec.editName = "Alice";
KsExec.editLastName = "Liddell";
break;
case Assets.Scripts.LocaleEnum.Spanish:
KsExec.editName = "Alice";
KsExec.editLastName = "Liddell";
break;
default:
KsExec.editName = "アリス";
KsExec.editLastName = "リデル";
break;
}
NameInputKeyboard.DebugInputText = KsExec.editName;
NameInputKeyboard.DebugInputTextLastName = KsExec.editLastName;
@@ -151,7 +157,24 @@ namespace Qoo.Game
}*/
if (UnityApp.Instance.isJapanese)
msgs = new string[]
{
string.Format(
UnityApp.Instance.locale switch
{
LocaleEnum.English => "{0} {1}",
LocaleEnum.Spanish => "{0} {1}",
_ => "「{0}{1}」です。"
}, arg, arg2),
UnityApp.Instance.locale switch
{
LocaleEnum.English => "Is this Correct?",
LocaleEnum.Spanish => "Spanish translation name confirmation message",
_ => "よろしいですか?"
}
};
/*if (UnityApp.Instance.isJapanese)
{
msgs = new string[]
{
@@ -165,8 +188,8 @@ namespace Qoo.Game
{
string.Format("Is {0} {1} correct?", arg, arg2)
};
}
}*/
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg(msgs, new Action<bool>(KsExec.SetResult)));
KsExec.confirm = true;
KsExec.confirmResult = false;