Changeset 16072 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-03-08T10:37:59+01:00 (5 years ago)
Author:
simon04
Message:

see #18643 - I18n: improve plural forms

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r16068 r16072  
    44import static org.openstreetmap.josm.tools.I18n.marktr;
    55import static org.openstreetmap.josm.tools.I18n.tr;
     6import static org.openstreetmap.josm.tools.I18n.trn;
    67
    78import java.awt.GridBagConstraints;
     
    303304
    304305        if (errorSources.length() > 0)
    305             throw new IOException(tr("Could not access data file(s):\n{0}", errorSources));
     306            throw new IOException(trn(
     307                    "Could not access data file:\n{0}",
     308                    "Could not access data files:\n{0}", errorSources.length(), errorSources));
    306309    }
    307310
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r15707 r16072  
    434434         */
    435435        ZoomToListSelection() {
    436             putValue(NAME, tr("Zoom to selected element(s)"));
    437             putValue(SHORT_DESCRIPTION, tr("Zoom to selected element(s)"));
    438436            new ImageProvider("dialogs/autoscale", "selection").getResource().attachImageIcon(this, true);
    439437            updateEnabledState();
     
    452450
    453451        protected void updateEnabledState() {
     452            String name = trn("Zoom to selected element", "Zoom to selected elements", model.getSelected().size());
     453            putValue(NAME, name);
     454            putValue(SHORT_DESCRIPTION, name);
    454455            setEnabled(!model.isSelectionEmpty());
    455456        }
Note: See TracChangeset for help on using the changeset viewer.