Changeset 4549 in josm


Ignore:
Timestamp:
2011-10-29T14:36:48+02:00 (12 years ago)
Author:
stoecker
Message:

add 0xFE for multiple translated strings

File:
1 edited

Legend:

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

    r4501 r4549  
    505505           {
    506506             unsigned char (1 byte) stringcount
     507               - count 0 indicates missing translations
     508               - count 0xFE indicates translations equal to original, but otherwise is equal to length 0
    507509             for stringcount
    508510               unsigned short (2 byte) stringlength
     
    524526                    int ennum = ens.read();
    525527                    int trnum = trs.read();
     528                    if(trnum == 0xFE) /* marks identical string, handle equally to non-translated */
     529                        trnum = 0;
    526530                    if((ennum == -1 && trnum != -1) || (ennum != -1 && trnum == -1)) /* files do not match */
    527531                        return false;
Note: See TracChangeset for help on using the changeset viewer.