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)

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 24e1d45d8e9227f44ac9f92bbec62b8d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,6 @@
{
"1": {
"Chinese": "第一章",
"EngLish": "第一章内容"
}
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6af553b847225854db57f39a45cc27bf
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,3 @@
{
"CurlocalizationId": 1
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4a163b44b506e7d4b8ed782a14b13dab
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: