Changeset 2841 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2010-01-13T17:42:03+01:00 (14 years ago)
Author:
mjulius
Message:

treat all translatable strings the same in all tr*() implementations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r2807 r2841  
    3636
    3737    public static final String tr(String text) {
    38         return gettext(text, null);
     38        return MessageFormat.format(gettext(text, null), (Object)null);
    3939    }
    4040
    4141    public static final String trc(String ctx, String text) {
    42         return gettext(text, ctx);
     42        return MessageFormat.format(gettext(text, ctx), (Object)null);
    4343    }
    4444
     
    5757
    5858    public static final String trn(String text, String pluralText, long n) {
    59         return gettextn(text, pluralText, null, n);
     59        return MessageFormat.format(gettextn(text, pluralText, null, n), (Object)null);
    6060    }
    6161
     
    6565
    6666    public static final String trnc(String ctx, String text, String pluralText, long n) {
    67         return gettextn(text, pluralText, ctx, n);
     67        return MessageFormat.format(gettextn(text, pluralText, ctx, n), (Object)null);
    6868    }
    6969
Note: See TracChangeset for help on using the changeset viewer.