Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/DifferencesState.java @ 6784:4d157de77d86
issue1060: i18n.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 08 Aug 2013 15:46:18 +0200 |
parents | 7b81b3c3c0fa |
children | 6f6a63ab3ced |
comparison
equal
deleted
inserted
replaced
6783:40a562030d64 | 6784:4d157de77d86 |
---|---|
125 stateId, | 125 stateId, |
126 hash)); | 126 hash)); |
127 newFacets.add(new BedDiffYearFacet( | 127 newFacets.add(new BedDiffYearFacet( |
128 idx, | 128 idx, |
129 BED_DIFFERENCE_MORPH_WIDTH, | 129 BED_DIFFERENCE_MORPH_WIDTH, |
130 createBedDiffMorphDescription( | 130 createBedDiffMorphDescription(meta), |
131 meta, | |
132 (BedDiffYearResult)results[idx]), | |
133 ComputeType.ADVANCE, | 131 ComputeType.ADVANCE, |
134 stateId, | 132 stateId, |
135 hash)); | 133 hash)); |
136 newFacets.add(new BedDiffYearFacet( | 134 newFacets.add(new BedDiffYearFacet( |
137 idx, | 135 idx, |
340 } | 338 } |
341 return Resources.getMsg(meta, i18n, i18n, new Object[] { range }); | 339 return Resources.getMsg(meta, i18n, i18n, new Object[] { range }); |
342 } | 340 } |
343 | 341 |
344 protected String createBedDiffMorphDescription( | 342 protected String createBedDiffMorphDescription( |
345 CallMeta meta, | 343 CallMeta meta) { |
346 BedDiffYearResult result) { | |
347 String range = result.getStart() + " - " + result.getEnd(); | |
348 | |
349 return Resources.getMsg(meta, I18N_FACET_BED_DIFF_MORPH, | 344 return Resources.getMsg(meta, I18N_FACET_BED_DIFF_MORPH, |
350 I18N_FACET_BED_DIFF_MORPH, new Object[] { range }); | 345 I18N_FACET_BED_DIFF_MORPH); |
351 } | 346 } |
352 | 347 |
353 protected String createBedDiffAbsoluteDescription( | 348 protected String createBedDiffAbsoluteDescription( |
354 CallMeta meta, | 349 CallMeta meta, |
355 BedDiffYearResult result, | 350 BedDiffYearResult result, |