Re: Plugin translation

2020-07-14 Thread Dirk Stöcker

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)


extra button with 4 states in the Tags button panel

2020-07-14 Thread Jo
Hi,

I would like to add an extra button under the 3 buttons +,
Zoekresultaten
Webresultate 🗑
+++
 This button would have 4 states.
- Invisible or absent if it's not a public transport route relation
- Red rounded square if it's a PT route relation with no
public_transport:version set
- Yellow rounded square with 1 inside it
- Gray rounded square with 2 inside it.

Is it possible to change the svg, of a button like that? And can a plugin
add a button to that panel?

Of course, once the button is present, I also want it to do something. I'm
working on that. But now it's in a long sequence of actions that happen
when the mapper tries to sort the stops in a route relation, that is not pt
v2.

Another button on my wishlist is one that would flip from/to and changes
the name tag accordingly.

Jo
Zoekresultaten