File Structures and Other Configurable Items
Last Updated Time: 09/07/2023
File Directory Structure
text
|---- en
||--- xxx.idres
||--- textfiles.ini
|---- zh_cn
||--- xxx.idres
|| --- textfiles.ini
|---- error.txt
Folder Descriptions
Name | Description |
---|---|
text | Root directory of configuration files, storage files and translation output files. |
en | English configuration files and English translation storage files. |
zh_cn | Chinese configuration files and Chinese translation storage files. |
File Descriptions
Suffix | Description |
---|---|
textfiles.ini | String table (.idres) management file, including all string table files (For details on configuration formats, please refer to File Content Formats). |
xxx.idres | String table file, used to store Key-Text (source string-target string) key-value pairs (For details on configuration formats, please refer to File Content Formats). There can be multiple .idres files to store the translations of different modules, which is convenient for later maintenance, management and search. The translation of the game DLC can be stored in an independent .idres file. |
xxx.txt | Log output. |
Special File Descriptions
Name | Description |
---|---|
auto.idres | All legal source strings and target strings found after selecting the translation directory (auto-generated). |
error.txt | All illegal source strings and output file formats of error logs found after selecting the translation directory. Keys starting with special characters such as 0-9 , _ * . ' or Chinese are illegal source strings that cannot be added successfully when added manually. |
File Content Formats
textfiles.ini
No. | Name |
---|---|
1 | Configuration |
2 | Incremental Number |
3 | File Name |
xxx.idres
No. | Name |
---|---|
1 | Key |
2 | Text |
error.txt
No. | Name |
---|---|
1 | File Path |
2 | Error Location |
3 | Error Key Value |
Configuring File Directory Structure
Right-click in the Folder Structure List of the Project panel to pop up a Shortcut Menu. Select Open Resource Directory to open the project's current location folder.
Create a new folder anywhere (The folder name is not limited here).
Create en and zh_cn folders under the new folder.
Create textfiles.ini files under the en and zh_cn folders respectively (Please refer to File Content Formats for details on the .ini file format).
Configuring Game Text Localization Paths
Click Config (Menu Bar) -> Project Settings to open the Project Settings window. Select the General Project Settings tab to display the right panel. Configure the language and path respectively under the Language property.
Name | Description |
---|---|
Language | Select the target string language which is en by default. |
Localization Path | Select the project string table path which is the text folder under the resource directory by default. |
Note: If it is not saved, a prompt window will pop up.