Plugin translation
Dirk Stöcker
openstreetmap at dstoecker.de
Tue Jul 14 06:48:34 UTC 2020
Hello,
> Could someone give me 101 on how in the world I'll be able to create
> working .pot files (which then could go into the GitHub repo and into
> Transifex from there if I so need in the future) and .lang files from there?
The i18n directory isn't meant for single plugin translation. It joins all
the files into one large translation file (or 3 files).
Your easiest choice probably is to call gettext commandline tool manually:
find ../plugins/plugname -iname "*.java" |xargs xgettext -k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3 -o plugname.pot
Or you need to create an ant target for a single plugin extraction.
Ciao
--
http://www.dstoecker.eu/ (PGP key available)
More information about the josm-dev
mailing list