Menu

#10 Chinese (Simplified, zh_CN) translation

1.0
closed
nobody
None
2020-05-21
2020-05-21
Chen, MJ
No

Hi, I've attached translation for Chinese using in mainland China (zh_CN) below. If you wish you may add it into the project.

1 Attachments

Discussion

  • Chen, MJ

    Chen, MJ - 2020-05-21

    It works fine when named as ColoredPassword.zh.language.xml. I didn't look into the code but once I appended region code CN to the file name, all came back to English again... I wonder how to correctly name different language variations...

     
  • Rookiestyle

    Rookiestyle - 2020-05-21
    • status: open --> closed
     
  • Rookiestyle

    Rookiestyle - 2020-05-21

    Hi, thanks for providing the translation!
    I added it as ColoredPassword.zh.language.xml

    In general, there are two options to identify the translation file that has to be used:

    1. Based on your computer's setting
    2. Based on the language selected in KeePass

    I decided to go for the 2nd option to accomodate for cases where the user decided to e. g. run KeePass in simplified chinese although the computer's language is set to traditional chinese, english, french, german, whatever...

    Every language file for KeePass stores a language identifier inside and my plugins use this information to compose thenname of the translation file.

    I assume you're using Chinese_Simplified.lngx from Leo Dou?
    Language identifier inside this language file is zh and due to that ColoredPassword.zh.language.xmlis loaded.
    If this file does not exist, en is used as fallback.

    If Leo Dou had used zh-cn, ColoredPassword.zh-cn.language.xml would work.
    If that file does not exist, ColoredPassword.zh.language.xml would be used as fallback.
    If that file does not exist either, english is used.

     
MongoDB Logo MongoDB