changeset 2308:41a5c87c2761

Renamed data item names to allow translations. flys-artifacts/trunk@3982 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 09 Feb 2012 08:40:39 +0000
parents 51f530476e36
children 92640472e563
files flys-artifacts/ChangeLog flys-artifacts/doc/conf/artifacts/winfo.xml flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
diffstat 3 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Feb 08 16:51:15 2012 +0000
+++ b/flys-artifacts/ChangeLog	Thu Feb 09 08:40:39 2012 +0000
@@ -1,7 +1,13 @@
+2012-02-09  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java,
+	  doc/conf/artifacts/winfo.xml: Renamed data item names to allow
+	  translations.
+
 2012-02-08  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java:
-	  Give (Normalized)ReferenceCurveFacets are more approriate
+	  Give (Normalized)ReferenceCurveFacets are more appropriate
 	  description (to be seen in client).
 
 2012-02-08  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
--- a/flys-artifacts/doc/conf/artifacts/winfo.xml	Wed Feb 08 16:51:15 2012 +0000
+++ b/flys-artifacts/doc/conf/artifacts/winfo.xml	Thu Feb 09 08:40:39 2012 +0000
@@ -174,7 +174,7 @@
         </state>
 
         <state id="state.winfo.reference.curve.input.start" description="state.winfo.reference.curve.input (start)" state="de.intevation.flys.artifacts.states.EnterLocationState">
-            <data name="reference.startpoint" type="Double[]"/>
+            <data name="reference_startpoint" type="Double[]"/>
         </state>
 
         <transition transition="de.intevation.flys.artifacts.transitions.DefaultTransition">
@@ -183,7 +183,7 @@
         </transition>
 
         <state id="state.winfo.reference.curve.input.end" description="state.winfo.reference.curve.input (end)" state="de.intevation.flys.artifacts.states.EnterMultipleLocationsState">
-            <data name="reference.endpoint" type="Double[]"/>
+            <data name="reference_endpoint" type="Double[]"/>
         </state>
 
         <transition transition="de.intevation.flys.artifacts.transitions.DefaultTransition">
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Wed Feb 08 16:51:15 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Thu Feb 09 08:40:39 2012 +0000
@@ -689,7 +689,7 @@
 
     /** Get reference (start) km. */
     protected Double getReferenceStartKm() {
-        StateData sd = getData("reference.startpoint");
+        StateData sd = getData("reference_startpoint");
 
         if (sd == null) {
             logger.warn("no reference start given.");
@@ -717,7 +717,7 @@
 
 
     protected double [] getReferenceEndKms() {
-        StateData sd = getData("reference.endpoint");
+        StateData sd = getData("reference_endpoint");
 
         if (sd == null) {
             logger.warn("no reference end given.");

http://dive4elements.wald.intevation.org