Changeset 2733 in josm for trunk/src/org
- Timestamp:
- 2010-01-03T13:29:59+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r2720 r2733 579 579 new String[] {tr("Cancel"), tr("Delete")}) 580 580 .setButtonIcons(new String[] {"cancel.png", "dialogs/delete.png"}) 581 .setContent(new JLabel(tr("<html><h3>Delete the file {0} from disk?<p>The image file will be permanently lost!"581 .setContent(new JLabel(tr("<html><h3>Delete the file {0} from disk?<p>The image file will be permanently lost!</h3></html>" 582 582 ,toDelete.file.getName()), ImageProvider.get("dialogs/geoimage/deletefromdisk"),SwingConstants.LEFT)) 583 583 .toggleEnable("geoimage.deleteimagefromdisk") -
trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
r2711 r2733 81 81 try { 82 82 port = Integer.parseInt(value); 83 } catch(NumberFormatException e){ 84 System.err.println(tr("Unexpected format for port number in in preference ''{0}''. Got ''{1}''. Proxy won't be used.", property, value)); 83 } catch (NumberFormatException e) { 84 System.err.println(tr("Unexpected format for port number in in preference ''{0}''. Got ''{1}''.", property, value)); 85 System.err.println(tr("The proxy will not be used.")); 85 86 return 0; 86 87 } 87 88 if (port <= 0 || port > 65535) { 88 System.err.println(tr("Illegal port number in preference ''{0}''. Got {1}. Proxy won't be used.", property, port)); 89 System.err.println(tr("Illegal port number in preference ''{0}''. Got {1}.", property, port)); 90 System.err.println(tr("The proxy will not be used.")); 89 91 return 0; 90 92 } … … 99 101 String value = Main.pref.get(ProxyPreferences.PROXY_POLICY); 100 102 if (value.length() == 0) { 101 System.err.println(tr("Warning: no preference ''{0}'' found. Will use no proxy.", ProxyPreferences.PROXY_POLICY)); 103 System.err.println(tr("Warning: no preference ''{0}'' found.", ProxyPreferences.PROXY_POLICY)); 104 System.err.println(tr("The proxy will not be used.")); 102 105 proxyPolicy = ProxyPolicy.NO_PROXY; 103 106 } else { … … 115 118 httpProxySocketAddress = null; 116 119 if (proxyPolicy.equals(ProxyPolicy.USE_HTTP_PROXY)) { 117 System.err.println(tr("Warning: Unexpected parameters for HTTP proxy. Got host ''{0}'' and port ''{1}''. Proxy won't be used", host, port)); 120 System.err.println(tr("Warning: Unexpected parameters for HTTP proxy. Got host ''{0}'' and port ''{1}''.", host, port)); 121 System.err.println(tr("The proxy will not be used.")); 118 122 } 119 123 } … … 126 130 socksProxySocketAddress = null; 127 131 if (proxyPolicy.equals(ProxyPolicy.USE_SOCKS_PROXY)) { 128 System.err.println(tr("Warning: Unexpected parameters for SOCKS proxy. Got host ''{0}'' and port ''{1}''. Proxy won't be used", host, port)); 132 System.err.println(tr("Warning: Unexpected parameters for SOCKS proxy. Got host ''{0}'' and port ''{1}''.", host, port)); 133 System.err.println(tr("The proxy will not be used.")); 129 134 } 130 135 }
Note:
See TracChangeset
for help on using the changeset viewer.