changeset 8000:928891df0173 facet-metadata

Translate csv meta data lines in middle bed height chart export.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 03 Jul 2014 11:32:22 +0200
parents 3bdb9f99b4a0
children 5277483044d9
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/MiddleBedHeight.java
diffstat 1 files changed, 28 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/MiddleBedHeight.java	Thu Jul 03 11:31:26 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/MiddleBedHeight.java	Thu Jul 03 11:32:22 2014 +0200
@@ -78,10 +78,20 @@
                     id,
                     hash
                 );
-                //TODO: I18N!
-                mf.addMetaData("Current elevation model", d.getCurElevationModel());
-                mf.addMetaData("Old elevation model", d.getOldElevationModel());
-                mf.addMetaData("Unit", u.getName());
+                mf.addMetaData(Resources.getMsg(
+                    context.getMeta(),
+                    "chart.bedheight_middle.export.curelev",
+                    "Current elevation model"),
+                    d.getCurElevationModel());
+                mf.addMetaData(Resources.getMsg(
+                    context.getMeta(),
+                    "chart.bedheight_middle.export.oldelev",
+                    "Old elevation model"),
+                    d.getOldElevationModel());
+                mf.addMetaData(Resources.getMsg(
+                    context.getMeta(),
+                    "chart.bedheight_middle.export.unit",
+                    "River elevation model"), u.getName());
                 newFacets.add(mf);
             }
             else {
@@ -93,10 +103,20 @@
                     id,
                     hash
                 );
-                //TODO: I18N!
-                mf.addMetaData("Current elevation model", d.getCurElevationModel());
-                mf.addMetaData("Old elevation model", d.getOldElevationModel());
-                mf.addMetaData("Unit", u.getName());
+                mf.addMetaData(Resources.getMsg(
+                    context.getMeta(),
+                    "chart.bedheight_middle.export.curelev",
+                    "Current elevation model"),
+                    d.getCurElevationModel());
+                mf.addMetaData(Resources.getMsg(
+                    context.getMeta(),
+                    "chart.bedheight_middle.export.oldelev",
+                    "Old elevation model"),
+                    d.getOldElevationModel());
+                mf.addMetaData(Resources.getMsg(
+                    context.getMeta(),
+                    "chart.bedheight_middle.export.unit",
+                    "River elevation model"), u.getName());
                 newFacets.add(mf);
             }
 

http://dive4elements.wald.intevation.org