Ticket #4339: more-messageformat-fixes.diff

File more-messageformat-fixes.diff, 6.7 KB (added by andre68@…, 16 years ago)

Some more fixes, where I'm not sure, if they are necessary.

  • src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java

     
    939939
    940940        public void fillInQuery(ChangesetQuery query) {
    941941            if (!isValidChangesetQuery())
    942                 throw new IllegalStateException(tr("Can''t restrict the changeset query to a specific bounding box. The input is invalid."));
     942                throw new IllegalStateException(tr("Can't restrict the changeset query to a specific bounding box. The input is invalid."));
    943943            query.inBbox(getBoundingBox());
    944944        }
    945945
  • src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java

     
    287287        tfProxySocksPort.setText(Main.pref.get(PROXY_SOCKS_PORT, ""));
    288288
    289289        if (pp.equals(ProxyPolicy.USE_SYSTEM_SETTINGS) && ! DefaultProxySelector.willJvmRetrieveSystemProxies()) {
    290             System.err.println(tr("Warning: JOSM is configured to use proxies from the system setting, but the JVM is not configured to retrieve them. Resetting preferences to ''No proxy''"));
     290            System.err.println(tr("Warning: JOSM is configured to use proxies from the system setting, but the JVM is not configured to retrieve them. Resetting preferences to 'No proxy'"));
    291291            pp = ProxyPolicy.NO_PROXY;
    292292            rbProxyPolicy.get(pp).setSelected(true);
    293293        }
  • src/org/openstreetmap/josm/io/ChangesetQuery.java

     
    358358            for (String k: queryParams.keySet()) {
    359359                if (k.equals("uid")) {
    360360                    if (queryParams.containsKey("display_name"))
    361                         throw new ChangesetQueryUrlException(tr("Can''t create a changeset query including both the query parameters ''uid'' and ''display_name''"));
     361                        throw new ChangesetQueryUrlException(tr("Can't create a changeset query including both the query parameters 'uid' and 'display_name'"));
    362362                    csQuery.forUser(parseUid(queryParams.get("uid")));
    363363                } else if (k.equals("display_name")) {
    364364                    if (queryParams.containsKey("uid"))
    365                         throw new ChangesetQueryUrlException(tr("Can''t create a changeset query including both the query parameters ''uid'' and ''display_name''"));
     365                        throw new ChangesetQueryUrlException(tr("Can't create a changeset query including both the query parameters 'uid' and 'display_name'"));
    366366                    csQuery.forUser(queryParams.get("display_name"));
    367367                } else if (k.equals("open")) {
    368368                    boolean b = parseBoolean(queryParams.get(k), "open");
  • src/org/openstreetmap/josm/io/OsmChangesetContentParser.java

     
    238238                    || qName.equals("way")
    239239                    || qName.equals("relation")) {
    240240                if (currentModificationType == null) {
    241                     throwException(tr("Illegal document structure. Found node, way, or relation outside of ''create'', ''modify'', or ''delete''."));
     241                    throwException(tr("Illegal document structure. Found node, way, or relation outside of 'create', 'modify', or 'delete'."));
    242242                }
    243243                data.put(currentPrimitive, currentModificationType);
    244244            } else if (qName.equals("osmChange")) {
  • src/org/openstreetmap/josm/io/DefaultProxySelector.java

     
    149149        switch(proxyPolicy) {
    150150        case USE_SYSTEM_SETTINGS:
    151151            if (!JVM_WILL_USE_SYSTEM_PROXIES) {
    152                 System.err.println(tr("Warning: the JVM is not configured to lookup proxies from the system settings. The property ''java.net.useSystemProxies'' was missing at startup time. Won't use a proxy."));
     152                System.err.println(tr("Warning: the JVM is not configured to lookup proxies from the system settings. The property 'java.net.useSystemProxies' was missing at startup time. Won't use a proxy."));
    153153                return Collections.singletonList(Proxy.NO_PROXY);
    154154            }
    155155            // delegate to the former proxy selector
  • src/org/openstreetmap/josm/data/Version.java

     
    137137    public void init() {
    138138        URL u = Main.class.getResource("/REVISION");
    139139        if (u == null) {
    140             System.err.println(tr("Warning: the revision file ''/REVISION'' is missing."));
     140            System.err.println(tr("Warning: the revision file '/REVISION' is missing."));
    141141            version = 0;
    142142            revision = "";
    143143            return;
  • src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

     
    10371037        if (other == null)
    10381038            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null", "other"));
    10391039        if (other.isNew() ^ isNew())
    1040             throw new DataIntegrityProblemException(tr("Can''t merge because either of the participating primitives is new and the other is not"));
     1040            throw new DataIntegrityProblemException(tr("Can't merge because either of the participating primitives is new and the other is not"));
    10411041        if (! other.isNew() && other.getId() != id)
    10421042            throw new DataIntegrityProblemException(tr("Can''t merge primitives with different ids. This id is {0}, the other is {1}", id, other.getId()));
    10431043