khcoder icon indicating copy to clipboard operation
khcoder copied to clipboard

Chinese translation of interface messages

Open ko-ichi-h opened this issue 7 years ago • 5 comments

Description

KH Coder has Chinese interface but some messages have not been translated into Chinese yet.

How to Contribute

  1. Fork and Clone this repository
  2. Open "config/msg.cn" with your favorite text editor & search for ***not translated***.
  3. Add Chinese translation

There are lines like this:

max: '***not translated*** Max // 最大'

This is an example of a message that is not translated into Chinese. The meaning of this line is:

message-id: '***not translated*** English message // Japanese message'

Please edit the line like this to add Chinese message:

message-id: 'Chinese message'
  1. Test the message file "config/msg.cn" you edited.

    1. Download the latest release of the KH Coder, unzip, and run it.
    2. Select "Chinese" as the Interface Language.
    3. Shutdown KH Coder.
    4. Overwrite "config/msg.cn" with your edited version.
    5. Run KH Coder to see your translated messages in screens of KH Coder.
  2. Commit, push and send a pull request.

Note

KH Coder is available under the terms of the GNU GPL v2 or later. Contributed messages will be a part of KH Coder and the license of KH Coder will be applied. Your contribution will be documented in the "Contributors" page.

ko-ichi-h avatar May 23 '18 14:05 ko-ichi-h

It is really hard to look at the messages like below in the console and add the translation in the file.

Missing from cn.msg: gui_window::word_search -> show_bars "Bar chart"

I suggest that adding all items to the config file with English description as the default value. It will make the translation easier. Because we just need to search for the English word and replace it with Chinese word.

DayuanJiang avatar Feb 05 '19 15:02 DayuanJiang

Thanks to DayuanJiang's contribution: https://github.com/ko-ichi-h/khcoder/commit/e99608c804ef8f58159052a40a4d44eb306b1a6c, Chinese translation of interface messages have been completed, except for SCREEN AS's plug-in. I close this issue for now. In the future, if further translation of messages becomes necessary, I will reopen it.

Also, I would like to consider improving procedure for adding translations. Thanks for pointing it out.

ko-ichi-h avatar Feb 11 '19 10:02 ko-ichi-h

I have improved the procedure for adding translations and update the instruction in the 1st post.

ko-ichi-h avatar Mar 17 '20 17:03 ko-ichi-h

you can assign it to me once there are some things new need to be translated in Chinese. with thanks

shun2wang avatar Feb 22 '22 03:02 shun2wang

Hi icekylin,

There are many untlanslated labels. You can start contibuting at anytime.

To contribute, open "config/msg.cn" and search for ***not translated***. Please read the 1st post of this issue for more details. You can skip step 4 (testing) if you want to.

Thank you.

ko-ichi-h avatar Feb 24 '22 09:02 ko-ichi-h