Modify ↓
#17116 closed defect (fixed)
Missing translation for "No tile at this zoom level"
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 18.12 |
Component: | Core imagery | Version: | |
Keywords: | i18n | Cc: |
Description ¶
Even with the string properly translated in launchpad we still see an unstranslated No tile at this zoom level
message:
I did try this without success (the message in English is still appearing):
-
TabularUnified src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java
diff --git a/src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java b/src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java index b2b359c1e..7144ff913 100644
a b 1 1 // License: GPL. For details, see Readme.txt file. 2 2 package org.openstreetmap.gui.jmapviewer; 3 3 4 import static org.openstreetmap.gui.jmapviewer.FeatureAdapter.tr; 5 4 6 import java.io.IOException; 5 7 import java.io.InputStream; 6 8 import java.net.HttpURLConnection; … … public class OsmTileLoader implements TileLoader { 49 51 } 50 52 loadTileMetadata(tile, conn); 51 53 if ("no-tile".equals(tile.getValue("tile-info"))) { 52 tile.setError( "No tile at this zoom level");54 tile.setError(tr("No tile at this zoom level")); 53 55 } else { 54 56 input = conn.getInputStream(); 55 57 try { -
TabularUnified src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
diff --git a/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java b/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java index b97112f05..974ee7789 100644
a b public class TMSCachedTileLoaderJob extends JCSCachedTileLoaderJob<String, Buffe 278 278 private boolean handleNoTileAtZoom() { 279 279 if (isNoTileAtZoom()) { 280 280 Logging.debug("JCS TMS - Tile valid, but no file, as no tiles at this level {0}", tile); 281 tile.setError( "No tile at this zoom level");281 tile.setError(tr("No tile at this zoom level")); 282 282 tile.putValue("tile-info", "no-tile"); 283 283 return true; 284 284 }
JOSM:
Revision:14569 Is-Local-Build:true Build-Date:2018-12-17 00:38:03 Identification: JOSM/1.5 (14569 SVN pt_BR) Linux Debian GNU/Linux buster/sid Memory Usage: 392 MB / 2048 MB (194 MB allocated, but free) Java version: 11.0.1+13-Debian-3, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 1920x1080 Maximum Screen Size: 1920x1080 Java package: openjdk-11-jre:amd64-11.0.1+13-3 Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-21 VM arguments: [-Dawt.useSystemAAFontSettings=gasp]
Change History (7)
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 6 years ago
Component: | Core → Core imagery |
---|---|
Keywords: | i18n added |
Milestone: | → 18.12 |
comment:4 by , 6 years ago
comment:7 by , 6 years ago
"No tiles" for a single tile would be wrong. I'd say this is one of the few cases, where similar strings are ok...
Note:
See TracTickets
for help on using tickets.
In 14570/josm: