You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-05-11 20:45:30

Lại Tuấn Mạnh
Member
Registered: 2015-05-11
Posts: 1

Add new translation file to JOSM

Hi every one,
i'm doing a josm translation version for my language but i get some issue while adding the translation file to josm.
After translated line by line the .po file and built it to .lang file, i copied it to josm data folder and edited i18n.java file. i ran the program then select my language in preferences menu then restarted the program. but when it reloaded, nothing happen, the GUI was still using English. Then i tried to debug and get the "Unable to find translation file for..." message. Debug deeper i figure that when josm load the language file, it fetch no matching string(like below img). any idea?
TQ92c3V.png?1

p/s sorry about my English.

Offline

#2 2015-05-12 15:51:00

bastik
Member
Registered: 2011-08-05
Posts: 58

Re: Add new translation file to JOSM

Lại Tuấn Mạnh wrote:

Hi every one,
i'm doing a josm translation version for my language but i get some issue while adding the translation file to josm.
After translated line by line the .po file and built it to .lang file, i copied it to josm data folder and edited i18n.java file.

Any reason why you do not upload that .po file to launchpad? If you have reached more than 2000 translated strings, the language will be included in the normal distribution (see https://josm.openstreetmap.de/wiki/Translations).

Lại Tuấn Mạnh wrote:

i ran the program then select my language in preferences menu then restarted the program. but when it reloaded, nothing happen, the GUI was still using English.

It is hard to help with that little information. Minimum would be a patch of what you changed in the source code + your .po and .lang file.

Lại Tuấn Mạnh wrote:

Then i tried to debug and get the "Unable to find translation file for..." message.

This string does not exist in JOSM source code. Please copy & paste messages verbatim, not roughly as you remember it.

Offline

#3 2015-05-13 22:30:30

stoecker
Member
Registered: 2011-08-03
Posts: 14

Re: Add new translation file to JOSM

You need to always update BOTH en.lang and your own (and the other) languages! These files are always paired. (See here: http://josm.openstreetmap.de/wiki/Trans … ranslation)

P.S. I've seen your update in Launchpad. If you already have a patch (i18n dir and JOSM I assume) please open a ticket in bug tracker and attach it, so I don't need to think myself :-)

And congratulations, you're only the third one going from nearly 0% to nearly 100%.

P.S. Can you please add your language in http://josm.openstreetmap.de/wiki/TracLanguages and if you want start with translation of the start page at http://josm.openstreetmap.de/wiki/StartupPageSource.

Offline

Board footer

Powered by FluxBB