Changeset 2848 in josm
- Timestamp:
- 2010-01-13T20:13:40+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/io
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java
r2711 r2848 63 63 OsmPrimitive p = layer.data.getPrimitiveById(id, type); 64 64 if (p == null) 65 throw new IllegalStateException(tr("Failed to update primitive with id {0} because current edit layer does n't include such a primitive", id));65 throw new IllegalStateException(tr("Failed to update primitive with id {0} because current edit layer does not include such a primitive", id)); 66 66 Main.worker.execute(new UpdatePrimitivesTask(layer, Collections.singleton(p))); 67 67 } … … 192 192 */ 193 193 protected void handleUploadConflictForClosedChangeset(long changsetId, Date d) { 194 String msg = tr("<html>Uploading <strong>failed</strong> because you ''ve been using<br>"194 String msg = tr("<html>Uploading <strong>failed</strong> because you have been using<br>" 195 195 + "changeset {0} which was already closed at {1}.<br>" 196 196 + "Please upload again with a new or an existing open changeset.</html>", -
trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java
r2828 r2848 238 238 tfPassword.setToolTipText(tr("Please enter the password name of your OSM account")); 239 239 lblHeading.setText( 240 tr("<html>Authenticating at the OSM API ''{0}'' failed. Please enter a valid username and a valid password.</html>",241 OsmApi.getOsmApi().getBaseUrl()) );240 "<html>" + tr("Authenticating at the OSM API ''{0}'' failed. Please enter a valid username and a valid password.", 241 OsmApi.getOsmApi().getBaseUrl()) + "</html>"); 242 242 lblWarning.setText(tr("Warning: The password is transferred unencrypted.")); 243 243 } … … 255 255 tfPassword.setToolTipText(tr("Please enter the password for authenticating at your proxy server")); 256 256 lblHeading.setText( 257 tr("<html>Authenticating at the HTTP proxy ''{0}'' failed. Please enter a valid username and a valid password.</html>",258 System.getProperty("http.proxyHost") + ":" + System.getProperty("http.proxyPort")) );259 lblWarning.setText( tr("<html>Warning: depending on the authentication method the proxy server uses the password may be transferred unencrypted.</html>"));257 "<html>" + tr("Authenticating at the HTTP proxy ''{0}'' failed. Please enter a valid username and a valid password.", 258 System.getProperty("http.proxyHost") + ":" + System.getProperty("http.proxyPort")) + "</html>"); 259 lblWarning.setText("<html>" + tr("Warning: depending on the authentication method the proxy server uses the password may be transferred unencrypted.") + "</html>"); 260 260 } 261 261 -
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r2789 r2848 61 61 JOptionPane.showMessageDialog( 62 62 JOptionPane.getFrameForComponent(parent), 63 tr("<html>Could not retrieve the list of your open changesets because<br>" 64 + "JOSM doesn't know your identity.<br>" 65 + "You've either chosen to work anonymously or you are not entitled<br>" 66 + "to know the identity of the user on whose behalf you are working." 67 + "</html>" 68 ), 63 "<html>" + tr("Could not retrieve the list of your open changesets because<br>" 64 + "JOSM does not know your identity.<br>" 65 + "You have either chosen to work anonymously or you are not entitled<br>" 66 + "to know the identity of the user on whose behalf you are working.") 67 + "</html>", 69 68 tr("Missing user identity"), 70 69 JOptionPane.ERROR_MESSAGE -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerInfo.java
r2512 r2848 5 5 6 6 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 7 import org.openstreetmap.josm.tools.CheckParameterUtil; 8 7 9 import static org.openstreetmap.josm.tools.I18n.tr; 8 10 … … 28 30 */ 29 31 public SaveLayerInfo(OsmDataLayer layer) { 30 if (layer == null) 31 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "layer")); 32 CheckParameterUtil.ensureParameterNotNull(layer, "layer"); 32 33 this.layer = layer; 33 34 this.doSaveToFile = layer.requiresSaveToFile(); -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerTask.java
r2512 r2848 7 7 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 8 8 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 9 import org.openstreetmap.josm.tools.CheckParameterUtil; 9 10 10 11 /** … … 35 36 */ 36 37 protected SaveLayerTask(SaveLayerInfo layerInfo, ProgressMonitor monitor) { 37 if (layerInfo == null) 38 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "layerInfo")); 38 CheckParameterUtil.ensureParameterNotNull(layerInfo, "layerInfo"); 39 39 if (monitor == null) { 40 40 monitor = NullProgressMonitor.INSTANCE; -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r2599 r2848 487 487 int numProblems = model.getNumCancel() + model.getNumFailed(); 488 488 if (numProblems == 0) return; 489 String msg = tr (489 String msg = trn( 490 490 "<html>An upload and/or save operation of one layer with modifications<br>" 491 491 + "was cancelled or has failed.</html>", -
trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java
r2711 r2848 20 20 import org.openstreetmap.josm.io.OsmServerWriter; 21 21 import org.openstreetmap.josm.io.OsmTransferException; 22 import org.openstreetmap.josm.tools.CheckParameterUtil; 22 23 23 24 /** … … 56 57 */ 57 58 public UploadLayerTask(UploadStrategySpecification strategy, OsmDataLayer layer, ProgressMonitor monitor, Changeset changeset) { 58 if (layer == null) 59 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "layer")); 60 if (strategy == null) 61 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "strategy")); 59 CheckParameterUtil.ensureParameterNotNull(layer, "layer"); 60 CheckParameterUtil.ensureParameterNotNull(strategy, "strategy"); 62 61 if (monitor == null) { 63 62 monitor = NullProgressMonitor.INSTANCE; -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
r2801 r2848 322 322 lbl.setIcon(ImageProvider.get("warning-small.png")); 323 323 lbl.setText(tr("Upload in one request not possible (too many objects to upload)")); 324 lbl.setToolTipText(tr("<html>Can ''t upload {0} objects in one request because the<br>"324 lbl.setToolTipText(tr("<html>Cannot upload {0} objects in one request because the<br>" 325 325 + "max. changeset size {1} on server ''{2}'' is exceeded.</html>", 326 326 numUploadedObjects,
Note:
See TracChangeset
for help on using the changeset viewer.