changeset 3493:e703555f8da1

Issue 752. Added new i18n string for single location input panel. flys-client/trunk@5209 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 15 Aug 2012 12:56:07 +0000
parents d45fcf70b994
children 4825950acf1e
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/MultipleLocationPanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java
diffstat 7 files changed, 33 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Aug 15 12:11:41 2012 +0000
+++ b/flys-client/ChangeLog	Wed Aug 15 12:56:07 2012 +0000
@@ -1,3 +1,17 @@
+2012-08-15  Raimund Renkert <raimund.renkert@intevation.de>
+
+	Issue 752. Location input label.
+
+	* src/main/java/de/intevation/flys/client/client/ui/MultipleLocationPanel.java,
+	  src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java:
+	  Added getter for label string.
+
+	* src/main/java/de/intevation/flys/client/client/FLYSConstants.java,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties:
+	  Added i18n string for single location label.
+
 2012-08-15	Björn Ricks <bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/server/RiverServiceImpl.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Wed Aug 15 12:11:41 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Wed Aug 15 12:56:07 2012 +0000
@@ -168,6 +168,8 @@
 
     String locations();
 
+    String single_location();
+
     String distance();
 
     String unitFrom();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Wed Aug 15 12:11:41 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Wed Aug 15 12:56:07 2012 +0000
@@ -63,6 +63,7 @@
 waterlevel_ground_state = Choose differences betweeen waterlevel and ground [m]
 location = Location(s)
 locations = Locations
+single_location = Location
 distance = Range
 unitFrom = km
 unitTo = km a
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Wed Aug 15 12:11:41 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Wed Aug 15 12:56:07 2012 +0000
@@ -63,6 +63,7 @@
 waterlevel_ground_state = Differenzen zwischen Wasserspiegel und Gel\u00e4nde [m]
 location = Ort(e)
 locations = Orte
+single_location = Ort
 distance = Strecke
 unitFrom = km&nbsp;-
 unitTo = km a
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Wed Aug 15 12:11:41 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Wed Aug 15 12:56:07 2012 +0000
@@ -63,6 +63,7 @@
 waterlevel_ground_state = Choose differences betweeen waterlevel and ground [m]
 location = Location(s)
 locations = Locations
+single_location = Location
 distance = Range
 unitFrom = km
 unitTo = km a
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MultipleLocationPanel.java	Wed Aug 15 12:11:41 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MultipleLocationPanel.java	Wed Aug 15 12:56:07 2012 +0000
@@ -86,7 +86,7 @@
         }
         catch(java.util.MissingResourceException mre) {
             GWT.log("Cannot find translation for data item name : " + getDataItemName());
-            labelString = MSG.location();
+            labelString = getLabelString();
         }
         Label label   = new Label(labelString);
         Canvas widget = createWidget(data);
@@ -317,5 +317,13 @@
         }
         setLocationValues(selected);
     }
+
+    /**
+     * Returns the label string for the input panel.
+     */
+    protected String getLabelString() {
+        return MSG.location();
+    }
+
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java	Wed Aug 15 12:11:41 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java	Wed Aug 15 12:56:07 2012 +0000
@@ -113,5 +113,10 @@
         }
         setLocationValues(selected);
     }
+
+
+    protected String getLabelString() {
+        return MSG.single_location();
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org