Ignore:
Timestamp:
2009-08-23T22:37:39+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3261: Use the "name:$CURRENT_LOCALE" name in the JOSM UI instead of "name" when it exists
new: new checkbox in LAF preferences for enabling/disabling localized names for primitives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTreeCellRenderer.java

    r1828 r1990  
    1111
    1212import org.openstreetmap.josm.data.osm.Relation;
    13 import org.openstreetmap.josm.gui.PrimitiveNameFormatter;
     13import org.openstreetmap.josm.gui.DefaultNameFormatter;
    1414import org.openstreetmap.josm.tools.ImageProvider;
    1515
     
    2020 */
    2121public class RelationTreeCellRenderer extends JLabel implements TreeCellRenderer {
    22     private static final PrimitiveNameFormatter NAME_FORMATTER = new PrimitiveNameFormatter();
    2322    public final static Color BGCOLOR_SELECTED = new Color(143,170,255);
    2423
     
    4746     */
    4847    protected void renderValue(Relation relation) {
    49         setText(NAME_FORMATTER.getName(relation));
     48        setText(relation.getDisplayName(DefaultNameFormatter.getInstance()));
    5049    }
    5150
Note: See TracChangeset for help on using the changeset viewer.