iRIC Internationalization Manual¶
Overview¶
iRIC support multiple languages. Language setting can be changed with the following menu.
[Option] –> [Preferences…]
When you change language setting, you have to restart iRIC to apply the setting.
This document describes the procedure to prepare translation dictionaries of iRIC.
Dictionary files you need to prepare are shown in Table 1.
Extension |
Description |
Solver |
GUI |
---|---|---|---|
*.ts |
XML text file
This file contains the translated texts used in iRIC.
|
x |
x |
*.qm |
Binary file
This file is created from “*.ts” by “lrelease.exe”.
“lrelease.exe” is a executable program which is
included in Qt SDK. Refer to Appendix for detail.
|
x |
You can find the translation file(*.ts) for iRIC GUI at the following URL:
The files with name “iRIC_xx_XX.ts” are the files to translate. They are the files created from dictionary files for each libraries by merging.
The languages currently supported in iRIC, and the file names of translation files for each language are shown in Table 2.
Language |
File name |
---|---|
Arabic |
iRIC_ar_EG.ts |
Basque |
iRIC_eu_ES.ts |
Bosnian |
iRIC_bs_BA.ts |
Bulgarian |
iRIC_bg_BG.ts |
Catalan |
iRIC_ca_ES.ts |
Chinese (China) |
iRIC_zh_CN.ts |
Chinese (Taiwan) |
iRIC_zh_TW.ts |
Czech |
iRIC_cs_CZ.ts |
Danish |
iRIC_da_DK.ts |
Dutch |
iRIC_nl_NL.ts |
Estonian |
iRIC_et_EE.ts |
Finnish |
iRIC_fi_FI.ts |
French |
iRIC_fr_FR.ts |
German |
iRIC_de_DE.ts |
Galician |
iRIC_gl_ES.ts |
Greek |
iRIC_el_GR.ts |
Hindi |
iRIC_hi_IN.ts |
Hungarian |
iRIC_hu_HU.ts |
Icelandic |
iRIC_is_IS.ts |
Indonesian |
iRIC_id_ID.ts |
Italian |
iRIC_it_IT.ts |
Japanese |
iRIC_ja_JP.ts |
Korean |
iRIC_ko_KR.ts |
Latvian |
iRIC_lv_LV.ts |
Lithuanian |
iRIC_lt_LT.ts |
Norwegian |
iRIC_nb_NO.ts |
Polish |
iRIC_pl_PL.ts |
Portuguese (Brazil) |
iRIC_pt_BR.ts |
Portuguese (Portugal) |
iRIC_pt_PT.ts |
Romanian |
iRIC_ro_RO.ts |
Russian |
iRIC_ru_RU.ts |
Slovenian |
iRIC_sl_SI.ts |
Spanish |
iRIC_es_ES.ts |
Swedish |
iRIC_sv_SE.ts |
Thai |
iRIC_th_TH.ts |
Turkish |
iRIC_tr_TR.ts |
Ukrainian |
iRIC_uk_UA.ts |
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
Solver translation¶
Step 1¶
Create or update the translation file (*.ts) for the solver you want to prepare translation.
Select [Option] –> [Create/Update Translation Files] in iRIC GUI menu. Refer to Figure 1.
Click the next button on the dialog in Figure 2.
Select Solver and Languages you want to prepare translation on the dialog in Figure 3. Click the Next button.
Click the Finish button. The path you’ll get translation file (*.ts) is shown on the dialog, as in Figure 4.

“Create/Update Translation Files” menu¶

Introduction page¶

Select Program and Languages page¶

