Changeset 3174 in josm


Ignore:
Timestamp:
Apr 7, 2010 10:35:16 AM (3 years ago)
Author:
bastiK
Message:

fixed #4858 (ArrayIndexOutOfBoundsException in translation code)

File:
1 edited

Legend:

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

    r3161 r3174  
    102102            i = pluralEval(num); 
    103103            String[] trans = pstrings.get(ctx == null ? text : "_:"+ctx+"\n"+text); 
    104             if(trans != null && trans.length >= i) 
     104            if(trans != null && trans.length > i) 
    105105                return trans[i]; 
    106106        } 
Note: See TracChangeset for help on using the changeset viewer.