[PATCH 3 of 4] issue1658: Add unit name to facet description
Wald Commits
scm-commit at wald.intevation.org
Mon Nov 4 17:24:59 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1383581720 -3600
# Node ID 0d45b1d6e432438c54eb22b875aa9a2445fce78d
# Parent b6e127ffc32527cfaf64f29524a376e461a76e2c
issue1658: Add unit name to facet description.
diff -r b6e127ffc325 -r 0d45b1d6e432 artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java Mon Nov 04 17:13:44 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java Mon Nov 04 17:15:20 2013 +0100
@@ -161,6 +161,10 @@
boolean unitIsTA =
SedimentLoadFactory.getSedimentYieldUnitName(id).startsWith("t");
+ name += " " + (unitIsTA)
+ ? Resources.getMsg(callMeta, "state.minfo.sediment.load.t_per_a", "(t/a)")
+ : Resources.getMsg(callMeta, "state.minfo.sediment.load.m3_per_a", "(m^3/a)");
+
String facetType = "";
if (fraction.equals("coarse")) {
if (unitIsTA) {
More information about the Dive4elements-commits
mailing list