[josm-dev] [PATCH] plugin description I18N

Dirk Stöcker openstreetmap at dstoecker.de
Thu Jan 22 09:46:44 GMT 2009


On Wed, 21 Jan 2009, Detlef Reichl wrote:

> I made a patch to support I18N for plugin descriptions. This would be a
> first step for bug #762.
>
> At this point the translation is supported, if the description is read
> from the jar file. The translated descriptions will go to the plugins
> build.xml file like the original description. As an example I have
> attached a patch to the build.xml for the slippy_map_chooser plugin. For
> the different languages the language code plus an underscore is set in
> front of the Plugin-Description attribute. So for German it will be
> de_Plugin-Description. A full language code like de_ch for Swiss German
> is also supported.

A note: "de_" should be "de:" to be equal to other places we use that.

The Plugin-code will change a lot in the next days, so your patch comes at 
a bad time. :-)

> What is missing for now is I18N support, if the descriptions are loaded
> down from the web. For this I think it would be the best, that JOSM will
> request http://josm.openstreetmap.de/wiki/Plugins/de or
> http://josm.openstreetmap.de/wiki/DE:Plugins and if the Wiki has no such
> page it will return the default
> http://josm.openstreetmap.de/wiki/Plugins page. I don't know it
> something like this is possible with trac.

First we need to separate the description information from the rest of the 
texts (especially the version numbers) somehow. When we have individual 
tables, we also can translate the stuff.

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




More information about the josm-dev mailing list