Localization本地化

Localization本地化
This commit is contained in:
ALEXTANG
2022-07-19 10:04:06 +08:00
parent fc86bb9182
commit 2ff07d7f3b
6 changed files with 36 additions and 1 deletions

View File

@@ -15,7 +15,11 @@ namespace TEngine
protected override void Start()
{
base.Start();
if (string.IsNullOrEmpty(this.text))
if (Key > 0 && string.IsNullOrEmpty(this.text))
{
text = SetText(Key);
}
else if (!string.IsNullOrEmpty(this.text))
{
Key = LocalizeMgr.Instance.GetLocalId(this.text);
if (Key <= 0)