Changeset 30052 in osm for applications/editors/josm


Ignore:
Timestamp:
2013-11-16T00:04:49+01:00 (11 years ago)
Author:
simon04
Message:

JOSM/tracer2: fix wording/i18n for English strings

Location:
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/TracerAction.java

    r30047 r30052  
    223223            }
    224224            if (oGetVersion.m_nVersionMajor != nMajor) {
    225                 JOptionPane.showMessageDialog(Main.parent, tr("The Tracer2Server version isn''t compatible with this plugin. Please download version {0} from",nMajor + ".x" )
    226                                 + "\nhttp://sourceforge.net/projects/tracer2server/." , tr("Error"),  JOptionPane.ERROR_MESSAGE);
     225                JOptionPane.showMessageDialog(Main.parent, tr("The Tracer2Server version isn''t compatible with this plugin. Please download version {0} from\n{1}.", nMajor + ".x",
     226                                + "http://sourceforge.net/projects/tracer2server/"), tr("Error"),  JOptionPane.ERROR_MESSAGE);
    227227                return false;
    228228            }
    229229            if (oGetVersion.m_nVersionMinor < nMinor) {
    230                 JOptionPane.showMessageDialog(Main.parent, tr("New version of Tracer2Server is avalibel. For best results please upgrade to version {0}.",nMajor + "." + nMinor ), tr("Information"),  JOptionPane.INFORMATION_MESSAGE);
     230                JOptionPane.showMessageDialog(Main.parent, tr("New version of Tracer2Server is available. For best results please upgrade to version {0}.",nMajor + "." + nMinor ), tr("Information"),  JOptionPane.INFORMATION_MESSAGE);
    231231            }
    232232            s_bServerVersionOK = true;
     
    246246            if (listEnableParam == null || listEnableParam.size() == 0) {
    247247                listParam.setActivParam(null);
    248                 JOptionPane.showMessageDialog(Main.parent, tr("No set of parameter is activ!"), tr("Error"),  JOptionPane.ERROR_MESSAGE);
     248                JOptionPane.showMessageDialog(Main.parent, tr("No set of parameter is active!"), tr("Error"),  JOptionPane.ERROR_MESSAGE);
    249249                return false;
    250250            }
     
    331331                String strCommand;
    332332                if (ConnectWays.s_bAddNewWay == true) {
    333                         strCommand = tr("Tracer2 add a Way with {0} points", coordList.size());
     333                        strCommand = tr("Tracer2: add a way with {0} points", coordList.size());
    334334                } else {
    335                         strCommand = tr("Tracer2 modified Way to {0} points", coordList.size());
     335                        strCommand = tr("Tracer2: modify way to {0} points", coordList.size());
    336336                }
    337337                Main.main.undoRedo.add(new SequenceCommand(strCommand, commands));
  • applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/server/Request.java

    r30047 r30052  
    5353            return oBuilder.toString();
    5454        } catch (ConnectException e) {
    55             JOptionPane.showMessageDialog(Main.parent, tr("Tracer2Server isn''t running. Pleas start the Server.\nIf you don''t have the Server please download it at"
    56                         + "\nhttp://sourceforge.net/projects/tracer2server/.") , tr("Error"),  JOptionPane.ERROR_MESSAGE);
     55            JOptionPane.showMessageDialog(Main.parent, tr("Tracer2Server isn''t running. Please start the Server.\nIf you don''t have the server, please download it from\n{1}.",
     56                        + "http://sourceforge.net/projects/tracer2server/") , tr("Error"),  JOptionPane.ERROR_MESSAGE);
    5757            return "";
    5858        } catch (Exception e) {
    59             JOptionPane.showMessageDialog(Main.parent, tr("Tracer2Server has nothing found.") + "\n", tr("Error"),  JOptionPane.ERROR_MESSAGE);
     59            JOptionPane.showMessageDialog(Main.parent, tr("Tracer2Server hasn''t found anything.") + "\n", tr("Error"),  JOptionPane.ERROR_MESSAGE);
    6060                return "";
    6161        }
     
    7171        if (strResponse.contains(strIdentifier)) {
    7272                String strError = strResponse.replaceFirst(strIdentifier, "").trim();
    73             JOptionPane.showMessageDialog(Main.parent, tr("Tracer2Server has an Error detected.") + "\n" + strError, tr("Error"),  JOptionPane.ERROR_MESSAGE);
     73            JOptionPane.showMessageDialog(Main.parent, tr("Tracer2Server has detected an error.") + "\n" + strError, tr("Error"),  JOptionPane.ERROR_MESSAGE);
    7474                return true;
    7575        }
Note: See TracChangeset for help on using the changeset viewer.