Ignore:
Timestamp:
2009-08-23T19:34:25+02:00 (10 years ago)
Author:
Gubaer
Message:

fixed #3281: OsmPrimitiveType fails for fusional and/or agglutinative languages

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java

    r1987 r1989  
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
     5import static org.openstreetmap.josm.tools.I18n.marktr;
    56
    67import java.awt.BorderLayout;
     
    3435     */
    3536    protected void renderTitle(History h) {
    36         String title = tr(
    37                 "History for {0} {1}",
    38                 h.getEarliest().getType().getLocalizedDisplayNameSingular(),
     37        String title = "";
     38        switch(h.getEarliest().getType()) {
     39        case NODE:  title = marktr("History for node {0}"); break;
     40        case WAY: title = marktr("History for way {0}"); break;
     41        case RELATION:  title = marktr("History for relation {0}"); break;
     42        }
     43        setTitle(tr(
     44                title,
    3945                Long.toString(h.getId())
    40         );
    41         setTitle(title);
     46        ));
    4247    }
    4348
  • trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java

    r1709 r1989  
    33
    44import java.awt.Color;
     5import static org.openstreetmap.josm.tools.I18n.tr;
    56import java.awt.Component;
    67import java.util.HashMap;
     
    7374            bgColor = BGCOLOR_EMPTY_ROW;
    7475        } else {
    75             text = member.getPrimitiveType().getLocalizedDisplayNameSingular() + " " + member.getPrimitiveId();
     76            text = "";
     77            switch(member.getPrimitiveType()) {
     78            case NODE: text = tr("Node {0}", member.getPrimitiveId()); break;
     79            case WAY: text = tr("Way {0}", member.getPrimitiveId()); break;
     80            case RELATION: text = tr("Relation {0}", member.getPrimitiveId()); break;
     81            }
    7682            if (model.isSameInOppositeWay(row)) {
    7783                bgColor = Color.WHITE;
Note: See TracChangeset for help on using the changeset viewer.