Changeset 6968 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2014-04-10T20:59:12+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r6830 r6968 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.imagery; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.Image; … … 145 147 } 146 148 149 /** name of the imagery entry (gets translated by josm usually) */ 147 150 private String name; 151 /** original name of the imagery entry in case of translation call */ 152 private String origName; 148 153 private String url = null; 149 154 private boolean defaultEntry = false; … … 562 567 563 568 /** 569 * Returns the entry name. 570 * @return The entry name 571 * @since 6968 572 */ 573 public String getOriginalName() { 574 return this.origName != null ? this.origName : this.name; 575 } 576 577 /** 564 578 * Sets the entry name. 565 579 * @param name The entry name … … 567 581 public void setName(String name) { 568 582 this.name = name; 583 } 584 585 /** 586 * Sets the entry name and translates it. 587 * @param name The entry name 588 * @since 6968 589 */ 590 public void setTranslatedName(String name) { 591 this.name = tr(name); 592 this.origName = name; 569 593 } 570 594 -
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r6690 r6968 202 202 case ENTRY_ATTRIBUTE: 203 203 if (qName.equals("name")) { 204 entry.set Name(tr(accumulator.toString()));204 entry.setTranslatedName(accumulator.toString()); 205 205 } else if (qName.equals("type")) { 206 206 boolean found = false;
Note:
See TracChangeset
for help on using the changeset viewer.