Index: /applications/editors/josm/plugins/livegps/README
===================================================================
--- /applications/editors/josm/plugins/livegps/README	(revision 16932)
+++ /applications/editors/josm/plugins/livegps/README	(revision 16933)
@@ -10,7 +10,4 @@
 * run josm
 * activate track acquisition in "LiveGPS" menu
-* have a look in the plugins directory i.e. /home/stefan/.josm/plugins/livegps
-  there is a liveGPS.conf where you can set the server and port of the host
-  running the gpsd
 
 Some problems exist!
Index: plications/editors/josm/plugins/livegps/liveGPS.conf
===================================================================
--- /applications/editors/josm/plugins/livegps/liveGPS.conf	(revision 16932)
+++ 	(revision )
@@ -1,2 +1,0 @@
-host=localhost
-port=2947
Index: /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsAcquirer.java
===================================================================
--- /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsAcquirer.java	(revision 16932)
+++ /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsAcquirer.java	(revision 16933)
@@ -16,4 +16,5 @@
 
 import org.openstreetmap.josm.data.coor.LatLon;
+import org.openstreetmap.josm.Main;
 
 public class LiveGpsAcquirer implements Runnable {
@@ -21,44 +22,10 @@
     BufferedReader gpsdReader;
     boolean connected = false;
-    String gpsdHost = "localhost";
-    int gpsdPort = 2947;
-    String configFile = "liveGPS.conf";
+    String gpsdHost = Main.pref.get("livegps.gpsd.host","localhost");
+    int gpsdPort = Main.pref.getInteger("livegps.gpsd.port", 2947);
     boolean shutdownFlag = false;
     private List<PropertyChangeListener> propertyChangeListener = new ArrayList<PropertyChangeListener>();
     private PropertyChangeEvent lastStatusEvent;
     private PropertyChangeEvent lastDataEvent;
-
-    public LiveGpsAcquirer(String pluginDir) {
-
-        Properties liveGPSconfig = new Properties();
-
-        FileInputStream fis = null;
-
-        try {
-            fis = new FileInputStream(pluginDir + configFile);
-        } catch (FileNotFoundException e) {
-            System.err.println("No liveGPS.conf found, using defaults");
-        }
-
-        if(fis != null)
-        {
-            try {
-                liveGPSconfig.load(fis);
-                this.gpsdHost = liveGPSconfig.getProperty("host");
-                this.gpsdPort = Integer.parseInt(liveGPSconfig.getProperty("port"));
-
-            } catch (IOException e) {
-                System.err.println("Error while loading liveGPS.conf, using defaults");
-            }
-
-            if(this.gpsdHost == null || this.gpsdPort == 0)
-            {
-                System.err.println("Error in liveGPS.conf, using defaults");
-                this.gpsdHost = "localhost";
-                this.gpsdPort = 2947;
-            }
-        }
-
-    }
 
     /**
@@ -230,16 +197,16 @@
         }
 
-    fireGpsStatusChangeEvent(LiveGpsStatus.GpsStatus.DISCONNECTED, tr("Not connected"));
+        fireGpsStatusChangeEvent(LiveGpsStatus.GpsStatus.DISCONNECTED, tr("Not connected"));
         if (gpsdSocket != null) {
-      try {
-        gpsdSocket.close();
-        gpsdSocket = null;
-            System.out.println("LiveGps: Disconnected from gpsd");
-      }
-      catch (Exception e) {
-        System.out.println("LiveGps: Unable to close socket; reconnection may not be possible");
-      };
-      }
-  }
+            try {
+              gpsdSocket.close();
+              gpsdSocket = null;
+                  System.out.println("LiveGps: Disconnected from gpsd");
+            }
+            catch (Exception e) {
+              System.out.println("LiveGps: Unable to close socket; reconnection may not be possible");
+            }
+        }
+    }
 
     public void shutdown()
Index: /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsData.java
===================================================================
--- /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsData.java	(revision 16932)
+++ /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsData.java	(revision 16933)
@@ -3,4 +3,6 @@
  */
 package livegps;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.Point;
@@ -109,5 +111,4 @@
         return getClass().getSimpleName() + "[fix=" + fix + ", lat=" + latLon.lat()
         + ", long=" + latLon.lon() + ", speed=" + speed + ", course=" + course + "]";
-
     }
 
@@ -127,5 +128,5 @@
                     builder.append(tmp);
                 } else {
-                    builder.append("no name");
+                    builder.append(tr("no name"));
                 }
                 tmp = way.get("ref");
@@ -163,10 +164,8 @@
     public Way getWay() {
         if(way == null) {
-            EastNorth eastnorth = Main.proj.latlon2eastNorth(getLatLon());
-            Point xy = Main.map.mapView.getPoint(eastnorth);
+            Point xy = Main.map.mapView.getPoint(getLatLon());
             way = Main.map.mapView.getNearestWay(xy);
         }
         return way;
-
     }
 
@@ -206,6 +205,3 @@
         return true;
     }
-
-
-
 }
Index: /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsDialog.java
===================================================================
--- /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsDialog.java	(revision 16932)
+++ /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsDialog.java	(revision 16933)
@@ -84,5 +84,5 @@
                     wayLabel.setText(wayString);
                 } else {
-                    wayLabel.setText("unknown");
+                    wayLabel.setText(tr("unknown"));
                 }
 
Index: /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsPlugin.java
===================================================================
--- /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsPlugin.java	(revision 16932)
+++ /applications/editors/josm/plugins/livegps/src/livegps/LiveGpsPlugin.java	(revision 16933)
@@ -131,5 +131,5 @@
         {
             if (acquirer == null) {
-                acquirer = new LiveGpsAcquirer(getPluginDir());
+                acquirer = new LiveGpsAcquirer();
                 if (lgpslayer == null) {
                     lgpslayer = new LiveGpsLayer(data);
