Changeset 3389 in josm for trunk/src/org
- Timestamp:
- 2010-07-28T11:25:58+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
r3291 r3389 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.tools.I18n.trc; 5 6 import static org.openstreetmap.josm.tools.I18n.trn; 6 7 … … 169 170 name = tr("incomplete"); 170 171 } else { 171 name = tr (relation.get("type"));172 name = trc("Relation type", relation.get("type")); 172 173 if (name == null) { 173 174 name = (relation.get("public_transport") != null) ? tr("public transport") : ""; -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r3388 r3389 370 370 lhm.put(value_array[i], (locale_display_values == null) 371 371 ? (values_context == null ? tr(display_array[i]) 372 : tr (values_context, display_array[i])) : display_array[i]);372 : trc(values_context, display_array[i])) : display_array[i]); 373 373 } 374 374 if(!usage.unused()){ -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r3353 r3389 126 126 127 127 public static final String trc(String ctx, String text) { 128 if (ctx == null) 129 return tr(text); 130 if (text == null) 131 return null; 128 132 return MessageFormat.format(gettext(text, ctx), (Object)null); 129 133 }
Note:
See TracChangeset
for help on using the changeset viewer.