Changeset 3732 in josm


Ignore:
Timestamp:
2010-12-19T17:08:47+01:00 (11 years ago)
Author:
bastiK
Message:

applied #5753 (patch by Claudius Henrichs) - String cleanup of remote control preferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/RemoteControlPreference.java

    r3715 r3732  
    4545    private JCheckBox enableRemoteControl;
    4646
    47     private JCheckBox permissionLoadData = new JCheckBox(tr("load data from API"));
    48     private JCheckBox permissionImportData = new JCheckBox(tr("import data from URL"));
    49     private JCheckBox permissionLoadImagery = new JCheckBox(tr("load imagery layers"));
    50     private JCheckBox permissionCreateObjects = new JCheckBox(tr("create new objects"));
    51     private JCheckBox permissionChangeSelection = new JCheckBox(tr("change the selection"));
    52     private JCheckBox permissionChangeViewport = new JCheckBox(tr("change the viewport"));
    53     private JCheckBox permissionReadProtocolversion = new JCheckBox(tr("read protocol version"));
    54     private JCheckBox alwaysAskUserConfirm = new JCheckBox(tr("confirm all Remote Control actions manually"));
     47    private JCheckBox permissionLoadData = new JCheckBox(tr("Load data from API"));
     48    private JCheckBox permissionImportData = new JCheckBox(tr("Import data from URL"));
     49    private JCheckBox permissionLoadImagery = new JCheckBox(tr("Load imagery layers"));
     50    private JCheckBox permissionCreateObjects = new JCheckBox(tr("Create new objects"));
     51    private JCheckBox permissionChangeSelection = new JCheckBox(tr("Change the selection"));
     52    private JCheckBox permissionChangeViewport = new JCheckBox(tr("Change the viewport"));
     53    private JCheckBox permissionReadProtocolversion = new JCheckBox(tr("Read protocol version"));
     54    private JCheckBox alwaysAskUserConfirm = new JCheckBox(tr("Confirm all Remote Control actions manually"));
    5555
    56     public void addGui(final PreferenceTabbedPane gui)
    57     {
     56    public void addGui(final PreferenceTabbedPane gui) {
    5857
    59         JPanel remote = gui.createPreferenceTab("remotecontrol.gif", tr("Remote Control"), tr("Settings for the Remote Control freature."));
     58        JPanel remote = gui.createPreferenceTab("remotecontrol.gif", tr("Remote Control"), tr("Settings for the remote control feature."));
    6059
    6160        remote.add(enableRemoteControl = new JCheckBox(tr("Enable remote control"), RemoteControl.PROP_REMOTECONTROL_ENABLED.get()), GBC.eol());
     
    8786        wrapper.add(alwaysAskUserConfirm, GBC.eol().fill(GBC.HORIZONTAL));
    8887
    89         final JLabel portLabel = new JLabel("<html>"+tr("JOSM will always listen on port 8111 on localhost." +
    90                 "The port is not configurable because it is referenced by external applications talking to JOSM.") + "</html>");
     88        final JLabel portLabel = new JLabel("<html>"+tr("JOSM will always listen at port 8111 on localhost." +
     89                "This port is not configurable because it is referenced by external applications talking to JOSM.") + "</html>");
    9190        portLabel.setFont(portLabel.getFont().deriveFont(Font.PLAIN));
    9291
     
    104103        alwaysAskUserConfirm.setSelected(Main.pref.getBoolean(RequestHandler.globalConfirmationKey, RequestHandler.globalConfirmationDefault));
    105104
    106         ActionListener remoteControlEnabled = new ActionListener(){
     105        ActionListener remoteControlEnabled = new ActionListener() {
    107106            public void actionPerformed(ActionEvent e) {
    108107                boolean enabled = enableRemoteControl.isSelected();
     
    131130            Main.pref.put(RequestHandler.globalConfirmationKey, alwaysAskUserConfirm.isSelected());
    132131        }
    133         // FIXME confirm return value - really no restart needed?
    134132        return changed;
    135133    }
Note: See TracChangeset for help on using the changeset viewer.