Go to file
2023-08-17 10:25:53 +08:00
NlpCodec fix typo 2023-08-17 10:25:53 +08:00
NlpParser add scripts. rename NlpCodec. update documents 2023-07-13 22:12:02 +08:00
NlpProc support virtools 3.0 file 2023-07-18 20:34:14 +08:00
NlpSrc support virtools 3.0 file 2023-07-18 20:34:14 +08:00
NlpTr update zh-cn translation 2023-07-18 21:41:56 +08:00
Scripts add VT30 in README. fix working directory issue of scripts 2023-07-25 15:44:50 +08:00
.gitattributes improve parser. add some readme. 2023-06-30 22:12:44 +08:00
.gitignore add critical field checker. add workable zh-cn translation 2023-07-14 15:56:35 +08:00
LICENSE first commit 2023-06-26 22:00:10 +08:00
README.md add VT30 in README. fix working directory issue of scripts 2023-07-25 15:44:50 +08:00

Virtools Translation

Provide I18N for an abandoned ancient game-making software - Virtools.

This repository consist of these parts:

  • NlpCodec: The codec about encoding and decoding NLP translation file used by Virtools.
  • NlpParser: An ANTLR written parser which can recognised decoded NLP text file syntax and convert it to a neasted JSON format because JSON format is more common.
  • NlpProc
    • Convert the JSON between the nested JSON output by NlpParser and un-nested JSON (flat JSON / plain JSON) to let it more acceptable for the most of common I18N software.
    • Output NLP text file when compiling translation.

How to Translate

I take zh-cn (Chinese) as a example. Navigate to NlpTr folder first. and you will find following files.

  • VT25.zh-cn.json
  • VT30.zh-cn.json
  • VT35.zh-cn.json
  • VT40.zh-cn.json
  • VT50.zh-cn.json

The only things you need to do is translate these JSON files.

How to Add Language

Contact the owner of repository, or follow the manual NlpTr/README.md when owner went off.

How the Files Generated in NlpTr

This section is not suit for beginner.

  1. Run ./Scripts/compile_codec.sh to compile NlpCodec
  2. Run ./Scripts/compile_parser.sh to compile NlpParser
  3. Run ./Scripts/generate_source.sh to generate the files located in NlpTr.

How We Generate NLP Files when Publishing

This section is not suit for beginner.

  1. Run ./Scripts/compile_codec.sh to compile NlpCodec. Skip if you have compiled.
  2. Run ./Scripts/compile_tr.sh

Can I Use This on Windows

Use MSYS2.