changeset 6227:70ae55f7bc55

Fixed i18n string to have the correct unit in y axis.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 06 Jun 2013 18:09:21 +0200
parents a782693e4d5f
children cb536a9a6c17
files artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceYearGenerator.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceYearGenerator.java	Thu Jun 06 18:08:27 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceYearGenerator.java	Thu Jun 06 18:09:21 2013 +0200
@@ -242,6 +242,7 @@
     @Override
     protected String getDefaultYAxisLabel(int pos) {
         String label = "default";
+        D4EArtifact flys = (D4EArtifact) master;
         if (pos == YAXIS.D.idx) {
             label = msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT);
         }
@@ -249,7 +250,6 @@
             label = msg(I18N_SECOND_YAXIS_LABEL, I18N_SECOND_YAXIS_LABEL_DEFAULT);
         }
         else if (pos == YAXIS.H.idx) {
-            D4EArtifact flys = (D4EArtifact) master;
             label = msg(I18N_THIRD_YAXIS_LABEL,
                 I18N_THIRD_YAXIS_LABEL_DEFAULT,
                 new Object[]
@@ -259,7 +259,9 @@
             label = msg(I18N_DW_YAXIS_LABEL, I18N_DW_YAXIS_LABEL_DEFAULT);
         }
         else if (pos == YAXIS.W.idx) {
-            return msg(I18N_W_YAXIS_LABEL, I18N_W_YAXIS_LABEL_DEFAULT);
+            return msg(I18N_W_YAXIS_LABEL, I18N_W_YAXIS_LABEL_DEFAULT,
+                new Object[]
+                    { RiverUtils.getRiver(flys).getWstUnit().getName() });
         }
 
         return label;

http://dive4elements.wald.intevation.org