changeset 239:47fe77a1bac7

Added new i18n strings for new output modes. flys-client/trunk@1808 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 03 May 2011 16:22:27 +0000
parents 234c78a91c15
children 4cdf9030854f
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/CollectionView.java
diffstat 6 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue May 03 13:52:14 2011 +0000
+++ b/flys-client/ChangeLog	Tue May 03 16:22:27 2011 +0000
@@ -1,3 +1,11 @@
+2011-05-03  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/FLYSConstants.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants.java,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties:
+	  New i18n strings for new output modes.
+
 2011-05-03  Raimund Renkert <rrenkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Tue May 03 13:52:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Tue May 03 16:22:27 2011 +0000
@@ -126,6 +126,10 @@
 
     String longitudinal_section();
 
+    String duration_curve();
+
+    String waterlevel_export();
+
     // ERRORS
 
     String error_create_artifact();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Tue May 03 13:52:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Tue May 03 16:22:27 2011 +0000
@@ -60,6 +60,8 @@
 
 discharge_curve = Discharge Curve
 longitudinal_section = Longitudinal Section Curve
+duration_curve = Duration Curve
+waterlevel_export = Waterlevel Export
 
 error_create_artifact = Error while creating new project.
 error_describe_artifact = Error while loading the parameterization.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Tue May 03 13:52:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Tue May 03 16:22:27 2011 +0000
@@ -60,6 +60,8 @@
 
 discharge_curve = Abflusskurve
 longitudinal_section = L\u00e4ngsschnitt
+duration_curve = Dauerlinie
+waterlevel_export = Wasserstand/Wasserspiegellagen Export
 
 error_create_artifact = Fehler beim Erstellen eines neuen Projekts.
 error_describe_artifact = Fehler beim Laden der Parametrisierung.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Tue May 03 13:52:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Tue May 03 16:22:27 2011 +0000
@@ -60,6 +60,8 @@
 
 discharge_curve = Discharge Curve
 longitudinal_section = Longitudinal Section Curve
+duration_curve = Duration Curve
+waterlevel_export = Waterlevel Export
 
 error_create_artifact = Error while creating new project.
 error_describe_artifact = Error while loading the parameterization.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue May 03 13:52:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue May 03 16:22:27 2011 +0000
@@ -350,6 +350,12 @@
      * @param name The name and title of the output.
      */
     protected void addOutputTab(String name, OutputMode out) {
+        // XXX Maybe we should change this determination of visual outputs. I am
+        // not sure if the mimetype is the correct value for this!
+        if (out.getMimeType().equals("text/plain")) {
+            return;
+        }
+
         GWT.log("Add new output tab for '" + name + "'");
 
         // TODO Source this out to a factory that creates the different

http://dive4elements.wald.intevation.org