Changeset 280 in josm for src/org/openstreetmap


Ignore:
Timestamp:
2007-07-06T09:57:37+02:00 (17 years ago)
Author:
imi
Message:
  • removed unused po/ subdirectory (look in osm.org's subversion for the keys.pot)
  • fixed some strings for better translation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/actions/SplitWayAction.java

    r203 r280  
    22
    33import static org.openstreetmap.josm.tools.I18n.tr;
     4import static org.openstreetmap.josm.tools.I18n.trn;
    45
    56import java.awt.event.ActionEvent;
     
    3031import org.openstreetmap.josm.data.osm.visitor.NameVisitor;
    3132import org.openstreetmap.josm.data.osm.visitor.Visitor;
     33import org.openstreetmap.josm.tools.I18n;
    3234
    3335/**
     
    155157                        }
    156158                        if (wayOccurenceCounter.isEmpty()) {
    157                                 JOptionPane.showMessageDialog(Main.parent, tr("The selected node(s) is (are) not part of any way."));
     159                                JOptionPane.showMessageDialog(Main.parent,
     160                                                trn("The selected node is not part of any way.",
     161                                                                "The selected nodes are not part of any way.", selectedNodes.size()));
    158162                                return;
    159163                        }
     
    183187                        }
    184188                        if (!nds.isEmpty()) {
    185                                 JOptionPane.showMessageDialog(Main.parent, tr("The selected way does not contain (all) the selected node(s)."));
     189                                JOptionPane.showMessageDialog(Main.parent,
     190                                                trn("The selected way does not contain the selected node.",
     191                                                                "The selected way does not contain all the selected nodes.", selectedNodes.size()));
    186192                                return;
    187193                        }
     
    201207                        }
    202208                        if (wayOccurenceCounter.isEmpty()) {
    203                                 JOptionPane.showMessageDialog(Main.parent, tr("The selected segment(s) is (are) not part of any way."));
     209                                JOptionPane.showMessageDialog(Main.parent,
     210                                                trn("The selected segment is not part of any way.",
     211                                                                "The selected segments are not part of any way.", selectedSegments.size()));
    204212                                return;
    205213                        }
     
    208216                                if (entry.getValue().equals(selectedSegments.size())) {
    209217                                        if (selectedWay != null) {
    210                                                 JOptionPane.showMessageDialog(Main.parent, tr("There is more than one way using the segment(s) you selected. Please select the way also."));
     218                                                JOptionPane.showMessageDialog(Main.parent,
     219                                                                trn("There is more than one way using the segment you selected. Please select the way also.",
     220                                                                                "There is more than one way using the segments you selected. Please select the way also.", selectedSegments.size()));
    211221                                                return;
    212222                                        }
     
    224234
    225235                        if (!selectedWay.segments.containsAll(selectedSegments)) {
    226                                 JOptionPane.showMessageDialog(Main.parent, tr("The selected way does not contain (all) the selected segment(s)."));
     236                                JOptionPane.showMessageDialog(Main.parent,
     237                                                trn("The selected way does not contain the selected segment.",
     238                                                                "The selected way does not contain all the selected segments.", selectedSegments.size()));
    227239                                return;
    228240                        }
Note: See TracChangeset for help on using the changeset viewer.