VirtoolsTranslation/NlpTr
2023-07-18 20:34:14 +08:00
..
README.md add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT25.diff add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT25.index add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT25.template.json add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT25.zh-cn.json add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT30.diff support virtools 3.0 file 2023-07-18 20:34:14 +08:00
VT30.index support virtools 3.0 file 2023-07-18 20:34:14 +08:00
VT30.template.json support virtools 3.0 file 2023-07-18 20:34:14 +08:00
VT30.zh-cn.json support virtools 3.0 file 2023-07-18 20:34:14 +08:00
VT35.diff support virtools 3.0 file 2023-07-18 20:34:14 +08:00
VT35.index add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT35.template.json support virtools 3.0 file 2023-07-18 20:34:14 +08:00
VT35.zh-cn.json support virtools 3.0 file 2023-07-18 20:34:14 +08:00
VT40.diff add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT40.index add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT40.template.json add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT40.zh-cn.json add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT50.diff add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT50.index add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT50.template.json add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
VT50.zh-cn.json add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00

Nlp Translation

Create New Language Translation

These parts almost are done by repository maintainer. This is just a manual when maintainer goes.

  1. First, decide your preferred language macro. I take "zh-cn" in there for example.
  2. Executing ./Scripts/create_new_tr.sh "zh-cn" in ROOT folder.
  3. You will get a bunch of language json file named like "VT25.zh-cn.json" and listed in NlpTr folder.
  4. Then navigate to NlpProc folder and register your language macro.
    • NlpUtils.py: Add your language macro as a entry in the second declaration of g_SupportedLangs.
    • NlpJsonEncoder.py: Navigate to the second declaration of g_SupportedEncoding In Add your macro, specify the language name shown in Virtools and, a tuple of common encoding of your language. Please note that UTF8 encoding is necessary for each language.

How to Edit Translation

Choose your preferred translator, and fill the json correctly. I use Poedit anyway.

How to Compile Translation

  1. Executing ./Scripts/compile_tr.sh in ROOT folder.
  2. Then all nlp files should be generated in NlpTr/out