changeset 7519:0d45b1d6e432

issue1658: Add unit name to facet description.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 04 Nov 2013 17:15:20 +0100
parents b6e127ffc325
children b8faaac71507
files artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {

http://dive4elements.wald.intevation.org