changeset 3782:5d0419882382

Added missing translation of minfo state. flys-artifacts/trunk@5489 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 17 Sep 2012 10:07:35 +0000
parents 8e713e9bb4d7
children 4a973fa25125
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java flys-artifacts/src/main/resources/messages.properties flys-artifacts/src/main/resources/messages_de.properties flys-artifacts/src/main/resources/messages_de_DE.properties flys-artifacts/src/main/resources/messages_en.properties
diffstat 6 files changed, 27 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Sep 17 09:40:00 2012 +0000
+++ b/flys-artifacts/ChangeLog	Mon Sep 17 10:07:35 2012 +0000
@@ -1,3 +1,15 @@
+2012-09-17  Ingo Weinzierl <ingo@intevation.de>
+
+	* 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 missing translations
+	  for state to select soundings.
+
+	* src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java:
+	  Added more debug output to find out how many single and epochs where
+	  found.
+
 2012-09-17  Ingo Weinzierl <ingo@intevation.de>
 
 	* doc/conf/second-themes.xml,
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java	Mon Sep 17 09:40:00 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java	Mon Sep 17 10:07:35 2012 +0000
@@ -75,9 +75,13 @@
     ) {
         List<BedHeightSingle> singles =
             BedHeightSingle.getBedHeightSingles(river, kmLo, kmHi);
-
+        
         if (singles != null) {
-            for (int i = 0, S = singles.size(); i < S; i++) {
+            int size = singles.size();
+            
+            logger.debug("Found " + size + " singles.");
+            
+            for (int i = 0; i < size; i++) {
                 BedHeightSingle s = singles.get(i);
 
                 String id    = PREFIX_SINGLE + s.getId();
@@ -99,7 +103,11 @@
             BedHeightEpoch.getBedHeightEpochs(river, kmLo, kmHi);
 
         if (epochs != null) {
-            for (int i = 0, E = epochs.size(); i < E; i++) {
+            int size = epochs.size();
+            
+            logger.debug("Found " + size + " epochs.");
+            
+            for (int i = 0; i < size; i++) {
                 BedHeightEpoch e = epochs.get(i);
 
                 String id    = PREFIX_EPOCH + e.getId();
--- a/flys-artifacts/src/main/resources/messages.properties	Mon Sep 17 09:40:00 2012 +0000
+++ b/flys-artifacts/src/main/resources/messages.properties	Mon Sep 17 10:07:35 2012 +0000
@@ -50,6 +50,7 @@
 state.minfo.bed.location = Location/Distance
 state.minfo.bed.periods = Periods
 state.minfo.bed.char_diameter = Characteristic Diameter
+state.minfo.soundings = Choose Soundings
 
 year=Year
 epoch=Epoch
--- a/flys-artifacts/src/main/resources/messages_de.properties	Mon Sep 17 09:40:00 2012 +0000
+++ b/flys-artifacts/src/main/resources/messages_de.properties	Mon Sep 17 10:07:35 2012 +0000
@@ -50,6 +50,7 @@
 state.minfo.bed.location = Ort(e)/Strecke
 state.minfo.bed.periods = Zeitraum/Zeitr\u00e4ume
 state.minfo.bed.char_diameter = Charakteristischer Durchmesser
+state.minfo.soundings = Wahl der Peilungen
 
 year=Jahr
 epoch=Epoche
--- a/flys-artifacts/src/main/resources/messages_de_DE.properties	Mon Sep 17 09:40:00 2012 +0000
+++ b/flys-artifacts/src/main/resources/messages_de_DE.properties	Mon Sep 17 10:07:35 2012 +0000
@@ -50,6 +50,7 @@
 state.minfo.bed.location = Ort(e)/Strecke
 state.minfo.bed.periods = Zeitraum/Zeitr\u00e4ume
 state.minfo.bed.char_diameter = Charakteristischer Durchmesser
+state.minfo.soundings = Wahl der Peilungen
 
 year=Jahr
 epoch=Epoche
--- a/flys-artifacts/src/main/resources/messages_en.properties	Mon Sep 17 09:40:00 2012 +0000
+++ b/flys-artifacts/src/main/resources/messages_en.properties	Mon Sep 17 10:07:35 2012 +0000
@@ -50,6 +50,7 @@
 state.minfo.bed.location = Location/Distance
 state.minfo.bed.periods = Periods
 state.minfo.bed.char_diameter = Characteristic Diameter
+state.minfo.soundings = Choose Soundings
 
 year=Year
 epoch=Epoch

http://dive4elements.wald.intevation.org