changeset 9607:68acd2f44609

left/right h Feld
author dnt_bjoernsen <d.tironi@bjoernsen.de>
date Thu, 12 Sep 2019 15:36:01 +0200
parents e27155374e85
children 96c41d4f4aba
files artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstDepthProcessor.java artifacts/src/main/resources/messages.properties artifacts/src/main/resources/messages_de.properties
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstDepthProcessor.java	Fri Aug 23 18:07:04 2019 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstDepthProcessor.java	Thu Sep 12 15:36:01 2019 +0200
@@ -76,8 +76,11 @@
 
     public static Facet createFieldDepthFacet(final CallContext context, final String hash, final String id, final int facetIndex, final int resultIndex,
             final int fieldIndex) {
+        final String leftRightAppendixKey = BedHeightValueType.field(fieldIndex).getLeftRightStringAppendix();
+        final String leftRightAppendix = Resources.getMsg(context.getMeta(), leftRightAppendixKey, leftRightAppendixKey);
 
-        final String description = Resources.getMsg(context.getMeta(), FACET_FIELD_DEPTH_DESCRIPTION, FACET_FIELD_DEPTH_DESCRIPTION, fieldIndex);
+        final String description = Resources.getMsg(context.getMeta(), FACET_FIELD_DEPTH_DESCRIPTION, FACET_FIELD_DEPTH_DESCRIPTION, fieldIndex,
+                leftRightAppendix);
         final String facetName = String.format(FACET_FIELD_DEPTH_FORMAT, fieldIndex);
         return new BezugswstResultFacet(facetIndex, resultIndex, facetName, description, AXIS_LABEL, id, hash);
     }
--- a/artifacts/src/main/resources/messages.properties	Fri Aug 23 18:07:04 2019 +0200
+++ b/artifacts/src/main/resources/messages.properties	Thu Sep 12 15:36:01 2019 +0200
@@ -1347,7 +1347,7 @@
 bundu.chart.depth.section.title = h-L\u00e4ngsschnitt
 bundu_facet_flowdepth.filtered.description = h (BZWS, {0})
 bundu_facet_channeldepth.description = h (design depth)
-bundu_facet_field_depth.description = h Field {0}
+bundu_facet_field_depth.description = h Field {0} {1}
 bundu.channelfinder.empty = The database does not contain any values for the river and the reference year
 bundu.channelfinder.missing = no navigation channel data available
 
--- a/artifacts/src/main/resources/messages_de.properties	Fri Aug 23 18:07:04 2019 +0200
+++ b/artifacts/src/main/resources/messages_de.properties	Thu Sep 12 15:36:01 2019 +0200
@@ -1347,7 +1347,7 @@
 bundu.chart.depth.section.title = h-L\u00e4ngsschnitt
 bundu_facet_flowdepth.filtered.description = h (BZWS, {0})
 bundu_facet_channeldepth.description = h (Solltiefe)
-bundu_facet_field_depth.description = h Feld {0}
+bundu_facet_field_depth.description = h Feld {0} {1}
 bundu.channelfinder.empty = Die Datenbank enth\u00e4lt keine Fahrrinnedaten f\u00fcr das Gew\u00e4sser und das Bezugsjahr
 bundu.channelfinder.missing = keine Fahrrinnedaten vorhanden
 

http://dive4elements.wald.intevation.org