To speed up the creation of the translation table the Inventory Database was exported to CSV and imported it in google sheet. From there the relevant data (item name, description, item category name, recipe name, etc.) was copied to the another google sheet to make the localization table. ...
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:l="UnityEngine.Localization" xmlns:lv="UnityEngine.Localization.SmartFormat.PersistentVariables"> <ui:Label text="Label"> <Bindings> <l:LocalizedString property="text" table="My Table" entry="My Entry"> <variables> <l:LocalVariable name="...
要获取所需的翻译,可以使用带有以下参数的异步GetLocalizedString(string tableName, string key)方法:
publicclassProcedurePreload:ProcedureBase{//加载内容名-加载是否完成privateDictionary<string,bool>loadedFlagDict=newDictionary<string,bool>();//定义了有哪些数据表,生成数据表的时候会对应这里publicstaticreadonlystring[]DataTableNames=newstring[]{"Music","Scene","UIForm","UISound","Entity",};protectedo...
An asset to represent a table of localized strings for one specific locale. Variables isEditorAsset Is this asset used to localize UI components of the Unity Editor localeIsoCode ISO Code used to identify the locale. ex: en-uk, zh-hans, ja Constructors LocalizationAsset Creates a new empty...
Localization 本地化:从外部文件(.txt/.bytes)读取数据再去使用 -> LocalizationManager:Has/Add/RemoveRawString/GetString都是通过字典m_Dictionary进行 Read/ParseData和Config、DataTable一样通过DataProvider进行 -> DefaultLocalizationHelper:这个有Read/ParseData的具体实现,但是StarForce读取本地化文件用的是XmlLocaliz...
要获取所需的翻译,可以使用带有以下参数的异步GetLocalizedString(string tableName, string key)方法:
防止我忘了publicclassLTCSVLoader{privateTextReaderinStream=null;privateList<string> vContent;privateList<List<string>> table;/// <summary>/// 只支持GBK2312的编码(WPS直接保存的编码支持,仅提供给Windows使用)/// </summary>/// <param name="fileName"></param>publicvoidReadFile(string fileName){...
public void ParseDataRow(string input) { string[] text = input.Split('\t'); int index = 0; Id = int.Parse(text[index++]); NextId = int.Parse(text[index++]); MapType = int.Parse(text[index++]); Name = (DataTableExtension.GetStringFromKey(text[index++])); ...
This tool can automatically translate missing string entries in Unity Localization using OpenAI GPT, making multilingual support both simple and efficient. Features Integration with Unity Localization: Automatically find untranslated items in the String Table Collection and sync the results back to the ...