# HG changeset patch # User Felix Wolfsteller # Date 1359627763 -3600 # Node ID 57652f905a874e023d82132c6f38b4fc97f46fa8 # Parent eb1cde786abff290230255180de8d4d7365213f7 HistoricalDischargeComputeState: Fix flys/issue664 i18n numbered facettes. diff -r eb1cde786abf -r 57652f905a87 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/HistoricalDischargeComputeState.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/HistoricalDischargeComputeState.java Thu Jan 31 11:21:37 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/HistoricalDischargeComputeState.java Thu Jan 31 11:22:43 2013 +0100 @@ -1,5 +1,7 @@ package de.intevation.flys.artifacts.states; +import java.text.NumberFormat; + import java.util.List; import org.apache.log4j.Logger; @@ -137,15 +139,17 @@ double[] ws = access.getWs(); double[] qs = access.getQs(); + NumberFormat format = NumberFormat.getInstance( + Resources.getLocale(cc.getMeta())); for (int k = 0; k < ws.length; k++) { facets.add(new HistoricalDischargeWQFacet(k, - HISTORICAL_DISCHARGE_WQ_W, "W=" + ws[k], ComputeType.ADVANCE, + HISTORICAL_DISCHARGE_WQ_W, "W=" + format.format(ws[k]), ComputeType.ADVANCE, hash, getID(), ws[k])); } for (int k = 0; k < qs.length; k++) { facets.add(new HistoricalDischargeWQFacet(k, - HISTORICAL_DISCHARGE_WQ_Q, "Q=" + qs[k], ComputeType.ADVANCE, + HISTORICAL_DISCHARGE_WQ_Q, "Q=" + format.format(qs[k]), ComputeType.ADVANCE, hash, getID(), qs[k])); }