Find the translation file (*.ts) you want to edit, which you can find at the following URL:
https://github.com/i-RIC/prepost-gui/tree/develop_v4/languages
Open the translation file with text editor and add translations for each English word. Please refer to :numref:`code_ts_before_editing` and :numref:`code_ts_after_editing`.
<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
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.
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