GUI translation¶
Step 1¶
Find the translation file (*.ts) you want to edit, which you can find at the following URL:
Step 2¶
Open the translation file with text editor and add translations for each English word. Please refer to List 1 and List 2.
<message>
<source>Animation ToolBar</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Animation ToolBar</source>
<translation>アニメーションツールバー</translation>
</message>
What you should do is as follows:
Delete “type=unfinished”
Add translated text between <translation> and </translation>
Save the file
Step 3¶
Compile “*.ts” file using “lrelease.exe”
You should install Qt SDK to get lrelease.exe. See Appendix for detail.
Launch “Qt 5.15.2 (MSVC 2019 64-bit)” from menu below:
[Windows Start Menu] –> [Qt]
Move to the folder which contains “*.ts” file.
Execute the following command.
lrelease.exe (dictionary file name)
After you execute the command, you’ll see that *.qm is created in the same folder.
Step 4¶
You can check the translated text in the iRIC GUI by the following steps:
Remove all dictionary files in (iRIC install folder)/guis/prepost/languages
Copy the *.qm file you’ve compiled with Step 3 to the folder above.
Switch the language from the menu Option -> Preference
Restart iRIC GUI