changeset 7546:b82750667e1a 3.0.18

Some i18n for Vollmer curve calculation.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 08 Nov 2013 18:04:51 +0100
parents 4dbbdf0c8b2c
children 39eb0b399995
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixRealizingCalculation.java artifacts/src/main/resources/messages.properties artifacts/src/main/resources/messages_de.properties artifacts/src/main/resources/messages_de_DE.properties artifacts/src/main/resources/messages_en.properties
diffstat 5 files changed, 24 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixRealizingCalculation.java	Fri Nov 08 16:15:38 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixRealizingCalculation.java	Fri Nov 08 18:04:51 2013 +0100
@@ -45,19 +45,16 @@
         List<Segment> segments = access.getSegments();
 
         if (isQ == null) {
-            // TODO: i18n
             addProblem("fix.realize.missing.is.q");
         }
 
         if (segments == null || segments.isEmpty()) {
-            // TODO: i18n
             addProblem("fix.realize.missing.segments");
         }
 
         River r = RiverFactory.getRiver(river);
 
         if (r == null) {
-            // TODO: i18n
             addProblem("fix.no.such.river");
         }
 
@@ -110,7 +107,6 @@
                     }
                 }
                 if (nextSeg == null) {
-                    // TODO: i18n
                     addProblem(km, "fix.cannot.find.segment");
                     continue;
                 }
@@ -128,7 +124,6 @@
                 double w = instance.value(q);
 
                 if (Double.isNaN(w)) {
-                    // TODO: i18n
                     addProblem(km, "fix.cannot.calculate.function", q);
                 }
                 else {
--- a/artifacts/src/main/resources/messages.properties	Fri Nov 08 16:15:38 2013 +0100
+++ b/artifacts/src/main/resources/messages.properties	Fri Nov 08 18:04:51 2013 +0100
@@ -631,6 +631,12 @@
 fix.invalid.values=Invalid values
 fix.cannot.load.data=Cannot fetch data from database
 
+fix.realize.missing.is.q=No Q value found
+fix.realize.missing.segments=Missing values for gauges
+fix.no.such.river=River not found
+fix.cannot.find.segment=Outside of gauge ranges
+fix.cannot.calculate.function=Evaluation of function failed
+
 fix.km.chart.q.sector.border0=(MNQ + MQ)/2
 fix.km.chart.q.sector.border1=(MQ + MHQ)/2
 fix.km.chart.q.sector.border2=HQ5
--- a/artifacts/src/main/resources/messages_de.properties	Fri Nov 08 16:15:38 2013 +0100
+++ b/artifacts/src/main/resources/messages_de.properties	Fri Nov 08 18:04:51 2013 +0100
@@ -633,6 +633,12 @@
 fix.invalid.values=Ung\u00fcltige Werte
 fix.cannot.load.data=Daten konnten nicht aus der Datenbank geladen werden
 
+fix.realize.missing.is.q=Kein Q-Wert verf\u00fcgbar
+fix.realize.missing.segments=Werte für Pegelstrecken nicht angegeben
+fix.no.such.river=Gew\u00e4sser nicht gefunden
+fix.cannot.find.segment=Au\u00dferhalb der Pegelg\u00fcltigkeit
+fix.cannot.calculate.function=Funktionsauswerung fehlgeschlagen
+
 fix.km.chart.q.sector.border0=(MNQ + MQ)/2
 fix.km.chart.q.sector.border1=(MQ + MHQ)/2
 fix.km.chart.q.sector.border2=HQ5
--- a/artifacts/src/main/resources/messages_de_DE.properties	Fri Nov 08 16:15:38 2013 +0100
+++ b/artifacts/src/main/resources/messages_de_DE.properties	Fri Nov 08 18:04:51 2013 +0100
@@ -632,6 +632,12 @@
 fix.invalid.values=Ung\u00fcltige Werte
 fix.cannot.load.data=Daten konnten nicht aus der Datenbank geladen werden
 
+fix.realize.missing.is.q=Kein Q-Wert verf\u00fcgbar
+fix.realize.missing.segments=Werte für Pegelstrecken nicht angegeben
+fix.no.such.river=Gew\u00e4sser nicht gefunden
+fix.cannot.find.segment=Au\u00dferhalb der Pegelg\u00fcltigkeit
+fix.cannot.calculate.function=Funktionsauswerung fehlgeschlagen
+
 fix.km.chart.q.sector.border0=(MNQ + MQ)/2
 fix.km.chart.q.sector.border1=(MQ + MHQ)/2
 fix.km.chart.q.sector.border2=HQ5
--- a/artifacts/src/main/resources/messages_en.properties	Fri Nov 08 16:15:38 2013 +0100
+++ b/artifacts/src/main/resources/messages_en.properties	Fri Nov 08 18:04:51 2013 +0100
@@ -633,6 +633,12 @@
 fix.invalid.values=Invalid values
 fix.cannot.load.data=Cannot fetch data from database
 
+fix.realize.missing.is.q=No Q value found
+fix.realize.missing.segments=Missing values for gauges
+fix.no.such.river=River not found
+fix.cannot.find.segment=Outside of gauge ranges
+fix.cannot.calculate.function=Evaluation of function failed
+
 fix.km.chart.q.sector.border0=(MNQ + MQ)/2
 fix.km.chart.q.sector.border1=(MQ + MHQ)/2
 fix.km.chart.q.sector.border2=HQ5

http://dive4elements.wald.intevation.org