mst_mapenemy - BASLQC/kc-vita-translation GitHub Wiki
This can be procedurally translated: but only boss names are represented in KC3's ships.json.
However, if you figure out each enemy destroyer name, you can make a hash list (e.g. "้ๅทกใ็ด":"Heavy Cruiser Ne-Class") so we can do procedural generation. That way we won't have to edit each one.
- Provide a hash list of every enemy destroyer name and their translation (e.g. "้ๅทกใ็ด":"Heavy Cruiser Ne-Class").
- Perhaps a JSON file in every language folder (
en/,tcn, etc.) can be placed to aid in procedural, updatable generation.
- Import the hash list of destroyer names into a (Python) dictionary.
- Also import the existing hash list of enemy capital ships from
ships.json. - Search through every file in the
jp/Xml/table/masters/mst_mapenemy/folder.
- Find all enemy ship names, check in both hash lists, replace with translation if matched.
- If translation not found, leave Japanese text in there.
- Write each translated file to
<LANG>/Xml/table/masters/mst_mapenemy/.