Confirm the result page¶
Step 2¶
Open the translation file with text editor and add translations for each English word. Please refer List 3 and List 4.
<message>
<source>Boundary Condition</source>
<translation></translation>
</message>
<message>
<source>Boundary Condition</source>
<translation>境界条件</translation>
</message>
What you should do is as follows:
Add translated text between <translation> and </translation>
Save the file
Step 3¶
You can see the translated text in the iRIC software when you restart the iRIC and starts a project for the solver you prepared translation file.
Information for internationalization volunteers¶
Thank you for your coorporation to iRIC internationalization.
In this page, we introduce information for volunteer translators.
iRIC GUI translation
Solver translation
iRIC GUI translation¶
You can translate iRIC GUI with the four steps below:
Create github account.
Fork iRIC GUI repository.
Edit dictionary to add translation.
Send pull request.
Create github account¶
Please access github from the following URL.
On the page you can input Username, Email, and Password to sign up.
Fork iRIC GUI repository¶
After you’ve created github account and signed in, please visit the following URL:
https://github.com/i-RIC/prepost-gui
You will have “Fork” button on the top right of the screen. Please click the button, to fork the repository.
After some time passes, you will be at URL like below:
Edit dictionary to add translation.¶
Now you can edit the dictionary file.
If you are familier with github, you can clone the repository to create local copy, edit files, and push the modification to the repository.
If you are new to github, the easiest way is to edit the file on web browser.
All the dictionary files are saved in “languages” folder, so please access that folder, and click on the file you want to edit.
Then, please click on the pencil icon with popup “Edit this file”, to start editing.
List 5 and List 6 shows an example of code before and after editing.
<message>
<location filename="../main/animationcontroller.cpp" line="48"/>
<source>Animation ToolBar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../main/animationcontroller.cpp" line="48"/>
<source>Animation ToolBar</source>
<translation>アニメーションツールバー</translation>
</message>
What you should do is as follows:
Delete “type=unfinished”
Add translated text between <translation> and </translation>
Send pull request¶
When you finished editing the file, check on the “Create a new branch for this commit and start a pull request”.
The default name for your new branch will be “(your-account-id)-patch-1”, so edit it to make it easier to know what it does, for example “solverconsole-es-translation”.
Now please visit the following URL.
https://github.com/i-RIC/prepost-gui
Then you’ll see “Compare & pull request” button, so please click it. “Open a pull request” page will be shown, so please click on “Create pull request” button. If you want to, you can add comments to the pull request.
Conguratulation! You’ve finished editing the dictionary of iRIC.
iRIC developers will review the changes you made, and if there is no problem, it will be merged, and the modification you’ve made will be applied to the next release.
Solver translation¶
Dictionaries for solvers are independent from those for iRIC GUI.
For example, messages and captions shown on “Calculation Condition” dialog is specific to solvers, so the messages are included in solver translation dictionary.
You can translate solver with the three steps below:
Create dictionary file.
Edit dictionary to add translation.
Upload dictionary to iRIC forum page
Create dictionary file¶
Create or update the translation file (*.ts) for the solver you want to prepare translation.
Select [Option] –> [Create/Update Translation Files] in iRIC GUI menu. Refer to Figure 5.
Click the next button on the dialog in Figure 6.
Select Solver and Languages you want to prepare translation on the dialog in Figure 7. Click the Next button.
Click the Finish button. The path you’ll get translation file (*.ts) is shown on the dialog, as in Figure 8.

“Create/Update Translation Files” menu¶

Introduction page¶

Select Program and Languages page¶

Confirm the result page¶
Edit dictionary to add translation¶
Open the translation file with text editor and add translations for each English word. Please refer List 7 and List 8.
<message>
<source>Boundary Condition</source>
<translation></translation>
</message>
<message>
<source>Boundary Condition</source>
<translation>境界条件</translation>
</message>
What you should do is as follows:
Add translated text between <translation> and </translation>
Save the file
Upload dictionary to iRIC forum page¶
Please upload the dictionary to iRIC forum page, from the URL below:
https://i-ric.org/en/new-forum/
Please input Subject like “Spanish dictionary proposal”, Select Category for the solver name, and please attach the dictionary file you’ve edited. Then, click on “Submit” button to send the file.
Conguratulation! You’ve finished editing the dictionary of solver.
Solver developers will review the changes you made, and if there is no problem, it will be merged, and the modification you’ve made will be applied to the next release.
Appendix: Installilng Qt SDK¶
You can download the Qt SDK installer from following url:
https://www.qt.io/download-open-source
Click on “Download the Qt Online Installer”. It is at almost the bottom of the page.
Click on “Qt Online Installer for Windows” link.
Then, you’ll get qt-unified-windows-x64-4.5.2-online.exe (Maybe the version number is different).
Now, launch the installer by double-clicking.
In Figure 9, click on “Next” button. If you are connecting internet where you need proxy setting, Please press “Setting” button before you proceed, to setup proxy setting.
In Figure 10, click on “Skip” button. If you already have Qt account, or want to create a new Qt Account, You can fill in “Login” or “Sign-up” form.
In Figure 11, click on “Next” button. Downloading meta data about files to install will start. This will take some time.
In Figure 12, enter the directory where you want to install Qt, and click on “Next” button.
In Figure 13, check on Qt / Qt 5.5 / msvc2013 64-bit, and click on “Next” button.
In Figure 14, read the license, check on “I have read and agree to the terms contained in the license agreements”, and click on “Next” button.
In Figure 15, click on “Next” button.
In Figure 16, click on “Install” button.

Qt Installer welcome page¶

Qt Account page¶

Qt Installer setup page¶

Qt Install folder select page¶

Component select page¶

License agreement page¶

Start menu shortcut page¶

Install ready page¶