On Fri, 8 Jul 2011, Jeff Haack wrote:

Hi, I'm trying to build a custom JOSM with Indonesian language added, since
it hasn't been added in yet, however I am running into problems.  The end
result is always that I can choose Indonesian in the language settings, but
all of the text remains in English.

What I've done is:

download JOSM from svn
get the indonesian po file from launchpad
run *118n.pl ./ po/** to get the .lang files
copy the lang files into core/data
add this line to the init function:          languages.put("id",
PluralMode.MODE_NOTONE);
and build with ant

The resulting josm.jar file allows me to switch to Indonesian but all the
text remains in English.  I thought this might be a problem with the
plurals, but even if I copy the Spanish po file and use it to create
id.lang, it still comes out as English.  I'm not really sure how to add the
MODE, the header of id.po reads "Plural-Forms: nplurals=1; plural=0;\n"

Any ideas why everything remains in English?

Sounds correct to me. I will have a look this evening (can you send me the patch and language files by mail?). Maybe that again is one of the cases where Java thinks differently about the language name than we do. Hebrew would be another case of this.

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


_______________________________________________
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to