Skip to content

Commit

Permalink
Update for iRIC v4
Browse files Browse the repository at this point in the history
  • Loading branch information
kskinoue0612 committed May 26, 2023
1 parent 34584f6 commit a7639c7
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 35 deletions.
127 changes: 107 additions & 20 deletions 01_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ Dictionary files you need to prepare are shown in :numref:`table_dic_files`.
-
- x

You can find the translation file(\*.ts and \*.qm) for iRIC GUI
at the following folder:
You can find the translation file(\*.ts) for iRIC GUI
at the following URL:

(Install folder)\\iRIC\\guis\\prepost\\languages
https://github.com/i-RIC/prepost-gui/tree/develop_v4/languages


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
:numref:`table_languages`. If you want to add translation for
additional languages, please contact us.
:numref:`table_languages`.

.. list-table:: Languages currently supported
:name: table_languages
Expand All @@ -54,29 +57,113 @@ additional languages, please contact us.
* - 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
- \*_ja_JP.ts
- iRIC_ja_JP.ts

* - Korean
- \*_ko_KR.ts
- iRIC_ko_KR.ts

* - Thai
- \*_th_TH.ts
* - Latvian
- iRIC_lv_LV.ts

* - Indonesian
- \*_id_ID.ts
* - Lithuanian
- iRIC_lt_LT.ts

* - Chinese
- \*_zh_CN.ts
* - Norwegian
- iRIC_nb_NO.ts

* - Spanish
- \*_es_ES.ts
* - Polish
- iRIC_pl_PL.ts

* - French
- \*_fr_FR.ts
* - Portuguese (Brazil)
- iRIC_pt_BR.ts

* - Portuguese (Portugal)
- iRIC_pt_PT.ts

* - Romanian
- iRIC_ro_RO.ts

* - Russian
- \*_ru_RU.ts
- 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

* - Vietnum
- \*_vi_VN.ts
* - Ukrainian
- iRIC_uk_UA.ts
21 changes: 11 additions & 10 deletions 02_gui_translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ GUI translation
Step 1
------

Find the translation file (\*.ts) you want to edit, which is located in:

(Install folder)\\iRIC\\guis\\prepost\\languages
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

Step 2
-------
Expand All @@ -21,7 +20,6 @@ Please refer to :numref:`code_ts_before_editing` and
:name: code_ts_before_editing
<message>
<location filename="../main/animationcontroller.cpp" line="48"/>
<source>Animation ToolBar</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -31,7 +29,6 @@ Please refer to :numref:`code_ts_before_editing` and
:name: code_ts_after_editing
<message>
<location filename="../main/animationcontroller.cpp" line="48"/>
<source>Animation ToolBar</source>
<translation>アニメーションツールバー</translation>
</message>
Expand All @@ -49,21 +46,25 @@ Compile "*.ts" file using "lrelease.exe"
**You should install Qt SDK to get lrelease.exe. See Appendix for detail.**

1. Launch "Qt 5.5 64-bit for Desktop (MSVC 2013)" from menu below:
1. Launch "Qt 5.15.2 (MSVC 2019 64-bit)" from menu below:

[Windows Start Menu] --> [Qt] --> [5.5] --> [MSVC 2013 (64-bit)]
[Windows Start Menu] --> [Qt]

2. Move to the folder which contains "*.ts" file.
2. Move to the folder which contains "\*.ts" file.
3. Execute the following command.

.. code-block:: batch
lrelease.exe (dictionary file name)
After you execute the command, you'll see that *.qm is created in the same folder.
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 after restarting it.
You can check the translated text in the iRIC GUI by the following steps:

1. Remove all dictionary files in (iRIC install folder)/guis/prepost/languages
2. Copy the \*.qm file you've compiled with Step 3 to the folder above.
3. Switch the language from the menu Option -> Preference
4. Restart iRIC GUI
9 changes: 4 additions & 5 deletions 05_appendix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ Appendix: Installilng Qt SDK

You can download the Qt SDK installer from following url:

https://www.qt.io/download
https://www.qt.io/download-open-source

1. Click on "Go open source" link. It is at almost the bottom of the page.
2. Click on "Accept" link.
3. Click on "Download" link.
1. Click on "Download the Qt Online Installer". It is at almost the bottom of the page.
2. Click on "Qt Online Installer for Windows" link.

Then, you'll get qt-unified-windows-x86-3.0.2-online.exe (Maybe the version number is different).
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.

Expand Down

0 comments on commit a7639c7

Please sign in to comment.