diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.java @ 8222:1cd7225df846

Let official epochs be showy and remove detritus of 'yields' in datacage config.
author Tom Gottfried <tom@intevation.de>
date Mon, 08 Sep 2014 15:54:12 +0200
parents c657ddcf1fa6
children b32c1927f90d
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.java	Mon Sep 08 15:48:11 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.java	Mon Sep 08 15:54:12 2014 +0200
@@ -97,6 +97,7 @@
         String[] split = code.split(";");
         String idStr = split[0];
         String years = split.length >= 2 ? split[1] : "";
+        String kind  = split.length >= 3 ? split[2] : "";
 
         int id = Integer.valueOf(idStr);
         SedimentLoadLS theLoad = SedimentLoadLS.getSedimentLoadById(id);
@@ -138,8 +139,15 @@
         description = Resources.getMsg(
                 callMeta,
                 "facet.sedimentload." + gfName,
-                "Error: please add l10n for facet.sedimentload." + gfName,
                 new Object[] { years, i18nUnit });
+
+        if (kind.equals("official")) {
+            String descPrefix = Resources.getMsg(
+                    callMeta,
+                    "facet.sedimentload.prefix.offcial");
+            description = descPrefix + description;
+        }
+
         ((D4EArtifact)artifact).addStringData("load_id", idStr);
     }
 

http://dive4elements.wald.intevation.org