[PATCH 2 of 6] Use i18n string for w in cm axis
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 1 13:42:25 CEST 2014
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1412163447 -7200
# Node ID a82f24b773e7147d53a656cdf9b151251fcbe8f8
# Parent 418b9d9a3564a65140b63e9bebbd436469dffd58
Use i18n string for w in cm axis.
diff -r 418b9d9a3564 -r a82f24b773e7 artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java
--- 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);
More information about the Dive4Elements-commits
mailing list