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.
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.