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
  3. Display and Setter Components

Quickly create and modify localized field text using properties of MyString

PreviousDynamic Splicing of Localized TextNextMyLocalization 中文文档

Last updated 2 years ago

A field of type MyString for any object will usually look like the GUI block shown in the red box above. It looks complicated, but there are actually only four places to do it, as shown in the image below: 1, 2, 3, 4:

Using 1 and 3, you can quickly create a field in the StringTable of the MyString reference, reference the newly created field in the current MyString, and write a string of the same name as the field in the text of the current language of the new field. The operation is as follows:

Enter the name of the field you want to create in 1, for example: 'TestField 2'

Click the 3 button.

Note: The current language indicated in the red box above is simplified Chinese. That is to say, a new field named TestField 2 is created and 'TestField 2' is filled into the simplified Chinese text. However, 'TestField 2' is not the simplified Chinese text we want. So you should switch the current language to English before creating.

Using 1 and 2, you can quickly overwrite the text in the current language corresponding to the associated field in the StringTable referenced by MyString. In special cases, if the field name is equal to the text in the current language before overwriting, the field name is also changed during overwriting so that the field name is still equal to the text in the current language after overwriting (sometimes useful!).

In 4, the text for the current language of the field associated with MyString is usually displayed, so if you want to simply change the value, you can edit it directly in 4. If the field names are equal to text in the current language and you want to edit them both, do not change them here, but use 1 and 2 instead.

If the field names do not correspond to text in the current language and you want to edit them simultaneously, it is recommended to open the text table editor directly, where the changes are more intuitive. To quickly open the text table editor, click the white dot button in the image below: