Last active
September 28, 2020 03:01
-
-
Save cloudwu/9871fdde0fdd87523b6db0f423761b9c to your computer and use it in GitHub Desktop.
config.csv for MOO UCP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void LoadFile(string path) | |
{ | |
try | |
{ | |
string csvText = AssetManager.Get().Resource<string>(path); | |
string[,] array = CSVReader.SplitCsvGrid(csvText); | |
// Fix bug of UCP here | |
for (int i = 2; i < array.GetUpperBound(0); i++) | |
{ | |
for (int j = 1; j < array.GetUpperBound(1); j++) | |
{ | |
if (array[0, j] != null && array[0, j].Length != 0) | |
{ | |
languages[i - 2].PushText(array[0, j], array[i, j]); | |
} | |
} | |
} | |
} | |
catch (Exception ex) | |
{ | |
Debug.LogError((object)("Exception while trying to load localization file: " + path)); | |
Debug.LogException(ex); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Language | English | Russian | German | French | Polish | Czech | Turkish | Spanish (Spain) | Spanish (Latin America) | Portuguese (Brazil) | Korean | Japanese | Traditional Chinese | Simplified Chinese | English | English | English | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Native Name | English | Русский | Deutsch | Français | Polski | Čeština | Türkçe | Español (España) | Español (Latinoamérica) | Português (Brasil) | Korean | Japanese | Traditional Chinese | Simplified Chinese | English | English | English | |
Short Name | en | ru | de | fr | pl | cs | tr | es-es | es-la | pt-br | ko | jp | zh-tw | zh-cn | en | en | en | |
Unicode | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | TRUE | FALSE | FALSE | FALSE | |
VoiceOver | TRUE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | |
CultureInfo | en-US | ru-RU | de-DE | fr-FR | pl-PL | cs-CZ | tr-TR | es-ES | es-MX | pt-BR | ko-KR | ja-JP | zh-TW | zh-CN | en-US | en-US | en-US |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment