[WIP] Fixes in translation generation (itstool)
Created by: nelson6e65
This will fix issues on including unnecessary strings to be translated, like in monsters/*.xml
(#299)
-
1️⃣ Ignore strings that should not be translated from XML files (_monsters_), by adding ITS rules. Only "name" attribute/element are collected for translation.
Rules for Monsters are inmonsters/_monsters.its
file, and can be used by running:
$ itstool monsters/monster*.xml -o "monsters.pot" -i "monsters/_monsters.its"
-
:two::question: Insert ITS rules directly in *.xml files to do not use -i
command line option. Then, translatable strings can be collected just by runnig:
$ itstool monsters/monster*.xml -o "monsters.pot"
Feedbacks
-
Is it really needed
2️⃣ or1️⃣ is enough? (Check https://github.com/nelson6e65/tmwa-client-data/commit/f3869925730d1c868d53987d5c423d03b59c10a0).
I think2️⃣ is unnecessary, and with only1️⃣ the*.xml
s kept simple and untouched. But I don't know how @4144 collect the strings exactly.
Edited by Administrator