Changeset 31251 in osm


Ignore:
Timestamp:
2015-06-08T13:17:36+02:00 (9 years ago)
Author:
nokutu
Message:

New package actions

Location:
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
Files:
3 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java

    r31249 r31251  
    2020import org.openstreetmap.josm.plugins.mapillary.gui.MapillaryPreferenceSetting;
    2121import org.openstreetmap.josm.plugins.mapillary.gui.MapillaryToggleDialog;
     22import org.openstreetmap.josm.plugins.mapillary.actions.*;
    2223import org.openstreetmap.josm.tools.ImageProvider;
    2324
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/HyperlinkLabel.java

    r31249 r31251  
    11package org.openstreetmap.josm.plugins.mapillary.gui;
    22
     3import static org.openstreetmap.josm.tools.I18n.tr;
    34import java.awt.Cursor;
    45import java.awt.event.ActionEvent;
     
    2021         * The normal text set by the user.
    2122         */
    22 
    2323        private String text;
    2424
     
    2626
    2727        /**
    28          * Creates a new LinkLabel with the given text.
     28         * Creates a new HyperlinlLabel.
    2929         */
    30 
    3130        public HyperlinkLabel() {
    32                 super("View in website", SwingUtilities.RIGHT);
     31                super(tr("View in website"), SwingUtilities.RIGHT);
    3332                this.addActionListener(this);
    3433                setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
     
    4039         * Sets the text of the label.
    4140         */
    42 
    4341        public void setText(String text) {
    4442                super.setText("<html><font color=\"#0000CF\" size=\"2\">" + text + "</font></html>"); //$NON-NLS-1$ //$NON-NLS-2$
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryExportDialog.java

    r31249 r31251  
    5959                        selected.setEnabled(false);
    6060                }
    61                 path = new JLabel("Select a folder");
     61                path = new JLabel(tr("Select a folder"));
    6262                choose = new JButton(tr("Explore"));
    6363                choose.addActionListener(this);
     
    8787                chooser.setCurrentDirectory(new java.io.File(System
    8888                                .getProperty("user.home")));
    89                 chooser.setDialogTitle("Select a directory");
     89                chooser.setDialogTitle(tr("Select a directory"));
    9090                chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    9191                chooser.setAcceptAllFileFilterUsed(false);
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryPreferenceSetting.java

    r31249 r31251  
    11package org.openstreetmap.josm.plugins.mapillary.gui;
    22
     3import static org.openstreetmap.josm.tools.I18n.tr;
    34import java.awt.FlowLayout;
    45
     
    1314public class MapillaryPreferenceSetting implements SubPreferenceSetting {
    1415
    15         private JCheckBox reverseButtons = new JCheckBox("Reverse buttons position when displaying images.");;
     16        private JCheckBox reverseButtons = new JCheckBox(tr("Reverse buttons position when displaying images."));;
    1617       
    1718        @Override
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryToggleDialog.java

    r31249 r31251  
    200200        class redAction extends AbstractAction {
    201201                public redAction() {
    202                         putValue(NAME, "Jump to red");
     202                        putValue(NAME, tr("Jump to red"));
    203203                        putValue(SHORT_DESCRIPTION,
    204                                         tr("Shows the previous picture in the sequence"));
     204                                        tr("Jumps to the picture at the other side of the red line"));
    205205                }
    206206
     
    221221        class blueAction extends AbstractAction {
    222222                public blueAction() {
    223                         putValue(NAME, "Jump to blue");
     223                        putValue(NAME, tr("Jump to blue"));
    224224                        putValue(SHORT_DESCRIPTION,
    225                                         tr("Shows the previous picture in the sequence"));
     225                                        tr("Jumps to the picture at the other side of the blue line"));
    226226                }
    227227
Note: See TracChangeset for help on using the changeset viewer.