[PATCH 5 of 7] left/right h Feld

Wald Commits scm-commit at wald.intevation.org
Wed Oct 9 15:45:07 CEST 2019


# HG changeset patch
# User dnt_bjoernsen <d.tironi at bjoernsen.de>
# Date 1568295361 -7200
#      Thu Sep 12 15:36:01 2019 +0200
# Node ID 68acd2f44609a647e8895aa1a58f4da04e63dcf5
# Parent  e27155374e85030249f7204bc00a3c36daf2a209
left/right h Feld

diff -r e27155374e85 -r 68acd2f44609 artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstDepthProcessor.java
--- 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);
     }
diff -r e27155374e85 -r 68acd2f44609 artifacts/src/main/resources/messages.properties
--- 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
 
diff -r e27155374e85 -r 68acd2f44609 artifacts/src/main/resources/messages_de.properties
--- 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
 


More information about the Dive4Elements-commits mailing list