wc3trans

This bundle is marked as pending. It has not been reviewed by a staff member yet.
  • Like
Reactions: deepstrasz
Motivation
The war3map.wts file is generated by the World Editor when saving a map and contains all generated translatable strings of the map (object data, GUI trigger strings).
You need different war3map.wts files to translate your map into multiple languages.
For example, to translate your map into German you need the file _Locales\deDE.w3mod\war3map.wts which is based on your English main war3map.wts file but contains German translations.
The World Editor will always update your war3map.wts file when saving the map which might change the file completely:
  • Comments from object data change all the time.
  • New entries are added.
  • Old entries are removed.
It can be annoying to manually update these three changes when using a diff tool to translate your map.

Description
wc3trans is a very simple tool which takes one main war3map.wts as source and automatically updates multiple target war3map.wts based on the one main file.
It will update all comments, remove entries which do not exist anymore and add new entries.
Afterwards you can use a diff tool such as Meld to translate all strings.
You will only see the translations as diffs which makes finding non-translated strings much easier.

Usage
Code:
java -Dfile.encoding=utf8 -jar wc3trans.jar war3map.wts _Locales\deDE.w3mod\war3map.wts _Locales\frFR.w3mod\war3map.wts _Locales\plPL.w3mod\war3map.wts

GitHub: GitHub - tdauth/wc3trans: Tool to maintain Warcraft III strings war3map.wts files.

Example
The map World of Warcraft Reforged uses a Batch script to update the files and open Meld afterwards for manual translation: wowr/diffstrings.bat at master · tdauth/wowr

Future Work
- Support FDF files with StringLists the same way as war3map.wts files. StringLists are more useful for JASS scripts.
Contents

wc3trans (Binary)

Top