Index: applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/PreferencesKeys.java
===================================================================
--- applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/PreferencesKeys.java	(revision 27466)
+++ 	(revision )
@@ -1,41 +1,0 @@
-/*
- * Copyright (C) 2008 Innovant
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
- *
- * For more information, please contact:
- *
- *  Innovant
- *   juangui@gmail.com
- *   vidalfree@gmail.com
- *
- *  http://public.grupoinnovant.com/blog
- *
- */
-package com.innovant.josm.jrt.core;
-
-public enum PreferencesKeys {
-    KEY_ACTIVE_ROUTE_COLOR ("routing.active.route.color"),
-    KEY_INACTIVE_ROUTE_COLOR ("routing.inactive.route.color"),
-    KEY_ROUTE_WIDTH ("routing.route.width"),
-    KEY_ROUTE_SELECT ("routing.route.select");
-
-    public final String key;
-    PreferencesKeys (String key) {
-        this.key=key;
-    }
-
-    public String getKey() {return key;};
-}
Index: applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java
===================================================================
--- applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java	(revision 27466)
+++ applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java	(revision 27760)
@@ -27,4 +27,6 @@
 
 package com.innovant.josm.plugin.routing;
+
+import static org.openstreetmap.josm.tools.I18n.marktr;
 
 import java.awt.BasicStroke;
@@ -59,5 +61,4 @@
 import org.openstreetmap.josm.tools.ImageProvider;
 
-import com.innovant.josm.jrt.core.PreferencesKeys;
 import com.innovant.josm.jrt.osm.OsmEdge;
 
@@ -69,4 +70,18 @@
  */
 public class RoutingLayer extends Layer {
+
+    public enum PreferencesKeys {
+        KEY_ACTIVE_ROUTE_COLOR (marktr("routing active route")),
+        KEY_INACTIVE_ROUTE_COLOR (marktr("routing inactive route")),
+        KEY_ROUTE_WIDTH ("routing.route.width"),
+        KEY_ROUTE_SELECT ("routing.route.select");
+
+        public final String key;
+        PreferencesKeys (String key) {
+            this.key=key;
+        }
+
+        public String getKey() {return key;};
+    }
 
     /**
@@ -240,21 +255,10 @@
         // Get path stroke color from preferences
         // Color is different for active and inactive layers
-        String colorString;
+        Color color;
         if (isActiveLayer) {
-            if (Main.pref.hasKey(PreferencesKeys.KEY_ACTIVE_ROUTE_COLOR.key))
-                    colorString = Main.pref.get(PreferencesKeys.KEY_ACTIVE_ROUTE_COLOR.key);
-            else {
-                colorString = ColorHelper.color2html(Color.RED);
-                Main.pref.put(PreferencesKeys.KEY_ACTIVE_ROUTE_COLOR.key, colorString);
-            }
+            color = Main.pref.getColor(PreferencesKeys.KEY_ACTIVE_ROUTE_COLOR.key, Color.RED);
         } else {
-            if (Main.pref.hasKey(PreferencesKeys.KEY_INACTIVE_ROUTE_COLOR.key))
-                colorString = Main.pref.get(PreferencesKeys.KEY_INACTIVE_ROUTE_COLOR.key);
-            else {
-                colorString = ColorHelper.color2html(Color.decode("#dd2222"));
-                Main.pref.put(PreferencesKeys.KEY_INACTIVE_ROUTE_COLOR.key, colorString);
-            }
-        }
-        Color color = ColorHelper.html2color(colorString);
+            color = Main.pref.getColor(PreferencesKeys.KEY_INACTIVE_ROUTE_COLOR.key, Color.decode("#dd2222"));
+        }
 
         // Get path stroke width from preferences
