[PATCH 4 of 9] Translate csv meta data lines in middle bed height chart export
Wald Commits
scm-commit at wald.intevation.org
Thu Jul 3 12:31:32 CEST 2014
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1404379942 -7200
# Branch facet-metadata
# Node ID 928891df0173613ec407ba40e77489e0527802df
# Parent 3bdb9f99b4a0610cb7f9616d813eda96999dcc94
Translate csv meta data lines in middle bed height chart export.
diff -r 3bdb9f99b4a0 -r 928891df0173 artifacts/src/main/java/org/dive4elements/river/artifacts/states/MiddleBedHeight.java
--- 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);
}
More information about the Dive4Elements-commits
mailing list