Ignore:
Timestamp:
2014-01-31T21:48:49+01:00 (10 years ago)
Author:
stoecker
Message:

see #9611 - proper plural selection also for single strings

File:
1 edited

Legend:

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

    r6552 r6796  
    273273        }
    274274        if(pstrings != null) {
     275            i = pluralEval(1);
    275276            String[] trans = pstrings.get(ctx == null ? text : "_:"+ctx+"\n"+text);
    276             if(trans != null)
    277                 return trans[0];
     277            if(trans != null && trans.length > i)
     278                return trans[i];
    278279        }
    279280        return lazy ? gettext(text, null) : text;
Note: See TracChangeset for help on using the changeset viewer.