Ticket #6777: 6777.v2.patch

File 6777.v2.patch, 1.3 KB (added by simon04, 21 months ago)
  • src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    diff --git a/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java b/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
    index 1a9ff34..372bdfa 100644
    a b public class SelectionListDialog extends ToggleDialog { 
    462462                case RELATION: numRelations++; break; 
    463463                } 
    464464            } 
    465             return tr("Sel.: Rel.:{0} / Ways:{1} / Nodes:{2}", numRelations, numWays, numNodes); 
     465 
     466            String s = tr("Selection: "); 
     467            boolean needSeparator = false; 
     468            if (numRelations > 0) { 
     469                s += trn("{0} relation", "{0} relations", numRelations, numRelations); 
     470                needSeparator = true; 
     471            } 
     472            if (numWays > 0) { 
     473                if (needSeparator) { 
     474                    s += tr(" / "); 
     475                } 
     476                s += trn("{0} way", "{0} ways", numWays, numWays); 
     477                needSeparator = true; 
     478            } 
     479            if (numNodes > 0) { 
     480                if (needSeparator) { 
     481                    s += tr(" / "); 
     482                } 
     483                s += trn("{0} node", "{0} nodes", numNodes, numNodes); 
     484            } 
     485            return s; 
    466486        } 
    467487 
    468488        /**