Changeset 31511 in osm for applications


Ignore:
Timestamp:
2015-08-21T20:43:58+02:00 (9 years ago)
Author:
nokutu
Message:

Improved texts and used tr() method on some Strings.

Location:
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
Files:
8 edited

Legend:

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

    r31495 r31511  
    3636    text.setAlignmentX(Component.CENTER_ALIGNMENT);
    3737    this.add(text);
    38     JButton web = new JButton("Approve upload on the website.");
     38    JButton web = new JButton(tr("Approve upload on the website"));
    3939    web.addActionListener(new WebAction());
    4040    web.setAlignmentX(Component.CENTER_ALIGNMENT);
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryExportDialog.java

    r31501 r31511  
    100100    this.choose.addActionListener(this);
    101101
    102     // All options belong to the same jpanel so the are in line.
     102    // All options belong to the same JPanel so the are in line.
    103103    JPanel jpanel = new JPanel();
    104104    jpanel.setLayout(new BoxLayout(jpanel, BoxLayout.PAGE_AXIS));
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryUploadDialog.java

    r31491 r31511  
    11package org.openstreetmap.josm.plugins.mapillary.gui;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import javax.swing.BoxLayout;
     
    3436    this.group = new ButtonGroup();
    3537
    36     this.sequence = new JRadioButton("Upload selected sequence.");
     38    this.sequence = new JRadioButton(tr("Upload selected sequence"));
    3739    if (MapillaryLayer.getInstance().getData().getSelectedImage() == null
    3840        || !(MapillaryLayer.getInstance().getData().getSelectedImage() instanceof MapillaryImportedImage))
     
    4244    this.group.setSelected(this.sequence.getModel(), true);
    4345
    44     this.delete = new JCheckBox("Delete after uplaod");
     46    this.delete = new JCheckBox(tr("Delete after upload"));
    4547    this.delete.setSelected(Main.pref.getBoolean(
    4648        "mapillary.delete-after-upload", true));
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryWalkDialog.java

    r31445 r31511  
    11package org.openstreetmap.josm.plugins.mapillary.gui;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import javax.swing.JCheckBox;
     
    3739    add(interval);
    3840
    39     this.waitForPicture = new JCheckBox("Wait for full quality pictures");
     41    this.waitForPicture = new JCheckBox(tr("Wait for full quality pictures"));
    4042    this.waitForPicture.setSelected(true);
    4143    add(this.waitForPicture);
    4244
    43     this.followSelection = new JCheckBox("Follow selected image");
     45    this.followSelection = new JCheckBox(tr("Follow selected image"));
    4446    this.followSelection.setSelected(true);
    4547    add(this.followSelection);
    4648
    47     this.goForward = new JCheckBox("Go forward");
     49    this.goForward = new JCheckBox(tr("Go forward"));
    4850    this.goForward.setSelected(true);
    4951    add(this.goForward);
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/mode/JoinMode.java

    r31490 r31511  
    11package org.openstreetmap.josm.plugins.mapillary.mode;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import java.awt.Color;
     
    8890  @Override
    8991  public String toString() {
    90     return "Join mode";
     92    return tr("Join mode");
    9193  }
    9294}
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/mode/SelectMode.java

    r31490 r31511  
    11package org.openstreetmap.josm.plugins.mapillary.mode;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import java.awt.Graphics2D;
     
    200202  @Override
    201203  public String toString() {
    202     return "Select mode";
     204    return tr("Select mode");
    203205  }
    204206}
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/OAuthPortListener.java

    r31486 r31511  
    11package org.openstreetmap.josm.plugins.mapillary.oauth;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import java.io.IOException;
     
    2022public class OAuthPortListener extends Thread {
    2123
    22   protected static String RESPONSE = "<html><head><title>Mapillary login</title></head><body>Login successful, return to JOSM.</body></html>";
     24  protected static String RESPONSE = tr("<html><head><title>Mapillary login</title></head><body>Login successful, return to JOSM.</body></html>");
    2325
    2426  @Override
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryUtils.java

    r31501 r31511  
    4040    String ret = "";
    4141    if (PluginState.isDownloading())
    42       ret += tr("Downloading");
     42      ret += tr("Downloading Mapillary images");
    4343    else if (MapillaryLayer.getInstance().getData().size() > 0)
    44       ret += tr("Total images: {0}", MapillaryLayer.getInstance().getData()
    45           .size());
     44      ret += tr("Total Mapillary images: {0}", MapillaryLayer.getInstance()
     45          .getData().size());
    4646    else
    4747      ret += tr("No images found");
     
    141141   * @param mapillaryAbstractImage2
    142142   */
    143   public synchronized static void join(MapillaryAbstractImage mapillaryAbstractImage,
     143  public synchronized static void join(
     144      MapillaryAbstractImage mapillaryAbstractImage,
    144145      MapillaryAbstractImage mapillaryAbstractImage2) {
    145146    MapillaryAbstractImage firstImage = mapillaryAbstractImage;
     
    175176   * @param mapillaryAbstractImage2
    176177   */
    177   public synchronized static void unjoin(MapillaryAbstractImage mapillaryAbstractImage,
     178  public synchronized static void unjoin(
     179      MapillaryAbstractImage mapillaryAbstractImage,
    178180      MapillaryAbstractImage mapillaryAbstractImage2) {
    179181    MapillaryAbstractImage firstImage = mapillaryAbstractImage;
     
    271273  /**
    272274   * Returns the current date.
     275   *
    273276   * @return A {@code String} object containing the current date.
    274277   */
Note: See TracChangeset for help on using the changeset viewer.