Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataFacet.java @ 8172:f2bbe09e516e
Fix fraction respectively facet names and descriptions.
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Mon, 01 Sep 2014 12:34:39 +0200 |
parents | ce35bdf3d750 |
children | 4b2b7593815c |
comparison
equal
deleted
inserted
replaced
8171:bb770daccd1d | 8172:f2bbe09e516e |
---|---|
77 CallMeta meta = context.getMeta(); | 77 CallMeta meta = context.getMeta(); |
78 /* descriptions of real calculation results have to be distinguished | 78 /* descriptions of real calculation results have to be distinguished |
79 from simple fractions from the database */ | 79 from simple fractions from the database */ |
80 String isCalculated = fraction_name.equals("total") || | 80 String isCalculated = fraction_name.equals("total") || |
81 fraction_name.equals("bed_load") || | 81 fraction_name.equals("bed_load") || |
82 fraction_name.equals("suspended_load") ? "calc." : ""; | 82 fraction_name.equals("bed_load_susp_sand") ? "calc." : ""; |
83 description = Resources.getMsg( | 83 description = Resources.getMsg( |
84 meta, | 84 meta, |
85 "facet.sedimentload." + isCalculated + fraction_name, | 85 "facet.sedimentload." + isCalculated + fraction_name, |
86 "Error: please add l10n for facet.sedimentload." + fraction_name, | |
87 new Object[] { periodString, i18nUnit }); | 86 new Object[] { periodString, i18nUnit }); |
88 | 87 |
89 /* Is this necessary? */ | 88 /* Is this necessary? */ |
90 metaData.put("X", "chart.longitudinal.section.xaxis.label"); | 89 metaData.put("X", "chart.longitudinal.section.xaxis.label"); |
91 metaData.put("Y", ""); | 90 metaData.put("Y", ""); |