Changeset 1579 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-05-06T18:24:15+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/TaggingPresetPreference.java
r1415 r1579 150 150 { 151 151 JMenuItem mi = new JMenuItem(p); 152 mi.setText( tr(p.name));152 mi.setText(p.getLocaleName()); 153 153 m.add(mi); 154 154 } -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r1495 r1579 63 63 public TaggingPresetMenu group = null; 64 64 public String name; 65 public String locale_name; 65 66 66 67 public static abstract class Item { … … 441 442 putValue("toolbar", "tagging_" + getRawName()); 442 443 putValue(SHORT_DESCRIPTION, (group != null ? 443 tr("Use preset ''{0}'' of group ''{1}''", tr(name), group.getName()) : 444 tr("Use preset ''{0}''", tr(name)))); 444 tr("Use preset ''{0}'' of group ''{1}''", getLocaleName(), group.getName()) : 445 tr("Use preset ''{0}''", getLocaleName()))); 446 } 447 448 public String getLocaleName() { 449 if(locale_name == null) 450 locale_name = tr(name); 451 return locale_name; 445 452 } 446 453 447 454 public String getName() { 448 return group != null ? group.getName() + "/" + tr(name) : tr(name);455 return group != null ? group.getName() + "/" + getLocaleName() : getLocaleName(); 449 456 } 450 457 public String getRawName() {
Note:
See TracChangeset
for help on using the changeset viewer.