Ignore:
Timestamp:
2008-10-20T22:45:12+02:00 (16 years ago)
Author:
mfloryan
Message:

Enhanced translations of UtilsPlugin to cater for plurals better.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java

    r10829 r11348  
    22
    33import static org.openstreetmap.josm.tools.I18n.tr;
     4import static org.openstreetmap.josm.tools.I18n.trn;
    45
    56import java.awt.event.ActionEvent;
     
    8182            return;
    8283        } else if (ways > 10) {
    83             int option = JOptionPane.showConfirmDialog(Main.parent, tr(
    84                     "The selection contains {0} ways. Are you sure you want to simplify them all?", ways),
     84                //TRANSLATION: Although for English the use of trn is needless it is important for other languages
     85            int option = JOptionPane.showConfirmDialog(Main.parent, trn(
     86                    "The selection contains {0} way. Are you sure you want to simplify them all?",
     87                    "The selection contains {0} ways. Are you sure you want to simplify them all?",
     88                    ways,ways),
    8589                    tr("Are you sure?"), JOptionPane.YES_NO_OPTION);
    8690            if (option != JOptionPane.YES_OPTION)
     
    129133            cmds.add(new ChangeCommand(w, wnew));
    130134            cmds.add(new DeleteCommand(delNodes));
    131             Main.main.undoRedo.add(new SequenceCommand(tr("Simplify Way (remove {0} nodes)", delNodes.size()), cmds));
     135            Main.main.undoRedo.add(new SequenceCommand(trn("Simplify Way (remove {0} node)", "Simplify Way (remove {0} nodes)", delNodes.size(), delNodes.size()), cmds));
    132136            Main.map.repaint();
    133137        }
Note: See TracChangeset for help on using the changeset viewer.