Ticket #6698: patch.diff

File patch.diff, 5.2 KB (added by Casiope, 15 years ago)
  • src/org/openstreetmap/josm/data/Version.java

    ### Eclipse Workspace Patch 1.0
    #P JOSM
     
    109109                version = Integer.parseInt(value);
    110110            } catch(NumberFormatException e) {
    111111                version = 0;
    112                 System.err.println(tr("Warning: unexpected JOSM version number in revision file, value is ''{0}''", value));
     112                System.err.println(tr("Warning: Unexpected JOSM version number in revision file, value is ''{0}''", value));
    113113            }
    114114        } else {
    115115            version = JOSM_UNKNOWN_VERSION;
  • src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

     
    8888                dataSet = reader.parseOsm(progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false));
    8989            } catch(Exception e) {
    9090                if (isCanceled()) {
    91                     System.out.println(tr("Ignoring exception because download has been canceled. Exception was: {0}", e.toString()));
     91                    System.out.println(tr("Warning: Ignoring exception because download has been canceled. Exception: {0}", e.toString()));
    9292                    return;
    9393                }
    9494                if (e instanceof OsmTransferCanceledException) {
  • src/org/openstreetmap/josm/actions/Map_Rectifier_WMSmenuAction.java

     
    7474                        KeyEvent.VK_R,
    7575                        Shortcut.GROUP_NONE),
    7676                        true
    77         );
     77                );
    7878
    7979        // Add default services
    8080        services.add(
    8181                new RectifierService("Metacarta Map Rectifier",
    8282                        "http://labs.metacarta.com/rectifier/",
    8383                        "http://labs.metacarta.com/rectifier/wms.cgi?id=__s__&srs=EPSG:4326"
    84                         + "&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png&",
    85                         // This matches more than the "classic" WMS link, so users can pretty much
    86                         // copy any link as long as it includes the ID
    87                         "labs\\.metacarta\\.com/(?:.*?)(?:/|=)([0-9]+)(?:\\?|/|\\.|$)",
    88                 "^[0-9]+$")
    89         );
     84                                + "&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png&",
     85                                // This matches more than the "classic" WMS link, so users can pretty much
     86                                // copy any link as long as it includes the ID
     87                                "labs\\.metacarta\\.com/(?:.*?)(?:/|=)([0-9]+)(?:\\?|/|\\.|$)",
     88                        "^[0-9]+$")
     89                );
    9090        services.add(
    9191                // TODO: Change all links to mapwarper.net once the project has moved.
    9292                // The RegEx already matches the new URL and old URLs will be forwarded
     
    9494                new RectifierService("Geothings Map Warper",
    9595                        "http://warper.geothings.net/",
    9696                        "http://warper.geothings.net/maps/wms/__s__?request=GetMap&version=1.1.1"
    97                         + "&styles=&format=image/png&srs=epsg:4326&exceptions=application/vnd.ogc.se_inimage&",
    98                         // This matches more than the "classic" WMS link, so users can pretty much
    99                         // copy any link as long as it includes the ID
    100                         "(?:mapwarper\\.net|warper\\.geothings\\.net)/(?:.*?)/([0-9]+)(?:\\?|/|\\.|$)",
    101                 "^[0-9]+$")
    102         );
     97                                + "&styles=&format=image/png&srs=epsg:4326&exceptions=application/vnd.ogc.se_inimage&",
     98                                // This matches more than the "classic" WMS link, so users can pretty much
     99                                // copy any link as long as it includes the ID
     100                                "(?:mapwarper\\.net|warper\\.geothings\\.net)/(?:.*?)/([0-9]+)(?:\\?|/|\\.|$)",
     101                        "^[0-9]+$")
     102                );
    103103
    104104        // This service serves the purpose of "just this once" without forcing the user
    105105        // to commit the link to the preferences
     
    207207
    208208            // and display an error message. The while(true) ensures that the dialog pops up again
    209209            JOptionPane.showMessageDialog(Main.parent,
    210                     tr("Couldn''t match the entered link or id to the selected service. Please try again."),
     210                    tr("Could not match the entered link or id to the selected service. Please try again."),
    211211                    tr("No valid WMS URL or id"),
    212212                    JOptionPane.ERROR_MESSAGE);
    213213            diag.setVisible(true);