[josm-dev] question about UI strings in plugins

Frederik Ramm frederik at remote.org
Sun Apr 18 12:17:20 BST 2010


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 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()).

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"




More information about the josm-dev mailing list