[PATCH] Some i18n for Vollmer curve calculation

Wald Commits scm-commit at wald.intevation.org
Fri Nov 8 18:04:58 CET 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1383930291 -3600
# Node ID b82750667e1a2cafbd614f8e72b6d5d71a3ea096
# Parent  4dbbdf0c8b2c6196adb3d2e7f1ebd54c899eb21b
Some i18n for Vollmer curve calculation.

diff -r 4dbbdf0c8b2c -r b82750667e1a artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/FixRealizingCalculation.java
--- 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 {
diff -r 4dbbdf0c8b2c -r b82750667e1a artifacts/src/main/resources/messages.properties
--- 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
diff -r 4dbbdf0c8b2c -r b82750667e1a artifacts/src/main/resources/messages_de.properties
--- 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
diff -r 4dbbdf0c8b2c -r b82750667e1a artifacts/src/main/resources/messages_de_DE.properties
--- 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
diff -r 4dbbdf0c8b2c -r b82750667e1a artifacts/src/main/resources/messages_en.properties
--- 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


More information about the Dive4elements-commits mailing list