Ticket #6684: patch.diff

File patch.diff, 8.7 KB (added by Casiope, 14 years ago)
  • src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java

    ### Eclipse Workspace Patch 1.0
    #P JOSM
     
    289289                    BorderFactory.createCompoundBorder(
    290290                            BorderFactory.createLineBorder(Color.GRAY),
    291291                            BorderFactory.createEmptyBorder(5,5,5,5)
    292                     )
    293             ));
     292                            )
     293                    ));
    294294            GridBagConstraints gc = new GridBagConstraints();
    295295            gc.anchor = GridBagConstraints.NORTHWEST;
    296296            gc.fill = GridBagConstraints.HORIZONTAL;
     
    427427                    BorderFactory.createCompoundBorder(
    428428                            BorderFactory.createLineBorder(Color.GRAY),
    429429                            BorderFactory.createEmptyBorder(5,5,5,5)
    430                     )
    431             ));
     430                            )
     431                    ));
    432432
    433433            ItemListener userRestrictionChangeHandler = new UserRestrictionChangedHandler();
    434434            GridBagConstraints gc = new GridBagConstraints();
     
    492492
    493493        public void startUserInput() {
    494494            if (JosmUserIdentityManager.getInstance().isAnonymous()) {
    495                 lblRestrictedToMyself.setText("Only changesets owned by myself (disabled. JOSM is currently run by an anonymous user)");
     495                lblRestrictedToMyself.setText(tr("Only changesets owned by myself (disabled. JOSM is currently run by an anonymous user)"));
    496496                rbRestrictToMyself.setEnabled(false);
    497497                if (rbRestrictToMyself.isSelected()) {
    498498                    rbRestrictToUid.setSelected(true);
    499499                }
    500500            } else {
    501                 lblRestrictedToMyself.setText("Only changesets owned by myself");
     501                lblRestrictedToMyself.setText(tr("Only changesets owned by myself"));
    502502                rbRestrictToMyself.setEnabled(true);
    503503                rbRestrictToMyself.setSelected(true);
    504504            }
     
    554554                    tr("Invalid user ID"),
    555555                    JOptionPane.ERROR_MESSAGE,
    556556                    HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidUserId")
    557             );
     557                    );
    558558        }
    559559
    560560        protected void alertInvalidUserName() {
     
    564564                    tr("Invalid user name"),
    565565                    JOptionPane.ERROR_MESSAGE,
    566566                    HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidUserName")
    567             );
     567                    );
    568568        }
    569569
    570570        public void displayMessageIfInvalid() {
     
    747747                    BorderFactory.createCompoundBorder(
    748748                            BorderFactory.createLineBorder(Color.GRAY),
    749749                            BorderFactory.createEmptyBorder(5,5,5,5)
    750                     )
    751             ));
     750                            )
     751                    ));
    752752
    753753            // -- changesets closed after a specific date/time
    754754            //
     
    811811                return valClosedAfterDate1.isValid() && valClosedAfterTime1.isValid();
    812812            else if (rbClosedAfterAndCreatedBefore.isSelected())
    813813                return valClosedAfterDate2.isValid() && valClosedAfterTime2.isValid()
    814                 && valCreatedBeforeDate.isValid() && valCreatedBeforeTime.isValid();
     814                        && valCreatedBeforeDate.isValid() && valCreatedBeforeTime.isValid();
    815815            // should not happen
    816816            return true;
    817817        }
     
    863863                    this,
    864864                    tr(
    865865                            "<html>Please enter valid date/time values to restrict<br>"
    866                             + "the query to a specific time range.</html>"
    867                     ),
    868                     tr("Invalid date/time values"),
    869                     JOptionPane.ERROR_MESSAGE,
    870                     HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidDateTimeValues")
    871             );
     866                                    + "the query to a specific time range.</html>"
     867                            ),
     868                            tr("Invalid date/time values"),
     869                            JOptionPane.ERROR_MESSAGE,
     870                            HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidDateTimeValues")
     871                    );
    872872        }
    873873
    874874
     
    929929                    BorderFactory.createCompoundBorder(
    930930                            BorderFactory.createLineBorder(Color.GRAY),
    931931                            BorderFactory.createEmptyBorder(5,5,5,5)
    932                     )
    933             ));
     932                            )
     933                    ));
    934934        }
    935935
    936936        public boolean isValidChangesetQuery() {
     
    949949                    this,
    950950                    tr(
    951951                            "<html>Please enter valid longitude/latitude values to restrict<br>" +
    952                             "the changeset query to a specific bounding box.</html>"
    953                     ),
    954                     tr("Invalid bounding box"),
    955                     JOptionPane.ERROR_MESSAGE,
    956                     HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidBoundingBox")
    957             );
     952                                    "the changeset query to a specific bounding box.</html>"
     953                            ),
     954                            tr("Invalid bounding box"),
     955                            JOptionPane.ERROR_MESSAGE,
     956                            HelpUtil.ht("/Dialog/ChangesetQueryDialog#InvalidBoundingBox")
     957                    );
    958958        }
    959959    }
    960960
     
    10611061        public String getStandardTooltipText() {
    10621062            return  tr(
    10631063                    "Please enter a date in the usual format for your locale.<br>"
    1064                     + "Example: {0}<br>"
    1065                     + "Example: {1}<br>"
    1066                     + "Example: {2}<br>"
    1067                     + "Example: {3}<br>",
    1068                     DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()),
    1069                     DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()),
    1070                     DateFormat.getDateInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()),
    1071                     DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault()).format(new Date())
    1072             );
     1064                            + "Example: {0}<br>"
     1065                            + "Example: {1}<br>"
     1066                            + "Example: {2}<br>"
     1067                            + "Example: {3}<br>",
     1068                            DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()),
     1069                            DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()),
     1070                            DateFormat.getDateInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()),
     1071                            DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault()).format(new Date())
     1072                    );
    10731073        }
    10741074
    10751075        @Override
     
    11251125        public String getStandardTooltipText() {
    11261126            return tr(
    11271127                    "Please enter a valid time in the usual format for your locale.<br>"
    1128                     + "Example: {0}<br>"
    1129                     + "Example: {1}<br>"
    1130                     + "Example: {2}<br>"
    1131                     + "Example: {3}<br>",
    1132                     DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()),
    1133                     DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()),
    1134                     DateFormat.getTimeInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()),
    1135                     DateFormat.getTimeInstance(DateFormat.FULL, Locale.getDefault()).format(new Date())
    1136             );
     1128                            + "Example: {0}<br>"
     1129                            + "Example: {1}<br>"
     1130                            + "Example: {2}<br>"
     1131                            + "Example: {3}<br>",
     1132                            DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault()).format(new Date()),
     1133                            DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.getDefault()).format(new Date()),
     1134                            DateFormat.getTimeInstance(DateFormat.LONG, Locale.getDefault()).format(new Date()),
     1135                            DateFormat.getTimeInstance(DateFormat.FULL, Locale.getDefault()).format(new Date())
     1136                    );
    11371137        }
    11381138
    11391139        @Override