Changeset 3037 in josm for trunk/src


Ignore:
Timestamp:
2010-02-23T20:23:09+01:00 (15 years ago)
Author:
mjulius
Message:

fixes #4598 - Not localised strings in Russian version

in I18n.gettext() look in pstrings if the string has not been found in strings

File:
1 edited

Legend:

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

    r2841 r3037  
    8181            if(trans != null)
    8282                return trans;
     83        }
     84        if(pstrings != null) {
     85            String[] trans = pstrings.get(ctx == null ? text : "_:"+ctx+"\n"+text);
     86            if(trans != null)
     87                return trans[0];
    8388        }
    8489        return text;
Note: See TracChangeset for help on using the changeset viewer.