Changeset 30052 in osm for applications/editors/josm/plugins/tracer2/src/org/openstreetmap
- Timestamp:
- 2013-11-16T00:04:49+01:00 (11 years ago)
- 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 223 223 } 224 224 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); 227 227 return false; 228 228 } 229 229 if (oGetVersion.m_nVersionMinor < nMinor) { 230 JOptionPane.showMessageDialog(Main.parent, tr("New version of Tracer2Server is ava libel. 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); 231 231 } 232 232 s_bServerVersionOK = true; … … 246 246 if (listEnableParam == null || listEnableParam.size() == 0) { 247 247 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); 249 249 return false; 250 250 } … … 331 331 String strCommand; 332 332 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()); 334 334 } else { 335 strCommand = tr("Tracer2 modified Way to {0} points", coordList.size());335 strCommand = tr("Tracer2: modify way to {0} points", coordList.size()); 336 336 } 337 337 Main.main.undoRedo.add(new SequenceCommand(strCommand, commands)); -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/server/Request.java
r30047 r30052 53 53 return oBuilder.toString(); 54 54 } catch (ConnectException e) { 55 JOptionPane.showMessageDialog(Main.parent, tr("Tracer2Server isn''t running. Pleas start the Server.\nIf you don''t have the Serverplease download itat"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); 57 57 return ""; 58 58 } 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); 60 60 return ""; 61 61 } … … 71 71 if (strResponse.contains(strIdentifier)) { 72 72 String strError = strResponse.replaceFirst(strIdentifier, "").trim(); 73 JOptionPane.showMessageDialog(Main.parent, tr("Tracer2Server has an Errordetected.") + "\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); 74 74 return true; 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.