- Timestamp:
- 2007-07-08T00:44:20+02:00 (17 years ago)
- Location:
- src/org/openstreetmap/josm
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/CombineWayAction.java
r271 r283 97 97 cmds.add(new DeleteCommand(selectedWays)); 98 98 cmds.add(new ChangeCommand(oldWay, newWay)); 99 Main.main.editLayer().add(new SequenceCommand(tr("Combine {0} Ways", selectedWays.size()), cmds));99 Main.main.editLayer().add(new SequenceCommand(tr("Combine {0} ways", selectedWays.size()), cmds)); 100 100 Main.ds.setSelected(oldWay); 101 101 } -
src/org/openstreetmap/josm/actions/GpxExportAction.java
r143 r283 38 38 public class GpxExportAction extends DiskAccessAction { 39 39 40 private final static String warningGpl = "<html><font color='red' size='-2'>"+tr("Note: GPL is not compatible tothe OSM license. Do not upload GPL licensed tracks.")+"</html>";40 private final static String warningGpl = "<html><font color='red' size='-2'>"+tr("Note: GPL is not compatible with the OSM license. Do not upload GPL licensed tracks.")+"</html>"; 41 41 42 42 private final Layer layer; -
src/org/openstreetmap/josm/actions/SaveAction.java
r143 r283 65 65 } catch (IOException e) { 66 66 e.printStackTrace(); 67 JOptionPane.showMessageDialog(Main.parent, tr("An error occ oured while saving.")+"\n"+e.getMessage());67 JOptionPane.showMessageDialog(Main.parent, tr("An error occurred while saving.")+"\n"+e.getMessage()); 68 68 } 69 69 } -
src/org/openstreetmap/josm/actions/UploadAction.java
r258 r283 96 96 } 97 97 98 return JOptionPane.showConfirmDialog(Main.parent, p, tr("Upload th ischanges?"),98 return JOptionPane.showConfirmDialog(Main.parent, p, tr("Upload these changes?"), 99 99 JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION; 100 100 } -
src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java
r198 r283 47 47 actions.add(new AddNodeAction(mf,tr("Add node"), Mode.node, tr("Add a new node to the map"))); 48 48 actions.add(new AddNodeAction(mf, tr("Add node into segment"), Mode.nodesegment,tr( "Add a node into an existing segment"))); 49 actions.add(new AddNodeAction(mf, tr("Add node and connect"), Mode.autonode,tr( "Add a node and connect it to the selected (previous added) node")));49 actions.add(new AddNodeAction(mf, tr("Add node and connect"), Mode.autonode,tr( "Add a node and connect it to the selected (previously added) node"))); 50 50 setCurrent(0); 51 51 } -
src/org/openstreetmap/josm/data/ServerSidePreferences.java
r199 r283 89 89 } catch (MalformedURLException e) { 90 90 e.printStackTrace(); 91 JOptionPane.showMessageDialog(Main.parent, tr("Could not load preference dfrom server."));91 JOptionPane.showMessageDialog(Main.parent, tr("Could not load preferences from server.")); 92 92 } 93 93 this.connection = connection; -
src/org/openstreetmap/josm/gui/MainApplet.java
r199 r283 46 46 {"username", tr("string"), tr("Name of the user.")}, 47 47 {"password", tr("string"), tr("OSM Password.")}, 48 {"geometry", tr("string"), tr(" Size the applet to the given geometry (format: WIDTHxHEIGHT)")},48 {"geometry", tr("string"), tr("Resize the applet to the given geometry (format: WIDTHxHEIGHT)")}, 49 49 {"download", tr("string;string;..."), tr("Download each. Can be x1,y1,x2,y2 an url containing lat=y&lon=x&zoom=z or a filename")}, 50 50 {"downloadgps", tr("string;string;..."), tr("Download each as raw gps. Can be x1,y1,x2,y2 an url containing lat=y&lon=x&zoom=z or a filename")}, -
src/org/openstreetmap/josm/gui/MainApplication.java
r243 r283 143 143 144 144 preConstructorInit(args); 145 JFrame mainFrame = new JFrame(tr("Java Open StreetMap - Editor"));145 JFrame mainFrame = new JFrame(tr("Java OpenStreetMap - Editor")); 146 146 Main.parent = mainFrame; 147 147 final Main main = new MainApplication(mainFrame); -
src/org/openstreetmap/josm/gui/MapView.java
r276 r283 113 113 dataLayer.listenerModified.add(new ModifiedChangedListener(){ 114 114 public void modifiedChanged(boolean value, OsmDataLayer source) { 115 JOptionPane.getFrameForComponent(Main.parent).setTitle((value?"*":"")+tr("Java Open StreetMap - Editor"));115 JOptionPane.getFrameForComponent(Main.parent).setTitle((value?"*":"")+tr("Java OpenStreetMap - Editor")); 116 116 } 117 117 }); -
src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r206 r283 87 87 } catch (FileNotFoundException x) { 88 88 x.printStackTrace(); 89 errorMessage = tr("File Not found")+": "+x.getMessage();89 errorMessage = tr("File not found")+": "+x.getMessage(); 90 90 } catch (IOException x) { 91 91 x.printStackTrace(); -
src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r273 r283 275 275 */ 276 276 public PropertiesDialog(MapFrame mapFrame) { 277 super(tr("Properties"), "propertiesdialog", tr("Propert yfor selected objects."), KeyEvent.VK_P, 150);277 super(tr("Properties"), "propertiesdialog", tr("Properties for selected objects."), KeyEvent.VK_P, 150); 278 278 279 279 if (AnnotationPresetPreference.annotationPresets.size() > 0) { -
src/org/openstreetmap/josm/gui/download/WorldChooser.java
r242 r283 97 97 temp.setLayout(new BorderLayout()); 98 98 temp.add(this, BorderLayout.CENTER); 99 temp.add(new JLabel(tr("You can use the mouse or Ctrl+Arrow keys/./ ,to zoom and pan.")), BorderLayout.SOUTH);99 temp.add(new JLabel(tr("You can use the mouse or Ctrl+Arrow keys/./ to zoom and pan.")), BorderLayout.SOUTH); 100 100 gui.tabpane.add(temp, "Map"); 101 101 new MapMover(this, temp); -
src/org/openstreetmap/josm/gui/layer/RawGpsLayer.java
r198 r283 63 63 public void actionPerformed(ActionEvent e) { 64 64 JPanel msg = new JPanel(new GridBagLayout()); 65 msg.add(new JLabel(tr("<html>Upload of unprocessed GPS data as map data is considered harmful l.<br>If you want to upload traces, look here:")), GBC.eol());65 msg.add(new JLabel(tr("<html>Upload of unprocessed GPS data as map data is considered harmful.<br>If you want to upload traces, look here:")), GBC.eol()); 66 66 msg.add(new UrlLabel(tr("http://www.openstreetmap.org/traces")), GBC.eop()); 67 67 if (!DontShowAgainInfo.show("convert_to_data", msg)) -
src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java
r266 r283 30 30 }); 31 31 drawRawGpsLines.setSelected(Main.pref.getBoolean("draw.rawgps.lines")); 32 drawRawGpsLines.setToolTipText(tr("If your gps device draw to few lines, select this to draw lines along your way."));32 drawRawGpsLines.setToolTipText(tr("If your gps device draw too few lines, select this to draw lines along your way.")); 33 33 gui.display.add(drawRawGpsLines, GBC.eol().insets(20,0,0,0)); 34 34 -
src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r282 r283 65 65 public void addGui(final PreferenceDialog gui) { 66 66 this.gui = gui; 67 plugin = gui.createPreferenceTab("plugin", tr("Plugins"), tr("Configure available Plugins."));67 plugin = gui.createPreferenceTab("plugin", tr("Plugins"), tr("Configure available plugins.")); 68 68 JScrollPane pluginPane = new JScrollPane(pluginPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); 69 69 pluginPane.setBorder(null); -
src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java
r186 r283 37 37 // some common tabs 38 38 public final JPanel display = createPreferenceTab("display", tr("Display Settings"), tr("Various settings that influence the visual representation of the whole program.")); 39 public final JPanel connection = createPreferenceTab("connection", I18n.tr("Connection Settings"), I18n.tr("Connection Settings tothe OSM server."));39 public final JPanel connection = createPreferenceTab("connection", I18n.tr("Connection Settings"), I18n.tr("Connection Settings for the OSM server.")); 40 40 public final JPanel map = createPreferenceTab("map", I18n.tr("Map Settings"), I18n.tr("Settings for the map projection and data interpretation.")); 41 41 -
src/org/openstreetmap/josm/gui/preferences/ServerAccessPreference.java
r168 r283 32 32 osmDataPassword.setText(Main.pref.get("osm-server.password")); 33 33 34 osmDataServer.setToolTipText(tr("The base URL tothe OSM server (REST API)"));34 osmDataServer.setToolTipText(tr("The base URL for the OSM server (REST API)")); 35 35 osmDataUsername.setToolTipText(tr("Login name (email) to the OSM account.")); 36 36 osmDataPassword.setToolTipText(tr("Login password to the OSM account. Leave blank to not store any password.")); -
src/org/openstreetmap/josm/io/OsmReader.java
r276 r283 139 139 } catch (NullPointerException x) { 140 140 x.printStackTrace(); // SAXException does not chain correctly 141 throw new SAXException(tr("NullPointerException . Possiblesome missing tags."), x);141 throw new SAXException(tr("NullPointerException, Possibly some missing tags."), x); 142 142 } 143 143 } … … 174 174 } catch (ParseException e) { 175 175 e.printStackTrace(); 176 throw new SAXException(tr("Couldn' 't read time format \"{0}\".",time));176 throw new SAXException(tr("Couldn't read time format \"{0}\".",time)); 177 177 } 178 178 } … … 202 202 String s = atts.getValue(value); 203 203 if (s == null) 204 throw new SAXException(tr("Missing required att irbute \"{0}\".",value));204 throw new SAXException(tr("Missing required attribute \"{0}\".",value)); 205 205 return Long.parseLong(s); 206 206 } -
src/org/openstreetmap/josm/io/RawCsvReader.java
r212 r283 60 60 if (!format.contains("lat") || !format.contains("lon")) { 61 61 if (Main.pref.get("csv.importstring").equals("")) 62 throw new SAXException(tr("Format string in data is incomplete or not found. Try setting an manual format string in Preferences."));62 throw new SAXException(tr("Format string in data is incomplete or not found. Try setting an manual format string in preferences.")); 63 63 throw new SAXException(tr("Format string is incomplete. Need at least 'lat' and 'lon' specification")); 64 64 } … … 81 81 st.nextToken(); 82 82 else 83 throw new SAXException(tr("Unknown data type: \"{0}\".",token)+(Main.pref.get("csv.importstring").equals("") ? (" "+tr("Maybe add a nformat string in preferences.")) : ""));83 throw new SAXException(tr("Unknown data type: \"{0}\".",token)+(Main.pref.get("csv.importstring").equals("") ? (" "+tr("Maybe add a format string in preferences.")) : "")); 84 84 } 85 85 data.add(new GpsPoint(new LatLon(lat, lon), time)); -
src/org/openstreetmap/josm/io/RawGpsReader.java
r215 r283 61 61 double lon = Double.parseDouble(atts.getValue("lon")); 62 62 if (Math.abs(lat) > 90) 63 throw new SAXException(tr("Data error: lat value \"{0}\" is out of bound .", lat));63 throw new SAXException(tr("Data error: lat value \"{0}\" is out of bounds.", lat)); 64 64 if (Math.abs(lon) > 180) 65 throw new SAXException(tr("Data error: lon value \"{0}\" is out of bound .", lon));65 throw new SAXException(tr("Data error: lon value \"{0}\" is out of bounds.", lon)); 66 66 currentLatLon = new LatLon(lat, lon); 67 67 } catch (NumberFormatException e) { -
src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r267 r283 45 45 PluginProxy plugin = ((PluginException)e).plugin; 46 46 if (plugin != null && !plugin.misbehaving) { 47 JOptionPane.showMessageDialog(Main.parent, tr("The plugin {0} thr owed an exception: {1}\nIt may be outdated. Please contact the plugin's autor.\nThis message will not shown again until JOSM is restarted.", plugin.info.name, e.getMessage()));47 JOptionPane.showMessageDialog(Main.parent, tr("The plugin {0} threw an exception: {1}\nIt may be outdated. Please contact the plugin's author.\nThis message will not shown again until JOSM is restarted.", plugin.info.name, e.getMessage())); 48 48 plugin.misbehaving = true; 49 49 return; … … 62 62 int answer = JOptionPane.showConfirmDialog( 63 63 Main.parent, 64 tr("An unexpected exception occ oured, that may come from in the ''{0}'' plugin.", pluginName)+"\n"+64 tr("An unexpected exception occurred, that may come from in the ''{0}'' plugin.", pluginName)+"\n"+ 65 65 (author != null ? tr("According to the information within the plugin, the author is {0}.", author) : "")+"\n"+ 66 66 tr("Should the plugin be disabled?"), … … 87 87 88 88 Object[] options = new String[]{tr("Do nothing"), tr("Report Bug")}; 89 int answer = JOptionPane.showOptionDialog(Main.parent, tr("An unexpected exception occ oured.\n\n" +89 int answer = JOptionPane.showOptionDialog(Main.parent, tr("An unexpected exception occurred.\n\n" + 90 90 "This is always a coding error. If you are running the latest\n" + 91 "version of JOSM, please consider be kind and file a bug report."),91 "version of JOSM, please consider being kind and file a bug report."), 92 92 tr("Unexpected Exception"), JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE, 93 93 null, options, options[0]);
Note:
See TracChangeset
for help on using the changeset viewer.