[PATCH] Reconstruct facet description of sediment load longitudinal sections. i18n will follow

Wald Commits scm-commit at wald.intevation.org
Wed Aug 20 17:48:40 CEST 2014


# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1408549678 -7200
# Node ID 84f42caeea2a57d61f4001a2e66808987fb3810f
# Parent  f5c0ed04f67324ac0b1e207f89d7a97083efe640
Reconstruct facet description of sediment load longitudinal sections. i18n will follow.

diff -r f5c0ed04f673 -r 84f42caeea2a artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Wed Aug 20 17:07:17 2014 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Wed Aug 20 17:47:58 2014 +0200
@@ -1432,7 +1432,7 @@
             factory="sedimentload_ls"
             target_out="{$out}"
             info="{$description}"
-            ids="{$syid}:{$syear}" />
+            ids="{$syid};{$syear}" />
     </dc:macro>
 
     <dc:macro name="epoch-load_ls">
diff -r f5c0ed04f673 -r 84f42caeea2a artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.java	Wed Aug 20 17:07:17 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.java	Wed Aug 20 17:47:58 2014 +0200
@@ -131,11 +131,15 @@
          * See issue 1681 for details. */
         name = NAME;
 
+        String i18nUnit = "";
+
         if (theLoad.getUnit().getName().equals("m3/a")) {
             /* unit_id is NOT NULL */
             name += ".m3a";
+            i18nUnit = "m\u00b3/a";
         } else {
             name += ".ta";
+            i18nUnit = "t/a";
         }
 
         String gfName;
@@ -152,7 +156,7 @@
                 callMeta,
                 "facet.sedimentload.ls." + gfName,
                 "Error: please add l10n for facet.sedimentload.ls." + gfName,
-                new Object[] { desc });
+                new Object[] { desc, i18nUnit });
         ((D4EArtifact)artifact).addStringData("load_id", idStr);
     }
 


More information about the Dive4Elements-commits mailing list