[josm-dev] Resource bundle not found exception

Marcin Floryan mfloryan at mm.waw.pl
Thu Oct 30 11:56:17 GMT 2008


Hi!

Stefan Baebler wrote:

> Is it searching for "sl-SI" (or "de-DE"), but we only have translation
> for "sl" (or "de"). In this case we also need a fallback mechanism to
> look for "sl" if "sl-SI" isn't found.

Fortunately the library we use for translations will do exactly that
automatically so you should be able to specify de-DE and the "de"
translation will be used if "de-DE" is not found.

> I'm not sure whether i have josm-translations.jar (or whatever it is
> called), as it is not listed amongst plugins or as a seperate download.
> Possibly listing available translations could help.

The way it is solved now you should not need worry about this file at
all as it is included in the lib/ directory of the JOSM core and during
build included into the josm-latest.jar itself. However, I think that
josm-latest.jar is created by an automated build that might not use ant
and thus might not have this file just yet (but then I am sure the
automated build will be fixed with regards to that).

Alternatively you could try downloading the jar from:
http://svn.openstreetmap.org/applications/editors/josm/dist/josm-translation.jar
and add it to the libraries but as I said you should not need to do that.

> Also how can "--language=sl" parameter be set in the java commandline?

C:\WINDOWS\system32\java.exe -jar -Xmx512M
-Djava.library.path=C:\incoming\gis\OpenStreetMap\josm\rxtx
C:\incoming\gis\OpenStreetMap\josm\josm-latest.jar --language=sl

So you just need to add it at the end after the josm-latest.jar however
setting the default locale via -Duser.langauge has an identical effect.

> As you see u used -Duser.language and -Duser.country to override system
> locale.

And this is a perfectly valid way to do it. Soon, there will be one more
way to do this - via preferences but I need to find the optimum way of
listing the available translations.


Regards,
Marcin Floryan




More information about the josm-dev mailing list