# HG changeset patch # User Felix Wolfsteller # 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) {