Ticket #4458: josm-typos.diff

File josm-typos.diff, 17.6 KB (added by andre68@…, 11 years ago)
  • src/org/openstreetmap/josm/gui/dialogs/ConflictResolutionDialog.java

     
    216216                        tr("<html>You did not finish to merge the differences in this conflict.<br>"
    217217                                + "Conflict resolutions will not be applied unless all differences<br>"
    218218                                + "are resolved.<br>"
    219                                 + "Click <strong>{0}</strong> to close anyway.<strong>Already<br>"
     219                                + "Click <strong>{0}</strong> to close anyway. <strong>Already<br>"
    220220                                + "resolved differences will not be applied.</strong><br>"
    221221                                + "Click <strong>{1}</strong> to return to resolving conflicts.</html>"
    222222                                , options[0].toString(), options[1].toString()
  • src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentDownloadTask.java

     
    115115     * Replies true if the local {@see ChangesetCache} already includes the changeset with
    116116     * id <code>changesetId</code>.
    117117     *
    118      * @param changsetId the changeset id
     118     * @param changesetId the changeset id
    119119     * @return true if the local {@see ChangesetCache} already includes the changeset with
    120120     * id <code>changesetId</code>
    121121     */
    122     protected boolean isAvailableLocally(int changsetId) {
    123         return ChangesetCache.getInstance().get(changsetId) != null;
     122    protected boolean isAvailableLocally(int changesetId) {
     123        return ChangesetCache.getInstance().get(changesetId) != null;
    124124    }
    125125
    126126    /**
  • src/org/openstreetmap/josm/gui/dialogs/changeset/SingleChangesetDownloadPanel.java

     
    2929 */
    3030public class SingleChangesetDownloadPanel extends JPanel {
    3131
    32     private JTextField tfChangsetId;
     32    private JTextField tfChangesetId;
    3333    private DownloadAction actDownload;
    3434    private ChangesetIdValidator valChangesetId;
    3535
     
    4343        );
    4444
    4545        add(new JLabel(tr("Changeset ID: ")));
    46         add(tfChangsetId = new JTextField(10));
    47         tfChangsetId.setToolTipText(tr("Enter a changset id"));
    48         valChangesetId  =ChangesetIdValidator.decorate(tfChangsetId);
    49         SelectAllOnFocusGainedDecorator.decorate(tfChangsetId);
     46        add(tfChangesetId = new JTextField(10));
     47        tfChangesetId.setToolTipText(tr("Enter a changeset id"));
     48        valChangesetId  =ChangesetIdValidator.decorate(tfChangesetId);
     49        SelectAllOnFocusGainedDecorator.decorate(tfChangesetId);
    5050
    5151        actDownload = new DownloadAction();
    5252        SideButton btn = new SideButton(actDownload);
    53         tfChangsetId.addActionListener(actDownload);
    54         tfChangsetId.getDocument().addDocumentListener(actDownload);
     53        tfChangesetId.addActionListener(actDownload);
     54        tfChangesetId.getDocument().addDocumentListener(actDownload);
    5555        add(btn);
    5656    }
    5757
     
    6565     *
    6666     * @return the changeset id entered in this panel
    6767     */
    68     public int getChangsetId() {
     68    public int getChangesetId() {
    6969        return valChangesetId.getChangesetId();
    7070    }
    7171
     
    8383        public void actionPerformed(ActionEvent arg0) {
    8484            if (!isEnabled())
    8585                return;
    86             int id = getChangsetId();
     86            int id = getChangesetId();
    8787            if (id == 0) return;
    8888            ChangesetContentDownloadTask task =  new ChangesetContentDownloadTask(
    8989                    SingleChangesetDownloadPanel.this,
     
    9393        }
    9494
    9595        protected void updateEnabledState() {
    96             String v = tfChangsetId.getText();
     96            String v = tfChangesetId.getText();
    9797            if (v == null || v.trim().length() == 0) {
    9898                setEnabled(false);
    9999                return;
  • src/org/openstreetmap/josm/gui/dialogs/changeset/query/BasicChangesetQueryPanel.java

     
    106106        gc.fill = GridBagConstraints.HORIZONTAL;
    107107        gc.weightx = 1.0;
    108108        pnl.add(cbMyChangesetsOnly = new JCheckBox(tr("Download my changesets only")), gc);
    109         cbMyChangesetsOnly.setToolTipText(tr("<html>Select to restrict the query to your changsets only.<br>Unselect to include all changesets in the query.</html>"));
     109        cbMyChangesetsOnly.setToolTipText(tr("<html>Select to restrict the query to your changesets only.<br>Unselect to include all changesets in the query.</html>"));
    110110
    111111        // grab remaining space
    112112        gc.gridx = 0;
  • src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryTask.java

     
    3737    private ChangesetQuery query;
    3838    /** true if the task was canceled */
    3939    private boolean canceled;
    40     /** the set of downloaded changsets */
     40    /** the set of downloaded changesets */
    4141    private Set<Changeset> downloadedChangesets;
    4242    /** the last exception remembered, if any */
    4343    private Exception lastException;
  • src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java

     
    10791079                    new ButtonSpec(
    10801080                            tr("No, continue editing"),
    10811081                            ImageProvider.get("cancel"),
    1082                             tr("Click to to return to the relation editor and to resume relation editing") ,
     1082                            tr("Click to return to the relation editor and to resume relation editing") ,
    10831083                            null /* no specific help topic */
    10841084                    )
    10851085            };
  • src/org/openstreetmap/josm/gui/help/HelpBrowser.java

     
    225225        String message = tr("<html><p class=\"warning-header\">Help content for help topic missing</p>"
    226226                + "<p class=\"warning-body\">Help content for the help topic <strong>{0}</strong> is "
    227227                + "not available yet. It is missing both in your local language ({1}) and in english.<br><br>"
    228                 + "Please help to improve the JOSM help system and fill in the missing information."
     228                + "Please help to improve the JOSM help system and fill in the missing information. "
    229229                + "You can both edit the <a href=\"{2}\">help topic in your local language ({1})</a> and "
    230230                + "the <a href=\"{3}\">help topic in english</a>."
    231231                + "</p></html>",
     
    347347                        Main.parent,
    348348                        tr(
    349349                                "<html>Failed to open help page for url {0}.<br>"
    350                                 + "This is most likely due to a network problem, please check your<br>"
     350                                + "This is most likely due to a network problem, please check<br>"
    351351                                + "your internet connection</html>",
    352352                                url.toString()
    353353                        ),
  • src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java

     
    118118            if (im.isFullyIdentified()) {
    119119                im.setPartiallyIdentified(im.getUserName());
    120120            }
    121             System.err.println(tr("Warning: Failed to retrieve user infos for the current JOSM user. Exceptions was: {0}", e.toString()));
     121            System.err.println(tr("Warning: Failed to retrieve user infos for the current JOSM user. Exception was: {0}", e.toString()));
    122122        }
    123123    }
    124124
  • src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java

     
    9696                )
    9797        };
    9898        int numObjectsToUploadLeft = toUpload.getSize() - processedPrimitives.size();
    99         String msg1 = tr("The server reported that the current changset was closed.<br>"
     99        String msg1 = tr("The server reported that the current changeset was closed.<br>"
    100100                + "This is most likely because the changesets size exceeded the max. size<br>"
    101101                + "of {0} objects on the server ''{1}''.",
    102                 OsmApi.getOsmApi().getCapabilities().getMaxChangsetSize(),
     102                OsmApi.getOsmApi().getCapabilities().getMaxChangesetSize(),
    103103                OsmApi.getOsmApi().getBaseUrl()
    104104        );
    105105        String msg2 = trn(
     
    109109                numObjectsToUploadLeft
    110110        );
    111111        String msg3 = tr(
    112                 "Click ''<strong>{0}</strong>'' to continue uploading to additional new changsets.<br>"
     112                "Click ''<strong>{0}</strong>'' to continue uploading to additional new changesets.<br>"
    113113                + "Click ''<strong>{1}</strong>'' to return to the upload dialog.<br>"
    114114                + "Click ''<strong>{2}</strong>'' to abort uploading and return to map editing.<br>",
    115115                specs[0].text,
     
    125125                null, /* no special icon */
    126126                specs,
    127127                specs[0],
    128                 ht("/Action/UploadAction#ChangsetFull")
     128                ht("/Action/UploadAction#ChangesetFull")
    129129        );
    130130        switch(ret) {
    131131        case 0: return MaxChangesetSizeExceededPolicy.AUTOMATICALLY_OPEN_NEW_CHANGESETS;
     
    137137        return null;
    138138    }
    139139
    140     protected void openNewChangset() {
     140    protected void openNewChangeset() {
    141141        // make sure the current changeset is removed from the upload dialog.
    142142        //
    143143        ChangesetCache.getInstance().update(changeset);
     
    146146        this.changeset = newChangeSet;
    147147    }
    148148
    149     protected boolean recoverFromChangsetFullException() {
     149    protected boolean recoverFromChangesetFullException() {
    150150        if (toUpload.getSize() - processedPrimitives.size() == 0) {
    151151            strategy.setPolicy(MaxChangesetSizeExceededPolicy.ABORT);
    152152            return false;
     
    167167        case AUTOMATICALLY_OPEN_NEW_CHANGESETS:
    168168            // prepare the state of the task for a next iteration in uploading.
    169169            //
    170             openNewChangset();
     170            openNewChangeset();
    171171            toUpload.removeProcessed(processedPrimitives);
    172172            return true;
    173173        }
     
    263263                    case UPLOAD_DATA:
    264264                        // Most likely the changeset is full. Try to recover and continue
    265265                        // with a new changeset, but let the user decide first (see
    266                         // recoverFromChangsetFullException)
     266                        // recoverFromChangesetFullException)
    267267                        //
    268                         if (recoverFromChangsetFullException()) {
     268                        if (recoverFromChangesetFullException()) {
    269269                            continue;
    270270                        }
    271271                        lastException = e;
  • src/org/openstreetmap/josm/gui/io/CredentialDialog.java

     
    235235        protected void build() {
    236236            super.build();
    237237            tfUserName.setToolTipText(tr("Please enter the user name of your OSM account"));
    238             tfPassword.setToolTipText(tr("Please enter the password name of your OSM account"));
     238            tfPassword.setToolTipText(tr("Please enter the password of your OSM account"));
    239239            lblHeading.setText(
    240240                    "<html>" + tr("Authenticating at the OSM API ''{0}'' failed. Please enter a valid username and a valid password.",
    241241                            OsmApi.getOsmApi().getBaseUrl()) + "</html>");
  • src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java

     
    190190     * know what {@see OsmPrimitive} actually caused the conflict (for whatever reason)
    191191     *
    192192     */
    193     protected void handleUploadConflictForClosedChangeset(long changsetId, Date d) {
     193    protected void handleUploadConflictForClosedChangeset(long changesetId, Date d) {
    194194        String msg =  tr("<html>Uploading <strong>failed</strong> because you have been using<br>"
    195195                + "changeset {0} which was already closed at {1}.<br>"
    196196                + "Please upload again with a new or an existing open changeset.</html>",
    197                 changsetId, new SimpleDateFormat().format(d)
     197                changesetId, new SimpleDateFormat().format(d)
    198198        );
    199199        JOptionPane.showMessageDialog(
    200200                Main.parent,
  • src/org/openstreetmap/josm/io/Capabilities.java

     
    7979     *
    8080     * @return the max number of objects in a changeset
    8181     */
    82     public int getMaxChangsetSize() {
     82    public int getMaxChangesetSize() {
    8383        String v = get("changesets", "maximum_elements");
    8484        if (v == null) return -1;
    8585        try {
  • src/org/openstreetmap/josm/io/OsmServerChangesetReader.java

     
    163163    /**
    164164     * Downloads the content of a changeset
    165165     *
    166      * @param id the changset id. >0 required.
     166     * @param id the changeset id. >0 required.
    167167     * @param monitor the progress monitor. {@see NullProgressMonitor#INSTANCE} assumed if null.
    168      * @return the changset content
     168     * @return the changeset content
    169169     * @throws IllegalArgumentException thrown if id <= 0
    170170     * @throws OsmTransferException thrown if something went wrong
    171171     */
  • src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java

     
    155155    }
    156156
    157157    /**
    158      * appends a {@see Way}s id and the list of ids of nodes the way refers to to the list of ids which will be fetched from the server.
     158     * appends a {@see Way}s id and the list of ids of nodes the way refers to the list of ids which will be fetched from the server.
    159159     *
    160160     * @param way the way (ignored, if null)
    161161     * @return this
  • src/org/openstreetmap/josm/data/APIDataSet.java

     
    276276    }
    277277
    278278    /**
    279      * Utility class to sort a collection of of new relations with their dependencies
     279     * Utility class to sort a collection of new relations with their dependencies
    280280     * topologically.
    281281     *
    282282     */
  • src/org/openstreetmap/josm/data/conflict/ConflictCollection.java

     
    8282    /**
    8383     * Adds a conflict to the collection of conflicts.
    8484     *
    85      * @param conflict the conflict to to add. Must not be null.
     85     * @param conflict the conflict to add. Must not be null.
    8686     * @throws IllegalArgumentException thrown, if conflict is null
    8787     * @throws IllegalStateException thrown if this collection already includes a conflict for conflict.getMy()
    8888     *