Skip to main content

Property Localization

Last Updated Time: 09/18/2023

Overview

This documentation describes how to use the Property Localization edit window to modify property translations and complete property localization related content.

Opening the Property Localization Edit Window

In the Component Editor, click Tools (in the Menu Bar) -> Property Localization to open the Property Translation Edit window.

image-20230907132311282

Property Translation Edit window:

image-20230907135135007

No.NameProperty
1Search BarEnter the Module Name, Property Text Key, Reference Translation and Editable Translation in the corresponding search box to retrieve the relevant properties.
2Translation ClassificationTranslations with different completion states can be selected in this drop-down box for sorting and filtering.
3Reference Translation LanguageSelect the language of the Reference Translation.
4Editable Translation LanguageSelect the language of the Editable Translation.
5Module NameDisplay the Module Name of the property, which is not editable.
6Property Text KeyDisplay the Property Text Key of the property, which is not editable.
7Reference TranslationDisplay the Reference Translation of the property. When Raw is selected, it cannot be edited.
8Editable TranslationDisplay the Editable Translation of the property. When Raw is selected, it cannot be edited.
9Editable TextAfter selecting an Editable Translation, you can modify the translation of the corresponding property in the input box.
10Fill Not Completed EnglishFill all untranslated English translations (It will fill only when English is selected).

Editing Property Translation

In the Property Translation Edit window, select the language to be edited from the drop-down list box of Editable Translation.

image-20230907132701707

In the Editable Translation column, select a cell and enter the translation corresponding to the property in Editable Text.

image-20230907133634432

Press the Enter key to finish editing.

Enter

Select Hyperlink in the drop-down box of Editable Translation, find the property item that needs to add a hyperlink, select the corresponding Editable Translation cell, and input the link in the Editable Text and then press Enter key to complete the editing.

image-20230918110453021

After editing:

image-20230918110625929

After closing the Property Translation Edit window, select Yes in the pop-up message box to save the editing. Now restart the Editor, and you will see the jump hyperlink we just added.

image-20230918111731679

In the Component Editor, mouse over the Property that newly added the Hyperlink and press the shortcut key Ctrl+Shift to bring up the control, then click the Hyperlink on it to jump to the corresponding web page.

image-20230918115236861

Generating API Text

Click Tools (in the Menu Bar) -> Generate API Text and you will see 4 sub-menu items.

image-20230907150917102

Menu ItemDescription
Generate Editor API TextIncrementally generate translation Keys of types, properties and methods exposed to the script and visible to the Editor, and extract the comments in C++ as Raw translations.
Regenerate Editor API TextFully generate translation Keys of types, properties and methods exposed to the script and visible to the Editor, and extract the comments in C++ as Raw translations.
Generate Public API TextIncrementally generate translation Keys of types, properties, and methods that satisfy the documentation comment format, and extract the comments in C++ as Raw translations.
Regenerate Public API TextFully generate translation Keys of types, properties, and methods that satisfy the documentation comment format, and extract the comments in C++ as Raw translations.

Finding and Replacing

Note: Finding and replacing are both performed in Editable Transition.

Finding

Open the Property Translation Edit window (an interface that supports Finding). Currently, the window does not support setting the focus, and you need to select another child control.

image-20230907142351173

Press the shortcut keys Ctrl + F to open the Find interface.

image-20230907142519762

The Find interface:

image-20230907145507009

No.NameDescription
1Find TargetEnter the content you want to find.
2Find/Find All ButtonFind the next Editable Translation entry that matches the find conditions (Find Target, Match Case and Pattern Matching). If there is a match, the focus will switch to the next matching entry.
3Match CaseWhen searching, whether to distinguish the case in Find Target. If checked, it will be case-sensitive.
4Pattern MatchingWhether to use pattern matching when searching. If checked, Lua pattern matching will be used. Refer to https://www.lua.org/manual/5.1/manual.html#5.4.1。

Enter the content you want to find in Find Target (e.g. node), and click Find to locate the property translation entry containing the entered content in the Property Translation Edit interface. Click Find again to locate the next entry.

image-20230907155921150

Click the Find All button to filter out all property translation entries containing the entered content in the Property Translation Edit interface.

image-20230907160405313

Replacing

Open the Property Translation Edit window (an interface that supports replacing). Currently the window does not support setting the focus, and you need to select another child control.

image-20230907142740625

Press the shortcut keys Ctrl + H to open the Replace interface.

image-20230907150550891

The Replace interface:

image-20230908113026303

No.NameDescription
1Find TargetEnter the original content to be replaced.
2Replace WithEnter the present content to replace the original content with.
3Built-in Replace OptionThe built-in replacement condition (Find Target, Replace With, Match Case and Pattern Matching) options, and each option is a set of replacement conditions. The Engine's replacement option file is "%EditorResource%ini/localization/replace_option.ini". The Project's replacement option file is "%Resource%ini/localization/replace_option.ini".
4Find ButtonFind the next Editable Transition entry that matches the find conditions (Find Target, Match Case and Pattern Matching). If there is a match, the focus will switch to the next matching entry.
5Find All ButtonFind all Editable Transition entries that match the find conditions. Only matching Editable Transition entries are displayed.
6Replace ButtonChange the content in Find Target of the last matching entry to that in Replace With and find the next one. If there is no previous match, then it will only find the next one.
7Replace All ButtonFind all Editable Transition entries that match the find conditions, and change the content in Find Target of the matching entries to that in Replace With.
8Match CaseWhen searching, whether to distinguish the case in Find Target. If checked, it will be case-sensitive.
9Pattern MatchingWhether to use pattern matching when searching. If checked, Lua pattern matching will be used. Refer to https://www.lua.org/manual/5.1/manual.html#5.4.1。

Enter the content to be replaced in Find Target, click the Find button to find the property translation you want to replace, then enter the content to replace with in Replace With and click the Replace button to complete replacing.

image-20230907161423432

After replacing, it will automatically find and locate the next entry.

image-20230907161739426

You can also replace all with one click. If you want to replace all property translations containing Actor with Object, you can enter the content in Find Target and Replace With, then check Match Case, click Find All, and click Replace All.

image-20230907164931554

To use the Built-in Replace Option, select the replacement condition you want in the Built-in Replace Option, then click Find/Find All, and click Replace/Replace All.

image-20230907165450966

Not replaced:

image-20230907165743974

Replaced:

image-20230907165713132