[josm-dev] Translation of Plugins

Dirk Stöcker openstreetmap at dstoecker.de
Fri Sep 5 09:42:28 UTC 2014


On Fri, 5 Sep 2014, Paul Wölfel wrote:

> I'm working on the plugin Areaselector and want to translate it to german. I tried to find out how exactly the translation works, but I was not really able to do so.
>
> The documentation I found:
> https://josm.openstreetmap.de/wiki/Translations#Softwaretranslation
> http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins#Translatingaplugin
>
> Vincent was so nice and generated the lang files for the project (https://github.com/JOSM/JOSM-areaselector), but I'd like to update the german language files.
>
> How are the steps to generate the language files and edit them?
> 1. generate base language files?
> 	I found in the build.xml the ant command "plugintrans", which extracts the message strings from the source. Is this the right way to do so?
>
> 2. edit .lang files?
> 	What format are the .lang files and how can I modify those?

Read the readme in the i18n directory of the JOSM part of OSM repository 
(i.e. where the plugins are). You need the included perl script to 
generate lang files.

> A step by step guide would be great in the wiki.

Actually we prefer the usage of our SVN infrastructure. That's why we 
don't document it more than necessary.

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


More information about the josm-dev mailing list