changeset 8353:a82f24b773e7

Use i18n string for w in cm axis.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 01 Oct 2014 13:37:27 +0200
parents 418b9d9a3564
children 9f9857f6c464
files artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java	Wed Oct 01 13:36:35 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java	Wed Oct 01 13:37:27 2014 +0200
@@ -10,6 +10,7 @@
 import java.awt.Font;
 
 import org.apache.log4j.Logger;
+import org.dive4elements.river.artifacts.resources.Resources;
 import org.dive4elements.river.exports.injector.InjectorConstants;
 import org.dive4elements.river.jfree.AxisDataset;
 import org.dive4elements.river.jfree.DoubleBounds;
@@ -23,6 +24,8 @@
 {
     private static Logger log = Logger.getLogger(DischargeGenerator.class);
 
+    private String I18N_AXIS_LABEL = "chart.discharge.curve.yaxis.cm.label";
+
     public DischargeGenerator() {
     }
 
@@ -85,10 +88,11 @@
             getYAxisFontSize(wAxisIndex));
 
         String axisName = "W.in.cm";
+        String axisLabel = Resources.getMsg(context.getMeta(),
+            I18N_AXIS_LABEL, "W [cm]");
 
-        // TODO: I18N
         IdentifiableNumberAxis axis = new IdentifiableNumberAxis(
-            axisName, "W.in.cm");
+            axisName, axisLabel);
 
         axis.setAutoRangeIncludesZero(false);
         axis.setLabelFont(labelFont);

http://dive4elements.wald.intevation.org