# HG changeset patch # User Ingo Weinzierl # Date 1340178576 0 # Node ID 5482a8a48a3f2d56e24022920795d01d1d000d73 # Parent 6c91e05a5f51e4a778d78e8458e37d218c28fc4a I18N of SQ relation charts. flys-artifacts/trunk@4715 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Tue Jun 19 21:51:11 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Jun 20 07:49:36 2012 +0000 @@ -1,3 +1,26 @@ +2012-06-20 Ingo Weinzierl + + * src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorA.java, + src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorB.java, + src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorC.java, + src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorD.java, + src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorE.java, + src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorF.java: + New concrete chart generators. Each fraction of the SQ relation + calculation has its own generator now. This is because they all have + different chart titles and labels. + + * doc/conf/conf.xml: Let SQ relation charts use more concrete generators. + + * src/main/java/de/intevation/flys/exports/sq/SQRelationGenerator.java: + Implemented getDefaultXAxisLabel() getDefaultYAxisLabel(). + + * src/main/resources/messages.properties, + src/main/resources/messages_de_DE.properties, + src/main/resources/messages_en.properties, + src/main/resources/messages_de.properties: Added i18n strings for chart + titles and axes labels. + 2012-06-19 Felix Wolfsteller Fix issue681 (wrong vertical lines in duration curve q-mainvalues on diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/doc/conf/conf.xml --- a/flys-artifacts/doc/conf/conf.xml Tue Jun 19 21:51:11 2012 +0000 +++ b/flys-artifacts/doc/conf/conf.xml Wed Jun 20 07:49:36 2012 +0000 @@ -251,12 +251,12 @@ de.intevation.flys.exports.MiddleBedHeightGenerator de.intevation.flys.exports.MiddleBedHeightInfoGenerator de.intevation.flys.exports.MiddleBedHeightExporter - de.intevation.flys.exports.sq.SQRelationGenerator - de.intevation.flys.exports.sq.SQRelationGenerator - de.intevation.flys.exports.sq.SQRelationGenerator - de.intevation.flys.exports.sq.SQRelationGenerator - de.intevation.flys.exports.sq.SQRelationGenerator - de.intevation.flys.exports.sq.SQRelationGenerator + de.intevation.flys.exports.sq.SQRelationGeneratorA + de.intevation.flys.exports.sq.SQRelationGeneratorB + de.intevation.flys.exports.sq.SQRelationGeneratorC + de.intevation.flys.exports.sq.SQRelationGeneratorD + de.intevation.flys.exports.sq.SQRelationGeneratorE + de.intevation.flys.exports.sq.SQRelationGeneratorF de.intevation.flys.exports.sq.SQRelationInfoGenerator de.intevation.flys.exports.sq.SQRelationInfoGenerator de.intevation.flys.exports.sq.SQRelationInfoGenerator diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGenerator.java Tue Jun 19 21:51:11 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGenerator.java Wed Jun 20 07:49:36 2012 +0000 @@ -39,6 +39,14 @@ } } + + public static final String I18N_XAXIS_LABEL = + "chart.sq_relation.xaxis.label"; + + public static final String I18N_YAXIS_LABEL = + "chart.sq_relation.yaxis.label"; + + /** The logger that is used in this generator. */ private static Logger logger = Logger.getLogger(SQRelationGenerator.class); @@ -68,13 +76,13 @@ @Override protected String getDefaultXAxisLabel() { - return "TODO: XAXIS LABEL"; + return msg(I18N_XAXIS_LABEL, I18N_XAXIS_LABEL); } @Override protected String getDefaultYAxisLabel(int index) { - return "TODO: YAXIS LABEL " + index; + return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL); } @@ -86,7 +94,7 @@ @Override protected NumberAxis createYAxis(int index) { - return new LogarithmicAxis("TODO: LABEL " + index); + return new LogarithmicAxis(getDefaultYAxisLabel(index)); } diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorA.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorA.java Wed Jun 20 07:49:36 2012 +0000 @@ -0,0 +1,14 @@ +package de.intevation.flys.exports.sq; + + +public class SQRelationGeneratorA extends SQRelationGenerator { + + public static final String I18N_CHART_TITLE = + "chart.sq_relation_a.title"; + + + @Override + public String getDefaultChartTitle() { + return msg(I18N_CHART_TITLE, I18N_CHART_TITLE); + } +} diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorB.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorB.java Wed Jun 20 07:49:36 2012 +0000 @@ -0,0 +1,14 @@ +package de.intevation.flys.exports.sq; + + +public class SQRelationGeneratorB extends SQRelationGenerator { + + public static final String I18N_CHART_TITLE = + "chart.sq_relation_b.title"; + + + @Override + public String getDefaultChartTitle() { + return msg(I18N_CHART_TITLE, I18N_CHART_TITLE); + } +} diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorC.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorC.java Wed Jun 20 07:49:36 2012 +0000 @@ -0,0 +1,14 @@ +package de.intevation.flys.exports.sq; + + +public class SQRelationGeneratorC extends SQRelationGenerator { + + public static final String I18N_CHART_TITLE = + "chart.sq_relation_c.title"; + + + @Override + public String getDefaultChartTitle() { + return msg(I18N_CHART_TITLE, I18N_CHART_TITLE); + } +} diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorD.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorD.java Wed Jun 20 07:49:36 2012 +0000 @@ -0,0 +1,14 @@ +package de.intevation.flys.exports.sq; + + +public class SQRelationGeneratorD extends SQRelationGenerator { + + public static final String I18N_CHART_TITLE = + "chart.sq_relation_d.title"; + + + @Override + public String getDefaultChartTitle() { + return msg(I18N_CHART_TITLE, I18N_CHART_TITLE); + } +} diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorE.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorE.java Wed Jun 20 07:49:36 2012 +0000 @@ -0,0 +1,14 @@ +package de.intevation.flys.exports.sq; + + +public class SQRelationGeneratorE extends SQRelationGenerator { + + public static final String I18N_CHART_TITLE = + "chart.sq_relation_e.title"; + + + @Override + public String getDefaultChartTitle() { + return msg(I18N_CHART_TITLE, I18N_CHART_TITLE); + } +} diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorF.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGeneratorF.java Wed Jun 20 07:49:36 2012 +0000 @@ -0,0 +1,14 @@ +package de.intevation.flys.exports.sq; + + +public class SQRelationGeneratorF extends SQRelationGenerator { + + public static final String I18N_CHART_TITLE = + "chart.sq_relation_f.title"; + + + @Override + public String getDefaultChartTitle() { + return msg(I18N_CHART_TITLE, I18N_CHART_TITLE); + } +} diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/resources/messages.properties --- a/flys-artifacts/src/main/resources/messages.properties Tue Jun 19 21:51:11 2012 +0000 +++ b/flys-artifacts/src/main/resources/messages.properties Wed Jun 20 07:49:36 2012 +0000 @@ -139,6 +139,15 @@ chart.normalized.reference.curve.title = Reduced Reference Curve +chart.sq_relation.xaxis.label = Discharge [m\u00b3/s] +chart.sq_relation.yaxis.label = Transport [kg/s] +chart.sq_relation_a.title = Feinkornanteil +chart.sq_relation_b.title = Sand (Suspensionstransport) +chart.sq_relation_c.title = Sand (Geschiebetransport) +chart.sq_relation_d.title = Fein- und Mittelkies +chart.sq_relation_e.title = Grobkornanteil (> Mittelkies) +chart.sq_relation_f.title = Geschiebetransport gesamt + facet.longitudinal_section.annotations = POIs facet.discharge_curves.mainvalues.q = Q (main values) facet.discharge_curves.mainvalues.w = W (main values) diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/resources/messages_de.properties --- a/flys-artifacts/src/main/resources/messages_de.properties Tue Jun 19 21:51:11 2012 +0000 +++ b/flys-artifacts/src/main/resources/messages_de.properties Wed Jun 20 07:49:36 2012 +0000 @@ -138,6 +138,15 @@ chart.w_differences.yaxis.label = m chart.w_differences.yaxis.second.label = W [NN + m] +chart.sq_relation.xaxis.label = Abfluss [m\u00b3/s] +chart.sq_relation.yaxis.label = Transport [kg/s] +chart.sq_relation_a.title = Feinkornanteil +chart.sq_relation_b.title = Sand (Suspensionstransport) +chart.sq_relation_c.title = Sand (Geschiebetransport) +chart.sq_relation_d.title = Fein- und Mittelkies +chart.sq_relation_e.title = Grobkornanteil (> Mittelkies) +chart.sq_relation_f.title = Geschiebetransport gesamt + facet.longitudinal_section.annotations = Streckenfavoriten facet.discharge_curves.mainvalues.q = Q (Haupt- und Extremwerte) facet.discharge_curves.mainvalues.w = W (Haupt- und Extremwerte) diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/resources/messages_de_DE.properties --- a/flys-artifacts/src/main/resources/messages_de_DE.properties Tue Jun 19 21:51:11 2012 +0000 +++ b/flys-artifacts/src/main/resources/messages_de_DE.properties Wed Jun 20 07:49:36 2012 +0000 @@ -136,6 +136,15 @@ chart.w_differences.yaxis.label = m chart.w_differences.yaxis.second.label = W [NN + m] +chart.sq_relation.xaxis.label = Abfluss [m\u00b3/s] +chart.sq_relation.yaxis.label = Transport [kg/s] +chart.sq_relation_a.title = Feinkornanteil +chart.sq_relation_b.title = Sand (Suspensionstransport) +chart.sq_relation_c.title = Sand (Geschiebetransport) +chart.sq_relation_d.title = Fein- und Mittelkies +chart.sq_relation_e.title = Grobkornanteil (> Mittelkies) +chart.sq_relation_f.title = Geschiebetransport gesamt + facet.longitudinal_section.annotations = Streckenfavoriten facet.discharge_curves.mainvalues.q = Q (Haupt- und Extremwerte) facet.discharge_curves.mainvalues.w = W (Haupt- und Extremwerte) diff -r 6c91e05a5f51 -r 5482a8a48a3f flys-artifacts/src/main/resources/messages_en.properties --- a/flys-artifacts/src/main/resources/messages_en.properties Tue Jun 19 21:51:11 2012 +0000 +++ b/flys-artifacts/src/main/resources/messages_en.properties Wed Jun 20 07:49:36 2012 +0000 @@ -138,6 +138,15 @@ chart.w_differences.yaxis.label = m chart.w_differences.yaxis.second.label = W [NN + m] +chart.sq_relation.xaxis.label = Discharge [m\u00b3/s] +chart.sq_relation.yaxis.label = Transport [kg/s] +chart.sq_relation_a.title = Feinkornanteil +chart.sq_relation_b.title = Sand (Suspensionstransport) +chart.sq_relation_c.title = Sand (Geschiebetransport) +chart.sq_relation_d.title = Fein- und Mittelkies +chart.sq_relation_e.title = Grobkornanteil (> Mittelkies) +chart.sq_relation_f.title = Geschiebetransport gesamt + facet.longitudinal_section.annotations = POIs facet.discharge_curves.mainvalues.q = Q (main values) facet.discharge_curves.mainvalues.w = W (main values)