Changeset 484 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2007-12-07T09:50:01+01:00 (17 years ago)
Author:
tabacha
Message:

put some strings e.g. status bar messages in tr() to translate it

Location:
trunk/src/org/openstreetmap/josm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r453 r484  
    281281       
    282282        @Override public String getModeHelpText() {
    283                 return "Click to delete. Shift: delete way segment. Alt: delete way+nodes. Ctrl: delete referring objects.";
     283                return tr("Click to delete. Shift: delete way segment. Alt: delete way+nodes. Ctrl: delete referring objects.");
    284284        }
    285285}
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r468 r484  
    365365       
    366366        @Override public String getModeHelpText() {
    367                 return "Click to add a new node. Ctrl: no node re-use/auto-insert. Shift: no auto-connect. Alt: new way";
     367                return tr("Click to add a new node. Ctrl: no node re-use/auto-insert. Shift: no auto-connect. Alt: new way");
    368368        }
    369369}
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r455 r484  
    292292        @Override public String getModeHelpText() {
    293293                if (mode == Mode.select) {
    294                         return "Release the mouse button to select the objects in the rectangle.";
     294                        return tr("Release the mouse button to select the objects in the rectangle.");
    295295                } else if (mode == Mode.move) {
    296                         return "Release the mouse button to stop moving. Ctrl to merge with nearest node.";
     296                        return tr("Release the mouse button to stop moving. Ctrl to merge with nearest node.");
    297297                } else if (mode == Mode.rotate) {
    298                         return "Release the mouse button to stop rotating.";
     298                        return tr("Release the mouse button to stop rotating.");
    299299                } else {
    300                         return "Move objects by dragging; Shift to add to selection; Shift-Ctrl to rotate selected; or change selection";
     300                        return tr("Move objects by dragging; Shift to add to selection; Shift-Ctrl to rotate selected; or change selection");
    301301                }
    302302        }
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ZoomAction.java

    r373 r484  
    7272       
    7373        @Override public String getModeHelpText() {
    74                 return "Zoom in by dragging.";
     74                return tr("Zoom in by dragging.");
    7575        }
    7676}
  • trunk/src/org/openstreetmap/josm/gui/GettingStarted.java

    r377 r484  
    5050                panel = new JPanel(new GridBagLayout());
    5151               
    52                 panel.add(new JLabel("<html><h2>You are running the latest \"modeless\" JOSM version.</h2>" +
     52                panel.add(new JLabel(tr("<html><h2>You are running the latest \"modeless\" JOSM version.</h2>" +
    5353                                "<h3>This version (almost) does away with the old edit modes, like \"add node and connect\"<br>" +
    5454                                "etc.; instead, there are only four modes: zoom, select, edit, and delete." +
     
    5959                "information about the changes on the OSM wiki, and there's a page on using relations<br>"+
    6060                "in the JOSM online help." +
    61                 "</h3>"), GBC.eol());
     61                "</h3>")), GBC.eol());
    6262               
    6363                // remove these two keys from preferences if present
     
    7070                        Main.pref.put("osm-server.version", null);
    7171                        Main.pref.put("osm-server.additional-versions", null);
    72                         panel.add(new JLabel("<html><h3>Your preferences have been changed by removing <b>osm-server.version</b> and/or <b>osm-server.additional-versions</b> which were still referring to 0.4.</h3></html>"), GBC.eol());
     72                        panel.add(new JLabel(tr("<html><h3>Your preferences have been changed by removing <b>osm-server.version</b> and/or <b>osm-server.additional-versions</b> which were still referring to 0.4.</h3></html>")), GBC.eol());
    7373                }
    7474               
    75                 addLine("wiki", "Read the [Wiki page on API 0.5]");
     75                addLine("wiki", tr("Read the [Wiki page on API 0.5]"));
    7676                addGettingStarted();
    7777                addGettingHelp();
Note: See TracChangeset for help on using the changeset viewer.