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

i18n fixes

Location:
applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/gui/GuiContainer.java

    r26192 r26509  
    33import static java.lang.Math.sqrt;
    44import static org.openstreetmap.josm.plugins.turnlanes.gui.GuiUtil.locs;
     5import static org.openstreetmap.josm.tools.I18n.tr;
    56
    67import java.awt.BasicStroke;
     
    146147        }
    147148       
    148         throw new IllegalArgumentException("No such lane.");
     149        throw new IllegalArgumentException(tr("No such lane."));
    149150    }
    150151   
  • applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/gui/JunctionPane.java

    r26192 r26509  
    11package org.openstreetmap.josm.plugins.turnlanes.gui;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import java.awt.AlphaComposite;
     
    333335                && UnexpectedDataException.Kind.MISSING_TAG.format("lanes").equals(e.getMessage())) {
    334336           
    335             error.setText("<html>The number of lanes is not specified for one or more roads;"
    336                     + " please add missing lanes tags.</html>");
     337            error.setText(tr("<html>The number of lanes is not specified for one or more roads;"
     338                    + " please add missing lanes tags.</html>"));
    337339        } else {
    338340            displayError((RuntimeException) e);
     
    341343   
    342344    private void displayError(RuntimeException e) {
    343         error.setText("<html>An error occured while constructing the model."
    344                 + " Please run the validator to make sure the data is consistent.<br><br>Error: " + e.getMessage()
    345                 + "</html>");
     345        error.setText(tr("<html>An error occurred while constructing the model."
     346                + " Please run the validator to make sure the data is consistent."
     347                + "<br><br>Error: {0}</html>", e.getMessage()));
    346348    }
    347349   
Note: See TracChangeset for help on using the changeset viewer.