Changeset 35725 in osm


Ignore:
Timestamp:
2021-03-13T13:51:23+01:00 (3 years ago)
Author:
Don-vip
Message:

see #20341 - see #20046 - fix i18n string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java

    r35715 r35725  
    116116
    117117        if (notSupportedFilesCount > 0) {
    118             JLabel warn = new JLabel(trn("The file \"{0}\" can not be updated. Only JPEG and TIFF images are supported.",
    119                     "{1} files can not be updated. Only JPEG and TIFF images are supported.", notSupportedFilesCount, notSupportedName, Integer.toString(notSupportedFilesCount)));
     118            JLabel warn = new JLabel(notSupportedFilesCount == 1
     119                    ? tr("The file \"{0}\" can not be updated. Only JPEG and TIFF images are supported.", notSupportedName)
     120                    : tr("{0} files can not be updated. Only JPEG and TIFF images are supported.", notSupportedFilesCount));
    120121            warn.setForeground(Color.RED);
    121122            cont.add(warn, GBC.eol());
Note: See TracChangeset for help on using the changeset viewer.