Changeset 4043 in josm


Ignore:
Timestamp:
2011-04-20T15:14:02+02:00 (14 years ago)
Author:
stoecker
Message:

fix #6153 - spelling fixes

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java

    r3784 r4043  
    6666                    return ((List<Node>) o).get(0).getCoor().getRoundedToOsmPrecision();
    6767                return RoundCoord(((List<Node>) o).get(0));
    68             } else {
     68            } else
    6969                throw new AssertionError();
    70             }
    7170        }
    7271
     
    107106     */
    108107    public DuplicateNode() {
    109         super(tr("Duplicated nodes")+".",
     108        super(tr("Duplicated nodes."),
    110109                tr("This test checks that there are no nodes at the very same location."));
    111110    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateWay.java

    r3674 r4043  
    6565     */
    6666    public DuplicateWay() {
    67         super(tr("Duplicated ways")+".",
    68               tr("This test checks that there are no ways with same tags and same node coordinates."));
     67        super(tr("Duplicated ways."),
     68                tr("This test checks that there are no ways with same tags and same node coordinates."));
    6969    }
    7070
     
    9595        List<LatLon> wLat = new ArrayList<LatLon>(wNodes.size());
    9696        for (int i=0;i<wNodes.size();i++) {
    97              wLat.add(wNodes.get(i).getCoor());
     97            wLat.add(wNodes.get(i).getCoor());
    9898        }
    9999        Map<String, String> wkeys = w.getKeys();
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java

    r3674 r4043  
    3939     */
    4040    public SimilarNamedWays() {
    41         super(tr("Similarly named ways")+".",
    42               tr("This test checks for ways with similar names that may have been misspelled."));
     41        super(tr("Similarly named ways."),
     42                tr("This test checks for ways with similar names that may have been misspelled."));
    4343    }
    4444
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedNode.java

    r3950 r4043  
    3737     */
    3838    public UntaggedNode() {
    39         super(tr("Untagged and unconnected nodes")+".",
     39        super(tr("Untagged and unconnected nodes."),
    4040                tr("This test checks for untagged nodes that are not part of any way."));
    4141    }
     
    6969                    String msg = marktr("Has tag containing ''fixme'' or ''FIXME''");
    7070                    errors.add(new TestError(this, Severity.WARNING, tr("Unconnected nodes without physical tags"),
    71                                 tr(msg), msg, UNTAGGED_NODE_FIXME, n));
     71                            tr(msg), msg, UNTAGGED_NODE_FIXME, n));
    7272                    return;
    7373                }
     
    9494                if (msg != null) {
    9595                    errors.add(new TestError(this, Severity.WARNING, tr("Unconnected nodes without physical tags"),
    96                                 tr(msg), msg, code, n));
     96                            tr(msg), msg, code, n));
    9797                    return;
    9898                }
     
    100100            // Does not happen, but just to be sure. Maybe definition of uninteresting tags changes in future.
    101101            errors.add(new TestError(this, Severity.WARNING, tr("Unconnected nodes without physical tags"),
    102                         tr("Other"), "Other", UNTAGGED_NODE_OTHER, n));
     102                    tr("Other"), "Other", UNTAGGED_NODE_OTHER, n));
    103103        }
    104104    }
     
    118118            int code = testError.getCode();
    119119            switch (code) {
    120                 case UNTAGGED_NODE_BLANK:
    121                 case UNTAGGED_NODE_CREATED_BY:
    122                 case UNTAGGED_NODE_WATCH:
    123                 case UNTAGGED_NODE_SOURCE:
    124                     return true;
     120            case UNTAGGED_NODE_BLANK:
     121            case UNTAGGED_NODE_CREATED_BY:
     122            case UNTAGGED_NODE_WATCH:
     123            case UNTAGGED_NODE_SOURCE:
     124                return true;
    125125            }
    126126        }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java

    r3935 r4043  
    6161
    6262    public InspectPrimitiveDialog(Collection<OsmPrimitive> primitives) {
    63         super(Main.parent, tr("Advanced object info"), new String[] {"Close"});
     63        super(Main.parent, tr("Advanced object info"), new String[] {tr("Close")});
    6464        this.primitives = primitives;
    6565        setPreferredSize(new Dimension(750, 550));
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheTableColumnModel.java

    r3083 r4043  
    1919        // column 0 - Id
    2020        col = new TableColumn(0);
    21         col.setHeaderValue("ID");
     21        col.setHeaderValue(tr("ID"));
    2222        col.setResizable(true);
    2323        col.setWidth(20);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java

    r3530 r4043  
    665665            gc.gridx = 2;
    666666            gc.weightx = 0.0;
    667             pnl.add(new JLabel("Time: "),gc);
     667            pnl.add(new JLabel(tr("Time:")),gc);
    668668
    669669            gc.gridx = 3;
     
    698698            gc.gridx = 3;
    699699            gc.weightx = 0.0;
    700             pnl.add(new JLabel("Time:"),gc);
     700            pnl.add(new JLabel(tr("Time:")),gc);
    701701
    702702            gc.gridx = 4;
     
    729729            gc.gridx = 3;
    730730            gc.weightx = 0.0;
    731             pnl.add(new JLabel("Time:"),gc);
     731            pnl.add(new JLabel(tr("Time:")),gc);
    732732
    733733            gc.gridx = 4;
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r4021 r4043  
    641641            .add(
    642642                    new JLabel(
    643                             tr("<html>Upload of unprocessed GPS data as map data is considered harmful.<br>If you want to upload traces, look here:")),
     643                            tr("<html>Upload of unprocessed GPS data as map data is considered harmful.<br>If you want to upload traces, look here:</html>")),
    644644                            GBC.eol());
    645645            msg.add(new UrlLabel(tr("http://www.openstreetmap.org/traces")), GBC.eop());
  • trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java

    r3826 r4043  
    232232                + "This is likely to lead to invalid WMS request. You should check your<br>"
    233233                + "preference settings.<br>"
    234                 + "Do you want to fetch WMS tiles anyway?",
     234                + "Do you want to fetch WMS tiles anyway?</html>",
    235235                url);
    236236        String [] options = new String[] {
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r4028 r4043  
    2727import java.util.List;
    2828import java.util.Map;
     29import java.util.Map.Entry;
    2930import java.util.Set;
    30 import java.util.Map.Entry;
    3131import java.util.TreeSet;
    3232import java.util.concurrent.ExecutionException;
     
    5050import org.openstreetmap.josm.data.Version;
    5151import org.openstreetmap.josm.gui.HelpAwareOptionPane;
     52import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
    5253import org.openstreetmap.josm.gui.JMultilineLabel;
    5354import org.openstreetmap.josm.gui.MapFrame;
    54 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
    5555import org.openstreetmap.josm.gui.download.DownloadSelection;
    5656import org.openstreetmap.josm.gui.help.HelpUtil;
     
    477477            if (e.getCause() instanceof ClassNotFoundException) {
    478478                msg = tr("<html>Could not load plugin {0} because the plugin<br>main class ''{1}'' was not found.<br>"
    479                         + "Delete from preferences?", plugin.name, plugin.className);
     479                        + "Delete from preferences?</html>", plugin.name, plugin.className);
    480480            }
    481481        }  catch (Throwable e) {
    482482            e.printStackTrace();
    483483        }
    484         if(msg != null && confirmDisablePlugin(parent, msg, plugin.name))
     484        if(msg != null && confirmDisablePlugin(parent, msg, plugin.name)) {
    485485            Main.pref.removeFromCollection("plugins", plugin.name);
     486        }
    486487    }
    487488
     
    707708     */
    708709    public static List<PluginInformation>  updatePlugins(Window parent,
    709     List<PluginInformation> plugins, ProgressMonitor monitor)
    710     throws IllegalArgumentException{
     710            List<PluginInformation> plugins, ProgressMonitor monitor)
     711            throws IllegalArgumentException{
    711712        CheckParameterUtil.ensureParameterNotNull(plugins, "plugins");
    712713        if (monitor == null) {
     
    10011002            pl.remove(pi.name);
    10021003            pl.add(pi.name + " (" + (pi.localversion != null && !pi.localversion.equals("")
    1003             ? pi.localversion : "unknown") + ")");
     1004                    ? pi.localversion : "unknown") + ")");
    10041005        }
    10051006        Collections.sort(pl);
    1006         for (String s : pl)
     1007        for (String s : pl) {
    10071008            text += "Plugin: " + s + "\n";
     1009        }
    10081010        return text;
    10091011    }
Note: See TracChangeset for help on using the changeset viewer.