diff gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java @ 342:bb1afbbd93e4

Read x-axis label for timeseries charts from ressources, instead of a hard coded string in source. gnv-artifacts/trunk@409 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 11 Dec 2009 08:44:46 +0000
parents e964a3d8f7bc
children 2f7a28f211c7
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java	Wed Dec 09 10:22:49 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java	Fri Dec 11 08:44:46 2009 +0000
@@ -93,7 +93,7 @@
 
     private static List<TimeGap> timeGapDefinitions = null;
 
-    protected String domainLable = "Zeit [UTC]";
+    protected String domainLable = "chart.timeseries.title.xaxis";
 
     protected String featureValuesName = "featureid";
     protected String parameterValuesName = "parameterid";
@@ -230,7 +230,11 @@
                 ChartLabels chartLables = new ChartLabels(
                     createChartTitle(locale, uuid),
                     createChartSubtitle(locale, uuid),
-                    domainLable
+                    RessourceFactory.getInstance().getRessource(
+                        locale,
+                        domainLable,
+                        domainLable
+                    )
                 );
 
                 String exportFormat = getExportFormat(mimeType);
@@ -279,7 +283,12 @@
                     new ChartLabels(
                         createChartTitle(locale, uuid),
                         createChartSubtitle(locale, uuid),
-                        domainLable),
+                        RessourceFactory.getInstance().getRessource(
+                            locale,
+                            domainLable,
+                            domainLable
+                        )
+                    ),
                     uuid,
                     "A4",
                     true,
@@ -315,7 +324,11 @@
                     new ChartLabels(
                         createChartTitle(locale, uuid),
                         createChartSubtitle(locale, uuid),
-                        domainLable
+                        RessourceFactory.getInstance().getRessource(
+                            locale,
+                            domainLable,
+                            domainLable
+                        )
                     ),
                     uuid,
                     locale,

http://dive4elements.wald.intevation.org