On Tue, 14 Jul 2020, Dirk Stöcker wrote:

 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.

I added a target singlepluginpot to extract pot file for a single plugin.

Ciao
--
http://www.dstoecker.eu/ (PGP key available)

Reply via email to