Ignore:
Timestamp:
2014-02-10T22:50:41+01:00 (11 years ago)
Author:
simon04
Message:

JOSM/undelete: improve i18n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/UndeleteAction.java

    r30273 r30275  
    184184                                    layer.data.addPrimitive(primitive);
    185185                                } else {
    186                                         final String msg = tr("Unable to undelete {0} {1}. Object has likely been redacted", type, id);
     186                                  final String msg = OsmPrimitiveType.NODE.equals(type)
     187                                      ? tr("Unable to undelete node {0}. Object has likely been redacted", id)
     188                                      : OsmPrimitiveType.WAY.equals(type)
     189                                      ? tr("Unable to undelete way {0}. Object has likely been redacted", id)
     190                                      : OsmPrimitiveType.RELATION.equals(type)
     191                                      ? tr("Unable to undelete relation {0}. Object has likely been redacted", id)
     192                                      : null;
    187193                                        GuiHelper.runInEDT(new Runnable() {
    188194                                                                                @Override
Note: See TracChangeset for help on using the changeset viewer.