Re: i18n - mapcss external rules

2018-02-26 Thread Dirk Stöcker

On Mon, 26 Feb 2018, Noémie Lehuby wrote:

I've written some mapcss external validators for JOSM. They are hosted in 
Github and listed in the dedicated wiki page.


They are in French, and I would like to make them available in the language 
of the user.


I've set the baselanguage property in the metadata and also tried to add the 
tr() function. But I can't find my rules in Launchpad.


Is there something I'm missing ?


Yes.

a) External validators will not automatically be translated in JOSM. You 
need to setup your own translation infrastructure.
b) You need to convert the translated data to ".lang" files (scripts for 
this are in i18n directory of OSM-JOSM-SVN) and attach these in a 
directory "data" inside the zip file download
c) JOSM base language is English. You'd need to change the files 
accordingly. The base language setting in the header essentially is to 
exclude non-English stuff from translation.

c) see below.


Is it actually possible to translate mapcss external validators ?


Yes and no:
https://josm.openstreetmap.de/ticket/11392

The "Development tasks JOSM" is missing, but could be done easily when 
someone starts using this :-) It was not done because there is no data 
requiring it yet...


If you have done the above steps and have a zip file with translation data 
included give me a call (best via the ticket) and I'll implement the 
missing core file loader.


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


i18n - mapcss external rules

2018-02-26 Thread Noémie Lehuby

Hi,

I've written some mapcss external validators for JOSM. They are hosted 
in Github and listed in the dedicated wiki page.


They are in French, and I would like to make them available in the 
language of the user.


I've set the baselanguage property in the metadata and also tried to add 
the tr() function. But I can't find my rules in Launchpad.


Is there something I'm missing ?
Is it actually possible to translate mapcss external validators ?

--
nlehuby