[Dive4elements-commits] [PATCH] Added i18n strings for historical discharge wq chart
Wald Commits
scm-commit at wald.intevation.org
Thu Oct 25 15:00:35 CEST 2012
# HG changeset patch
# User Ingo Weinzierl <weinzierl.ingo at googlemail.com>
# Date 1351170011 -7200
# Node ID 1dfe3e1d304ef3e50b84e8165f62a2a6b9f2454b
# Parent 9a1a3406deb5c2b8d4fe1fbac3e537f49bfc01ba
Added i18n strings for historical discharge wq chart.
diff -r 9a1a3406deb5 -r 1dfe3e1d304e flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeWQCurveGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeWQCurveGenerator.java Thu Oct 25 14:02:39 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeWQCurveGenerator.java Thu Oct 25 15:00:11 2012 +0200
@@ -31,8 +31,6 @@
public static final String I18N_YAXIS_LABEL = "chart.historical.discharge.wq.yaxis.label";
- public static final String I18N_YAXIS_SECOND_LABEL = "chart.historical.discharge.wq.yaxis.second.label";
-
public static enum YAXIS {
W(0);
@@ -87,9 +85,6 @@
if (pos == 0) {
return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL);
}
- else if (pos == 1) {
- return msg(I18N_YAXIS_SECOND_LABEL, I18N_YAXIS_SECOND_LABEL);
- }
else {
return "NO TITLE FOR Y AXIS: " + pos;
}
@@ -145,8 +140,8 @@
// addAxisDataset(series, YAXIS.W.idx, visible);
}
- protected void doHistoricalDischargeCurveOut(FLYSArtifact artifact, Object data,
- String desc, Document theme, boolean visible) {
+ protected void doHistoricalDischargeCurveOut(FLYSArtifact artifact,
+ Object data, String desc, Document theme, boolean visible) {
XYSeries series = new StyledXYSeries(desc, theme);
StyledSeriesBuilder.addPointsQW(series, (WQKms) data);
diff -r 9a1a3406deb5 -r 1dfe3e1d304e flys-artifacts/src/main/resources/messages.properties
--- a/flys-artifacts/src/main/resources/messages.properties Thu Oct 25 14:02:39 2012 +0200
+++ b/flys-artifacts/src/main/resources/messages.properties Thu Oct 25 15:00:11 2012 +0200
@@ -162,6 +162,10 @@
chart.historical.discharge.xaxis.label = Time
chart.historical.discharge.yaxis.label = Q [m\u00b3/s]
chart.historical.discharge.yaxis.second.label = W [cm]
+chart.historical.discharge.wq.title = Discharge Curves
+chart.historical.discharge.wq.subtitle = Gauge {0}
+chart.historical.discharge.wq.xaxis.label = Q [m\u00b3/s]
+chart.historical.discharge.wq.yaxis.label = W [cm]
chart.reference.curve.title = Reference Curve
chart.reference.curve.subtitle = {0}
diff -r 9a1a3406deb5 -r 1dfe3e1d304e flys-artifacts/src/main/resources/messages_de.properties
--- a/flys-artifacts/src/main/resources/messages_de.properties Thu Oct 25 14:02:39 2012 +0200
+++ b/flys-artifacts/src/main/resources/messages_de.properties Thu Oct 25 15:00:11 2012 +0200
@@ -161,6 +161,10 @@
chart.historical.discharge.xaxis.label = Zeit
chart.historical.discharge.yaxis.label = Q [m\u00b3/s]
chart.historical.discharge.yaxis.second.label = W [cm]
+chart.historical.discharge.wq.title = Abflusskurven
+chart.historical.discharge.wq.subtitle = Pegel {0}
+chart.historical.discharge.wq.xaxis.label = Q [m\u00b3/s]
+chart.historical.discharge.wq.yaxis.label = W [cm]
chart.reference.curve.title = Bezugslinie
chart.reference.curve.subtitle = {0}
diff -r 9a1a3406deb5 -r 1dfe3e1d304e flys-artifacts/src/main/resources/messages_de_DE.properties
--- a/flys-artifacts/src/main/resources/messages_de_DE.properties Thu Oct 25 14:02:39 2012 +0200
+++ b/flys-artifacts/src/main/resources/messages_de_DE.properties Thu Oct 25 15:00:11 2012 +0200
@@ -161,6 +161,10 @@
chart.historical.discharge.xaxis.label = Zeit
chart.historical.discharge.yaxis.label = Q [m\u00b3/s]
chart.historical.discharge.yaxis.second.label = W [cm]
+chart.historical.discharge.wq.title = Abflusskurven
+chart.historical.discharge.wq.subtitle = Pegel {0}
+chart.historical.discharge.wq.xaxis.label = Q [m\u00b3/s]
+chart.historical.discharge.wq.yaxis.label = W [cm]
chart.reference.curve.title = Bezugslinie
chart.reference.curve.subtitle = {0}
diff -r 9a1a3406deb5 -r 1dfe3e1d304e flys-artifacts/src/main/resources/messages_en.properties
--- a/flys-artifacts/src/main/resources/messages_en.properties Thu Oct 25 14:02:39 2012 +0200
+++ b/flys-artifacts/src/main/resources/messages_en.properties Thu Oct 25 15:00:11 2012 +0200
@@ -161,6 +161,10 @@
chart.historical.discharge.xaxis.label = Time
chart.historical.discharge.yaxis.label = Q [m\u00b3/s]
chart.historical.discharge.yaxis.second.label = W [cm]
+chart.historical.discharge.wq.title = Discharge Curves
+chart.historical.discharge.wq.subtitle = Gauge {0}
+chart.historical.discharge.wq.xaxis.label = Q [m\u00b3/s]
+chart.historical.discharge.wq.yaxis.label = W [cm]
chart.reference.curve.title = Reference Curve
chart.reference.curve.subtitle = {0}
More information about the Dive4elements-commits
mailing list