Ignore:
Timestamp:
2006-07-03T00:31:24+02:00 (19 years ago)
Author:
imi
Message:
  • started i18n
  • started "download incomplete ways" action
  • added straight line selection mode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r103 r104  
    11package org.openstreetmap.josm.gui.layer;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
     4import static org.openstreetmap.josm.tools.I18n.trn;
    25
    36import java.awt.Component;
     
    148151
    149152        @Override public String getToolTipText() {
    150                 return undeletedSize(data.nodes)+" nodes, "+
    151                 undeletedSize(data.segments)+" segments, "+
    152                 undeletedSize(data.ways)+" streets.";
     153                return trn("{0} node", "{0} nodes", undeletedSize(data.nodes), undeletedSize(data.nodes))
     154                +trn("{0} segment", "{0} segments", undeletedSize(data.segments), undeletedSize(data.segments))
     155                +trn("{0} way", "{0} ways", undeletedSize(data.ways), undeletedSize(data.ways));
    153156        }
    154157
     
    162165                final ConflictDialog dlg = Main.map.conflictDialog;
    163166                dlg.add(visitor.conflicts);
    164                 JOptionPane.showMessageDialog(Main.parent, "There were conflicts during import.");
     167                JOptionPane.showMessageDialog(Main.parent,tr("There were conflicts during import."));
    165168                if (!dlg.isVisible())
    166169                        dlg.action.actionPerformed(new ActionEvent(this, 0, ""));
     
    301304                        osm.visit(counter);
    302305                final JPanel p = new JPanel(new GridBagLayout());
    303                 p.add(new JLabel(name+" consists of:"), GBC.eol());
     306                p.add(new JLabel(tr("{0} consists of:", name)), GBC.eol());
    304307                for (int i = 0; i < counter.normal.length; ++i) {
    305                         String s = counter.normal[i]+" "+counter.names[i]+(counter.normal[i] != 1 ?"s":"");
     308                        String s = counter.normal[i]+" "+trn(counter.names[i],counter.names[i]+"s",counter.normal[i]);
    306309                        if (counter.deleted[i] > 0)
    307                                 s += " ("+counter.deleted[i]+" deleted)";
     310                                s += tr(" ({0} deleted.)",counter.deleted[i]);
    308311                        p.add(new JLabel(s, ImageProvider.get("data", counter.names[i]), JLabel.HORIZONTAL), GBC.eop().insets(15,0,0,0));
    309312                }
Note: See TracChangeset for help on using the changeset viewer.