Ignore:
Timestamp:
2009-09-20T22:17:04+02:00 (10 years ago)
Author:
stoecker
Message:

added context handling for translated strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r2017 r2174  
    5353        switch(d) {
    5454        case DECIMAL_DEGREES: return cDdFormatter.format(y);
    55         case DEGREES_MINUTES_SECONDS: return dms(y) + ((y < 0) ? tr("S") : tr("N"));
     55        case DEGREES_MINUTES_SECONDS: return dms(y) + ((y < 0) ?
     56            /* short symbol for South */ tr("S") :
     57            /* short symbol for North */ tr("N"));
    5658        default: return "ERR";
    5759        }
     
    6567        switch(d) {
    6668        case DECIMAL_DEGREES: return cDdFormatter.format(x);
    67         case DEGREES_MINUTES_SECONDS: return dms(x) + ((x < 0) ? tr("W") : tr("E"));
     69        case DEGREES_MINUTES_SECONDS: return dms(x) + ((x < 0) ?
     70            /* short symbol for West */ tr("W") :
     71            /* short symbol for East */ tr("E"));
    6872        default: return "ERR";
    6973        }
Note: See TracChangeset for help on using the changeset viewer.