comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataFacet.java @ 8142:d4e4dde1d5cb

With the exception of real calculation results, descriptions of sediment loads can all follow the same pattern.
author Tom Gottfried <tom@intevation.de>
date Tue, 26 Aug 2014 17:16:21 +0200
parents 8eb25cbfe242
children ce35bdf3d750
comparison
equal deleted inserted replaced
8141:37cdfad302cb 8142:d4e4dde1d5cb
69 } 69 }
70 70
71 name = BASE_NAME + "." + typeUnit + "." + fraction_name; 71 name = BASE_NAME + "." + typeUnit + "." + fraction_name;
72 72
73 CallMeta meta = context.getMeta(); 73 CallMeta meta = context.getMeta();
74 /* descriptions of real calculation results have to be distinguished
75 from simple fractions from the database */
76 String isCalculated = fraction_name.equals("total") ||
77 fraction_name.equals("bed_load") ||
78 fraction_name.equals("suspended_load") ? "calc." : "";
74 description = Resources.getMsg( 79 description = Resources.getMsg(
75 meta, 80 meta,
76 "facet.sedimentload." + fraction_name, 81 "facet.sedimentload." + isCalculated + fraction_name,
77 "Error: please add l10n for facet.sedimentload." + fraction_name, 82 "Error: please add l10n for facet.sedimentload." + fraction_name,
78 new Object[] { i18nUnit }); 83 /* TODO handle multiple periods per fraction */
84 new Object[] { "period", i18nUnit });
79 85
80 /* Is this necessary? */ 86 /* Is this necessary? */
81 metaData.put("X", "chart.longitudinal.section.xaxis.label"); 87 metaData.put("X", "chart.longitudinal.section.xaxis.label");
82 metaData.put("Y", ""); 88 metaData.put("Y", "");
83 } 89 }

http://dive4elements.wald.intevation.org