[josm-dev] [PATCH] plugin description I18N

Detlef Reichl detlef.reichl at gmx.org
Wed Jan 21 18:45:14 GMT 2009


Hi,

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.

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.

Cheers, detlef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.xml.patch
Type: text/x-patch
Size: 1529 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20090121/cc172aba/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin-i18n.patch
Type: text/x-patch
Size: 2052 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20090121/cc172aba/attachment-0001.bin>


More information about the josm-dev mailing list