# HG changeset patch # User Ingo Weinzierl # Date 1260521086 0 # Node ID bb1afbbd93e4a625616da4170b8452503ef05e19 # Parent 8937fd620e55d87eed5815e2e58b9e9e8c7b29b0 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 diff -r 8937fd620e55 -r bb1afbbd93e4 gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Wed Dec 09 10:22:49 2009 +0000 +++ b/gnv-artifacts/ChangeLog Fri Dec 11 08:44:46 2009 +0000 @@ -1,3 +1,17 @@ +2009-12-11 Ingo Weinzierl + + Cleared Issue104. + + * src/main/resources/lang/artifactMessages.properties, + src/main/resources/lang/artifactMessages_de_DE.properties, + src/main/resources/lang/artifactMessages_en.properties, + src/main/resources/lang/artifactMessages_de.properties: Added axis label + for timeseries charts. + + * src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java: + Removed hard coded axis label of timeseries charts. Read label from + ressources. + 2009-12-09 Ingo Weinzierl * src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java, diff -r 8937fd620e55 -r bb1afbbd93e4 gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java --- 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 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, diff -r 8937fd620e55 -r bb1afbbd93e4 gnv-artifacts/src/main/resources/lang/artifactMessages.properties --- a/gnv-artifacts/src/main/resources/lang/artifactMessages.properties Wed Dec 09 10:22:49 2009 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages.properties Fri Dec 11 08:44:46 2009 +0000 @@ -48,3 +48,5 @@ subareaid=Subarea depth=depth coordinate=coordinate + +chart.timeseries.title.xaxis=Time [UTC] diff -r 8937fd620e55 -r bb1afbbd93e4 gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties --- a/gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties Wed Dec 09 10:22:49 2009 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties Fri Dec 11 08:44:46 2009 +0000 @@ -48,3 +48,5 @@ subareaid=Teilgebiet depth=Tiefe coordinate=Koordinate + +chart.timeseries.title.xaxis=Zeit [UTC] diff -r 8937fd620e55 -r bb1afbbd93e4 gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties --- a/gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties Wed Dec 09 10:22:49 2009 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties Fri Dec 11 08:44:46 2009 +0000 @@ -48,3 +48,5 @@ subareaid=Teilgebiet depth=Tiefe coordinate=Koordinate + +chart.timeseries.title.xaxis=Zeit [UTC] diff -r 8937fd620e55 -r bb1afbbd93e4 gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties --- a/gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties Wed Dec 09 10:22:49 2009 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties Fri Dec 11 08:44:46 2009 +0000 @@ -48,3 +48,5 @@ subareaid=Subarea depth=depth coordinate=coordinate + +chart.timeseries.title.xaxis=Time [UTC]