MyLocalization Decument
  • v1.3
    • MyLocalization English Document
      • MyLocalization Data Flow Diagram
      • Quick Start
        • Run the Demo Correctly
        • Preparation
        • Localize Text
        • Localize Texture
        • Localization of Other Types of Resources
      • Load Assets
        • Only Load Resources Corresponding to the Current Language
        • Implement IResLoader interface
        • Enable IResLoader Subclass
        • Convert Resource References Associations to Paths
        • Text Localization Items Do Not Need to Be Loaded with Language Type
      • Edit Text for Localization
        • Basic Operation
        • Automatic Translation
        • Find and Replace
        • Speech Binding Text
        • CSV Table Export and Import
        • Essay on the Importance of Text Table (StringTable)
      • Display and Setter Components
        • Correspondence between Setter Components and Display Components
        • RTL (Right To Left) Related Settings
        • Dynamic Splicing of Localized Text
        • Quickly create and modify localized field text using properties of MyString
    • MyLocalization 中文文档
      • MyLocalization 数据流程图
      • 快速开始
        • 正确运行 Demo
        • 准备工作
        • 文本本地化
        • 图片本地化
        • 其他资源的本地化
      • 加载当前语言资源
        • 只加载当前语言对应的资源
        • 实现 IResLoader 接口
        • 启用 IResLoader 子类
        • 将资源引用关联转为路径
        • 文本的本地化项不能随语言类型加载
      • 编辑文本表
        • 基本操作
        • 自动翻译
        • 搜索与替换
        • 语音绑定文字
        • CSV表格导出与导入
        • 使用 MyString 的属性快速创建和修改本地化字段文本
      • 一切准备都为了Setter组件实现本地化
        • Setter 组件与显示组件的对应关系
        • RTL (Right To Left)相关设置
        • 动态拼接本地化文本
Powered by GitBook
On this page
  1. v1.3
  2. MyLocalization English Document

MyLocalization Data Flow Diagram

PreviousMyLocalization English DocumentNextQuick Start

Last updated 2 years ago

The above figure shows the workflow of the MyLocalization system. From left to right, prepare the resources and text that need to be localized first, and it is usually easier to encounter the text requirements that need to be localized.

No matter what localization requirements are encountered, first create a LanguageTypeCData resource to define the language type suitable for your project requirements, and then add language types as needed.In addition, add a game object in the current scene, attach the LocalizationSetting component, and set the LanguageType CData resource to the languageType attribute of the LocalizationSetting component.

When text localization is required, create a new StringTable resource in the Assets directory (usually automatically associated with the LanguageTypeCData resource set in the LocalizationSetting existing in the current scene). Then open the StringTable Resource Editor, where you can edit the text's localization and associate the language audio files associated with the text.Much of the text used for the UI does not need to be associated with an audio file.

After these texts are processed, add the corresponding Setter component on the UI component or other forms of display components to be localized, for example, if you want to localize the Text component of Ugui or the text display component of TextMeshPro, You need to add the UITextSetter or UITextStaticSetter component to the same game object;If you want to localize the DropDown component, you need to add the DropownSetter component, and the rest of the text appears similar.

Make some settings on these Setter components to associate them with the text fields set in the StringTable, and then they can be localized normally.

For other non-text localization requirements, you need to do this:

Find the LocalizationSetting component in the current scene. If not, create a new one. Set the corresponding type of localization item (Leaf) in the [Localization Item Container] attribute. After setting, note that it is likely to lock the field name of Leaf, which means that this field name will not be modified in the future.Because the Setter component is associated with the Leaf's field name (except for the UITextSetter or UITextStaticSetter components), do not modify the Leaf's field name without losing the association.

After Leaf is set, you can add the corresponding Setter component on the UI component or other forms of display components that need to be localized, and then associate the field name of Leaf in the Setter component.

If additional localizations are required, the above process can be repeated. For LanguageTypeCData resources and LocalizationSetting components, typically only one project is needed to meet the requirements, and no more needs to be created. With that done, the localization process is complete.