[josm-dev] Make josm use .mo files

David Paleino dapal at debian.org
Mon Dec 26 18:15:23 GMT 2011


Hello people,
it would be nice if JOSM used .mo files (installed
as /usr/share/locale/<code>/LC_MESSAGES/josm.mo), instead of jar-embedded .lang
files. Please read further.

I can only see advantages with that method (and one "disadvantage", which
really seems to be a missing feature of Java). The pros are that external tools
can handle those files (I think at "localepurge" in Debian, which removes
locales you're not going to use -- thus saving space), and the fact that .mo
files can be packaged separately from "main josm" (so that if you want an
English-only interface, you don't need the locales installed).

The only "con" is that, AFAIK, there is no "easy" method of using them within
Java. Or, probably, I haven't been able to find it. What I've found is:

http://java2s.com/Open-Source/Java-Document-2/Swing/gtkjfilechooser/com/google/code/gtkjfilechooser/GettextResource.java.htm

It doesn't seem too difficult, but it's not straightforward either.

What do you think about this?

Thanks,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20111226/f42a903a/attachment.pgp>


More information about the josm-dev mailing list