Ignore:
Timestamp:
2011-08-11T00:45:56+02:00 (13 years ago)
Author:
stoecker
Message:

i18n fixes

Location:
applications/editors/josm/plugins/cadastre-fr
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/build.xml

    r26382 r26509  
    3232    <property name="ant.build.javac.target" value="1.5"/>
    3333    <property name="commit.message" value="Changed constructor for Plugin"/>
    34     <property name="plugin.main.version" value="4126"/>
     34    <property name="plugin.main.version" value="4310"/>
    3535    <target name="init">
    3636        <mkdir dir="${plugin.build.dir}"/>
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java

    r26228 r26509  
    2626
    2727public class CadastreInterface {
    28     public boolean downloadCancelled = false;
     28    public boolean downloadCanceled = false;
    2929    public HttpURLConnection urlConn = null;
    3030
     
    7676            interfaceRef = null;
    7777        // open the session with the French Cadastre web front end
    78         downloadCancelled = false;
     78        downloadCanceled = false;
    7979        try {
    8080            if (cookie == null || isCookieExpired) {
     
    306306                    // list of values parsed in listOfFeuilles (list all non-georeferenced images)
    307307                    lines = getFeuillesList();
    308                     if (!downloadCancelled) {
     308                    if (!downloadCanceled) {
    309309                        parseFeuillesList(lines);
    310310                        if (listOfFeuilles.size() > 0) {
     
    567567            //urlConn.disconnect();
    568568        }
    569         downloadCancelled = true;
     569        downloadCanceled = true;
    570570        lastWMSLayerName = null;
    571571    }
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java

    r26228 r26509  
    256256        if (!alreadyRedefined) {
    257257            int reply = JOptionPane.showConfirmDialog(null,
    258                     tr("Plugin cadastre-fr used traditionaly for grabbing the key shortcut F11\n"+
    259                     "which is currently allocated for full-screen switch by default\n"+
    260                     "Would you like to restore F11 for grab action ?"),
     258                    tr("Plugin cadastre-fr used traditionally the key shortcut F11 for grabbing,\n"+
     259                    "which is currently allocated for full-screen switch by default.\n"+
     260                    "Would you like to restore F11 for grab action?"),
    261261                    tr("Restore grab shortcut F11"),
    262262                    JOptionPane.YES_NO_OPTION);
     
    268268            }
    269269        } else
    270             System.out.println("shortcut F11 already redefined; do not change");
     270            System.out.println("Shortcut F11 already redefined; do not change.");
    271271
    272272        refreshMenu();
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java

    r26382 r26509  
    114114        // option to alter the original colors of the wms images
    115115        alterColors.setSelected(Main.pref.getBoolean("cadastrewms.alterColors", false));
    116         alterColors.setToolTipText(tr("Replace the original white background by the backgound color defined in JOSM preferences."));
     116        alterColors.setToolTipText(tr("Replace the original white background by the background color defined in JOSM preferences."));
    117117        cadastrewms.add(alterColors, GBC.eop().insets(0, 0, 0, 0));
    118118
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSPlanImage.java

    r25045 r26509  
    4545                        // till here
    4646                        dontGeoreference = true;
    47                     } else if (wmsLayer.grabber.getWmsInterface().downloadCancelled){
     47                    } else if (wmsLayer.grabber.getWmsInterface().downloadCanceled){
    4848                        // do nothing
    4949                    } else {
     
    6262                            // grab new images from wms server into active layer
    6363                            wmsLayer.grab(bounds);
    64                             if (wmsLayer.grabber.getWmsInterface().downloadCancelled) {
     64                            if (wmsLayer.grabber.getWmsInterface().downloadCanceled) {
    6565                                wmsLayer.clearImages();
    6666                                Main.map.mapView.repaint();
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java

    r25045 r26509  
    6868        wmsLayer.grabber.getWmsInterface().cancel();
    6969        if (wmsLayer != null)
    70             wmsLayer.grabThread.setCancelled(true);
     70            wmsLayer.grabThread.setCanceled(true);
    7171    }
    7272
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GrabThread.java

    r25045 r26509  
    1717public class GrabThread extends Thread {
    1818
    19     private boolean cancelled;
     19    private boolean canceled;
    2020
    2121    private CadastreGrabber grabber;
     
    8484                imagesToGrab.remove(0);
    8585                lockImagesToGrag.unlock();
    86                 if (cancelled) {
     86                if (canceled) {
    8787                    break;
    8888                } else {
     
    9393                    } catch (IOException e) {
    9494                        System.out
    95                                 .println("Download action cancelled by user or server did not respond");
    96                         setCancelled(true);
     95                                .println("Download action canceled by user or server did not respond");
     96                        setCanceled(true);
    9797                        break;
    9898                    } catch (OsmTransferException e) {
    9999                        System.out.println("OSM transfer failed");
    100                         setCancelled(true);
     100                        setCanceled(true);
    101101                        break;
    102102                    }
    103                     if (grabber.getWmsInterface().downloadCancelled) {
    104                         System.out.println("Download action cancelled by user");
    105                         setCancelled(true);
     103                    if (grabber.getWmsInterface().downloadcanceled) {
     104                        System.out.println("Download action canceled by user");
     105                        setCanceled(true);
    106106                        break;
    107107                    }
     
    125125                    } catch (NullPointerException e) {
    126126                        System.out.println("Layer destroyed. Cancel grab thread");
    127                         setCancelled(true);
     127                        setCanceled(true);
    128128                    }
    129129                }
     
    133133            currentGrabImage = null;
    134134            lockCurrentGrabImage.unlock();
    135             if (cancelled) {
     135            if (canceled) {
    136136                clearImagesToGrab();
    137                 cancelled = false;
     137                canceled = false;
    138138            }
    139139            if (wmsLayer.isRaster()) {
     
    207207    }
    208208   
    209     public boolean isCancelled() {
    210         return cancelled;
    211     }
    212 
    213     public void setCancelled(boolean cancelled) {
    214         this.cancelled = cancelled;
     209    public boolean isCanceled() {
     210        return canceled;
     211    }
     212
     213    public void setCanceled(boolean canceled) {
     214        this.canceled = canceled;
    215215    }
    216216
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java

    r26330 r26509  
    108108            Main.map.repaint();
    109109        } else if (wmsLayer.getImages().size() == 0) {
    110             // action cancelled or image loaded from cache (and already georeferenced)
     110            // action canceled or image loaded from cache (and already georeferenced)
    111111            actionInterrupted();
    112112        } else {
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java

    r26228 r26509  
    129129
    130130    public void grab(Bounds b) throws IOException {
    131         grabThread.setCancelled(false);
     131        grabThread.setCanceled(false);
    132132        grabThread.setGrabber(grabber);
    133133        // if it is the first layer, use the communeBBox as grab bbox (and not divided)
Note: See TracChangeset for help on using the changeset viewer.