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


Ignore:
Timestamp:
2026-01-30T11:59:11+01:00 (13 days ago)
Author:
stoecker
Message:

i18n update, add lo, lv, nn

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r19050 r19479  
    609609        }
    610610        if (layer.format == null) {
    611             // no format found - it's mandatory parameter - can't use this layer
     611            // no format found - parameter is mandatory - cannot use this layer
    612612            Logging.warn(tr("Can''t use layer {0} because no supported formats were found. Layer is available in formats: {1}",
    613613                    layer.getUserTitle(),
  • trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java

    r19228 r19479  
    307307            // It indicates a serious problem in datasets.
    308308            // For example, datasets can be fetched from different OSM servers or badly hand-modified.
    309             // We shouldn't merge that datasets.
     309            // We should not merge these datasets.
    310310            throw new DataIntegrityProblemException(tr("Conflict in ''visible'' attribute for object of type {0} with id {1}",
    311311                    target.getType(), target.getId()));
  • trunk/src/org/openstreetmap/josm/data/validation/routines/EmailValidator.java

    r18801 r19479  
    138138        }
    139139
    140         if (email.endsWith(".")) { // check this first - it's cheap!
     140        if (email.endsWith(".")) { // check this first - it is cheap!
    141141            setErrorMessage(tr("E-mail address is invalid"));
    142142            return false;
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedNode.java

    r19295 r19479  
    6262    public void visitKeyValue(Tagged n, String key, String value) {
    6363        if (key.toLowerCase(Locale.ENGLISH).contains("fixme") || value.toLowerCase(Locale.ENGLISH).contains("fixme")) {
    64             /* translation note: don't translate quoted words */
     64            /* translation note: do not translate quoted words */
    6565            errors.add(TestError.builder(this, Severity.WARNING, UNTAGGED_NODE_FIXME)
    6666                    .message(ERROR_MESSAGE, marktr("Has tag containing ''fixme''"))
     
    7373        int code = 0;
    7474        if (key.startsWith("note") || key.startsWith("comment") || key.startsWith("description")) {
    75             /* translation note: don't translate quoted words */
     75            /* translation note: do not translate quoted words */
    7676            msg = marktr("Has key ''note'' or ''comment'' or ''description''");
    7777            code = UNTAGGED_NODE_NOTE;
    7878        } else if (key.startsWith("created_by")) {
    79             /* translation note: don't translate quoted words */
     79            /* translation note: do not translate quoted words */
    8080            msg = marktr("Has key ''created_by''");
    8181            code = UNTAGGED_NODE_CREATED_BY;
    8282        } else if (key.startsWith("watch")) {
    83             /* translation note: don't translate quoted words */
     83            /* translation note: do not translate quoted words */
    8484            msg = marktr("Has key ''watch''");
    8585            code = UNTAGGED_NODE_WATCH;
    8686        } else if (key.startsWith("source")) {
    87             /* translation note: don't translate quoted words */
     87            /* translation note: do not translate quoted words */
    8888            msg = marktr("Has key ''source''");
    8989            code = UNTAGGED_NODE_SOURCE;
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java

    r19334 r19479  
    574574
    575575        if (global) {
    576             // Setting waypoints for gpx layer doesn't make sense - waypoints are shown in marker layer that has different name - so show
    577             // this only for global config
     576            // Setting waypoints for gpx layer does not make sense - waypoints are shown in marker layer that has
     577            // different name - so show this only for global config
    578578
    579579            // waypointLabel
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r19345 r19479  
    998998                return newNotes.get(0);
    999999            }
    1000             // Shouldn't ever execute. Server will either respond with an error (caught elsewhere) or one note
     1000            // Should never execute. Server will either respond with an error (caught elsewhere) or one note
    10011001            throw new OsmTransferException(tr("Note upload failed"));
    10021002        } catch (SAXException | IOException e) {
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r19395 r19479  
    7676         * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt">Lithuanian</a>. */
    7777        MODE_LT,
     78        /** Special mode for
     79         * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lv">Latvian</a>. */
     80        MODE_LV,
    7881        /** Special mode for
    7982         * <a href="https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ru">Russian</a>. */
     
    133136        languages.put("km", PluralMode.MODE_NONE);
    134137        languages.put("lt", PluralMode.MODE_LT);
     138        languages.put("lo", PluralMode.MODE_NONE);
     139        languages.put("lv", PluralMode.MODE_LV);
    135140        languages.put("mr", PluralMode.MODE_NOTONE);
    136141        languages.put("nb", PluralMode.MODE_NOTONE);
    137142        languages.put("nl", PluralMode.MODE_NOTONE);
     143        languages.put("nn", PluralMode.MODE_NOTONE);
    138144        languages.put("pl", PluralMode.MODE_PL);
    139145        languages.put("pt", PluralMode.MODE_NOTONE);
     
    678684            return ((n % 10) == 1) && ((n % 100) != 11) ? 0 : (((n % 10) >= 2)
    679685                    && (((n % 100) < 10) || ((n % 100) >= 20)) ? 1 : 2);
     686        case MODE_LV:
     687            return ((n % 10) == 1) && ((n % 100) != 11) ? 0 : (n != 0) ? 1 : 2;
    680688        case MODE_RU:
    681689            return (((n % 10) == 1) && ((n % 100) != 11)) ? 0 : (((((n % 10) >= 2)
  • trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java

    r19101 r19479  
    6767            }
    6868            switch (code) {
    69                 case "nb":          /* OSM-Wiki has "no", but no "nb" */
     69                case "nb": case "nn":     /* OSM-Wiki has "no", but no "nb" */
    7070                    return "No:";
    7171                case "sr@latin":    /* OSM-Wiki has "Sr-latn" and not Sr-latin */
Note: See TracChangeset for help on using the changeset viewer.