Skip to content

Instantly share code, notes, and snippets.

@cloudwu
Last active September 28, 2020 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloudwu/9871fdde0fdd87523b6db0f423761b9c to your computer and use it in GitHub Desktop.
Save cloudwu/9871fdde0fdd87523b6db0f423761b9c to your computer and use it in GitHub Desktop.
config.csv for MOO UCP
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);
}
}
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