Re: [josm-dev] question about UI strings in plugins

2010-04-18 Thread Frederik Ramm
Hi, Rolf Bode-Meyer wrote: I'm about to extend an existing plugin. Function wise it's no big deal, but I seem not to understand how UI strings are handled. There are labels with which to call tr(), but where can I put it new strings to be addressable by new labels? Simply add whatever you

Re: [josm-dev] question about UI strings in plugins

2010-04-18 Thread Mike N.
I'm about to extend an existing plugin. Function wise it's no big deal, but I seem not to understand how UI strings are handled. There are labels with which to call tr(), but where can I put it new strings to be addressable by new labels? Just create new English strings in the tr() calls.

Re: [josm-dev] question about UI strings in plugins

2010-04-18 Thread Sebastian Klein
Frederik Ramm wrote: Simply add whatever you want in a tr() call. That serves as a hook for the i18n engine but of it remains untranslated then it will just display as-is. Make sure to use proper number formatting and the singular/plural stuff (trn()). There is some kind of script that

Re: [josm-dev] question about UI strings in plugins

2010-04-18 Thread Karl Guggisberg
I think it has changed, right? Yes. The rules are much simpler now: * Always escape single quotes with '', regardless of whether you use tr(), trn(), or trc(). #4160 http://josm.openstreetmap.de/ticket/4160 still claims that double quotes won't work in the french translation but the

Re: [josm-dev] question about UI strings in plugins

2010-04-18 Thread Rolf Bode-Meyer
2010/4/18 Mike N. nice...@att.net: I'm about to extend an existing plugin. Function wise it's no big deal, but I seem not to understand how UI strings are handled. There are labels with which to call tr(), but where can I put it new strings to be addressable by new labels?  Just create new