Changeset 16068 in josm


Ignore:
Timestamp:
2020-03-08T09:25:00+01:00 (5 years ago)
Author:
simon04
Message:

fix #18752 - Remove i18n from debug logging strings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DownloadAlongAction.java

    r16066 r16068  
    1212import java.awt.geom.PathIterator;
    1313import java.awt.geom.Rectangle2D;
     14import java.text.MessageFormat;
    1415import java.util.ArrayList;
    1516import java.util.Collection;
     
    161162        intermediateNodes.add(p2);
    162163        if (p1 != null && p2.greatCircleDistance(p1) > bufferDist) {
    163             Double d = p2.greatCircleDistance(p1) / bufferDist;
    164             int nbNodes = d.intValue();
     164            double d = p2.greatCircleDistance(p1) / bufferDist;
     165            int nbNodes = (int) d;
    165166            if (Logging.isDebugEnabled()) {
    166                 Logging.debug(tr("{0} intermediate nodes to download.", nbNodes));
    167                 Logging.debug(tr("between {0} {1} and {2} {3}", p2.lat(), p2.lon(), p1.lat(), p1.lon()));
     167                Logging.debug(MessageFormat.format("{0} intermediate nodes to download between {1} and {2}", nbNodes, p2, p1));
    168168            }
    169169            double latStep = (p2.lat() - p1.lat()) / (nbNodes + 1);
  • trunk/src/org/openstreetmap/josm/data/osm/DatasetConsistencyTest.java

    r15755 r16068  
    189189            StackTraceElement item = Thread.currentThread().getStackTrace()[2];
    190190            String operation = getClass().getSimpleName() + '.' + item.getMethodName();
    191             Logging.debug(tr("Test ''{0}'' completed in {1}",
     191            Logging.debug(tr("{0} completed in {1}",
    192192                    operation, stopwatch));
    193193        }
  • trunk/src/org/openstreetmap/josm/data/validation/Test.java

    r16031 r16068  
    198198        progressMonitor = null;
    199199        if (stopwatch.elapsed() > 0) {
    200             Logging.debug(tr("Test ''{0}'' completed in {1}", getName(), stopwatch));
     200            Logging.debug(tr("{0} completed in {1}", getName(), stopwatch));
    201201        }
    202202    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r15994 r16068  
    283283                    } else if (line.charAt(0) == '-' && okValue != null) {
    284284                        String hk = harmonizeKey(line.substring(1));
    285                         if (!okValue.equals(hk) && harmonizedKeys.put(hk, okValue) != null) {
    286                             Logging.debug(tr("Line was ignored: {0}", line));
     285                        if (!okValue.equals(hk) && harmonizedKeys.put(hk, okValue) != null && Logging.isDebugEnabled()) {
     286                            Logging.debug("Line was ignored: " + line);
    287287                        }
    288288                    } else {
  • trunk/src/org/openstreetmap/josm/io/CertificateAmendment.java

    r15142 r16068  
    259259            if (certificateIsMissing(keyStore, cert)) {
    260260                if (Logging.isDebugEnabled()) {
    261                     Logging.debug(tr("Adding certificate for TLS connections: {0}", cert.getSubjectX500Principal().getName()));
     261                    Logging.debug("Adding certificate for TLS connections: " + cert.getSubjectX500Principal().getName());
    262262                }
    263263                String alias = "josm:" + certAmend.filename;
Note: See TracChangeset for help on using the changeset viewer.