Changeset 865 in josm


Ignore:
Timestamp:
2008-08-24T23:06:24+02:00 (16 years ago)
Author:
stoecker
Message:

I18N fixes for Lambert projection patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Lambert.java

    r864 r865  
    106106                        if (p.lat() != 0 && Math.abs(p.lat()) != Projection.MAX_LAT
    107107                                        && p.lon() != 0 && Math.abs(p.lon()) != Projection.MAX_LON
    108                                 && dontDisplayErrors == false) {
    109                                 JOptionPane.showMessageDialog(Main.parent, 
    110                                                 tr("The projection \"" + this.toString() + "\" is designed for\n"
    111                                         + "latitudes between 46.1 and 57 degrees only.\n"
    112                                         + "Use another projection system if you are not using\n"
    113                                         + "a french WMS server.\n"
    114                                         + "Do not upload any data after this message."));
     108                                        && dontDisplayErrors == false) {
     109                                JOptionPane.showMessageDialog(Main.parent,
     110                                                tr("The projection \"{0}\" is designed for\n"
     111                                                + "latitudes between 46.1° and 57° only.\n"
     112                                                + "Use another projection system if you are not using\n"
     113                                                + "a french WMS server.\n"
     114                                                + "Do not upload any data after this message.", this.toString()));
    115115                                dontDisplayErrors = true;
    116116                        }
     
    126126                                                                        tr("IMPORTANT : data positionned far away from\n"
    127127                                                                                        + "the current Lambert zone limits.\n"
    128                                                                                 + "Do not upload any data after this message.\n"
     128                                                                                        + "Do not upload any data after this message.\n"
    129129                                                                                        + "Undo your last action, Save your work \n"
    130130                                                                                        + "and Start a new layer on the new zone."));
     
    132132                                        dontDisplayErrors = true;
    133133                                } else {
    134                                         System.out.println("temporarily extends Lambert zone " + layoutZone + " projection at lat,lon:"
    135                                                 + lt + "," + lg);
     134                                        System.out.println("temporarily extend Lambert zone " + layoutZone + " projection at lat,lon:"
     135                                                        + lt + "," + lg);
    136136                                }
    137137                        }
     
    156156
    157157        @Override public String toString() {
    158                 return "Lambert Zone (France)";
     158                return tr("Lambert Zone (France)");
    159159        }
    160160
     
    293293                        s2 *= s2;
    294294                        double l = Math.atan((Z / norm)
    295                                         / (1.0 - (ell.a * ell.e2 * Math.cos(lt) / (norm * Math.sqrt(1.0 - ell.e2 * s2)))));
     295                                / (1.0 - (ell.a * ell.e2 * Math.cos(lt) / (norm * Math.sqrt(1.0 - ell.e2 * s2)))));
    296296                        delta = Math.abs(l - lt);
    297297                        lt = l;
Note: See TracChangeset for help on using the changeset viewer.