Changeset 3037 in josm


Ignore:
Timestamp:
Feb 23, 2010 8:23:09 PM (3 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.