Index: applications/editors/josm/plugins/slippymap/build.xml
===================================================================
--- applications/editors/josm/plugins/slippymap/build.xml	(revision 10072)
+++ applications/editors/josm/plugins/slippymap/build.xml	(revision 10111)
@@ -49,5 +49,7 @@
   <target name="compile" depends="init">
     <echo message="creating ${plugin.jar}"/>
-    <javac srcdir="src" classpath="../../core/dist/josm-custom.jar" destdir="build" />
+    <javac srcdir="src" classpath="../../core/dist/josm-custom.jar" destdir="build">
+      <compilerarg value="-Xlint:deprecation"/>
+    </javac>
   </target>
   
Index: applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapLayer.java
===================================================================
--- applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapLayer.java	(revision 10072)
+++ applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapLayer.java	(revision 10111)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.slippymap;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.Color;
@@ -54,10 +56,10 @@
     public SlippyMapLayer()
     {
-        super("Slippy Map");
+        super(tr("Slippy Map"));
 
         clearTileStorage();
 
         tileOptionMenu = new JPopupMenu();
-        tileOptionMenu.add(new JMenuItem(new AbstractAction("Load Tile")
+        tileOptionMenu.add(new JMenuItem(new AbstractAction(tr("Load Tile"))
         {
             public void actionPerformed(ActionEvent ae)
@@ -72,5 +74,5 @@
         }));
 
-        tileOptionMenu.add(new JMenuItem(new AbstractAction("Show Tile Status")
+        tileOptionMenu.add(new JMenuItem(new AbstractAction(tr("Show Tile Status"))
         {
             public void actionPerformed(ActionEvent ae)
@@ -85,5 +87,5 @@
         }));
 
-        tileOptionMenu.add(new JMenuItem(new AbstractAction("Request Update")
+        tileOptionMenu.add(new JMenuItem(new AbstractAction(tr("Request Update"))
         {
             public void actionPerformed(ActionEvent ae)
@@ -98,5 +100,5 @@
         }));
 
-        tileOptionMenu.add(new JMenuItem(new AbstractAction("Load All Tiles")
+        tileOptionMenu.add(new JMenuItem(new AbstractAction(tr("Load All Tiles"))
         {
             public void actionPerformed(ActionEvent ae)
@@ -125,6 +127,5 @@
                 });
 
-                Main.map.mapView
-                        .addLayerChangeListener(new MapView.LayerChangeListener()
+                listeners.add(new LayerChangeListener()
                         {
                             public void activeLayerChange(Layer oldLayer,
@@ -324,5 +325,5 @@
                 if (tile.getImage() == null)
                 {
-                    g.drawString("image not loaded", p.x + 2, texty);
+                    g.drawString(tr("image not loaded"), p.x + 2, texty);
                     texty += 1 + fontHeight;
                 }
@@ -474,6 +475,6 @@
         if (key.startsWith(SlippyMapPreferences.PREFERENCE_PREFIX))
         {
-            System.err.println(this + ".preferenceChanged('" + key + "', '"
-                    + newValue + "') called");
+//            System.err.println(this + ".preferenceChanged('" + key + "', '"
+//                    + newValue + "') called");
 
             clearTileStorage();
Index: applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferenceSetting.java
===================================================================
--- applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferenceSetting.java	(revision 10072)
+++ applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferenceSetting.java	(revision 10111)
@@ -40,6 +40,6 @@
         for (int i = 0; i < allMapUrls.length; i++)
         {
-            System.err.println("Comparing '" + source + "' to '"
-                    + allMapUrls[i]);
+//            System.err.println("Comparing '" + source + "' to '"
+//                   + allMapUrls[i]);
 
             if (source.equals(allMapUrls[i]))
Index: applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapTile.java
===================================================================
--- applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapTile.java	(revision 10072)
+++ applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapTile.java	(revision 10111)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.slippymap;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.Image;
@@ -67,9 +69,9 @@
             BufferedReader in = new BufferedReader(new InputStreamReader(devc
                     .getInputStream()));
-            metadata = in.readLine();
+            metadata = tr(in.readLine());
         }
         catch (Exception ex)
         {
-            metadata = "error loading metadata";
+            metadata = tr("error loading metadata");
         }
 
@@ -85,9 +87,9 @@
             BufferedReader in = new BufferedReader(new InputStreamReader(devc
                     .getInputStream()));
-            metadata = "requested: " + in.readLine();
+            metadata = tr("requested: {0}", tr(in.readLine()));
         }
         catch (Exception ex)
         {
-            metadata = "error requesting update";
+            metadata = tr("error requesting update");
         }
     }
