changeset 9420:2c8ba17b807e

i10n navi chart record handler
author gernotbelger
date Fri, 17 Aug 2018 09:41:40 +0200
parents a31cb674ddd1
children 53e26734e4d2 e567fac95e3d
files gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartRecordHandler.java
diffstat 4 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java	Fri Aug 17 09:22:16 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java	Fri Aug 17 09:41:40 2018 +0200
@@ -1614,4 +1614,6 @@
     String bundu_ws_wq_info();
 
     String error_invalid_integer_positive_required();
+
+    String naviThemeOutOfRange();
 }
\ No newline at end of file
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties	Fri Aug 17 09:22:16 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties	Fri Aug 17 09:41:40 2018 +0200
@@ -867,4 +867,6 @@
 sinfo_columnlabel_soundings = Wahl der Peilung
 sinfo_columnlabel_waterlevels = Wahl des Wasserspiegels
 sinfo_sounding_waterlevel_select_waterlevel = W\u00e4hlen Sie zuerst eine Peilung
-sinfo_deactivate_intelligent_datacord = Intelligente Datenkorbfilterung ausschalten
\ No newline at end of file
+sinfo_deactivate_intelligent_datacord = Intelligente Datenkorbfilterung ausschalten
+
+naviThemeOutOfRange = au\u00dferh. G\u00fcltigkeitsb.
\ No newline at end of file
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties	Fri Aug 17 09:22:16 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties	Fri Aug 17 09:41:40 2018 +0200
@@ -867,4 +867,6 @@
 sinfo_columnlabel_soundings = Wahl der Peilung
 sinfo_columnlabel_waterlevels = Wahl des Wasserspiegels
 sinfo_sounding_waterlevel_select_waterlevel = W\u00e4hlen Sie zuerst eine Peilung
-sinfo_deactivate_intelligent_datacord = Intelligente Datenkorbfilterung ausschalten
\ No newline at end of file
+sinfo_deactivate_intelligent_datacord = Intelligente Datenkorbfilterung ausschalten
+
+naviThemeOutOfRange = au\u00dferh. G\u00fcltigkeitsb.
\ No newline at end of file
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartRecordHandler.java	Fri Aug 17 09:22:16 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartRecordHandler.java	Fri Aug 17 09:41:40 2018 +0200
@@ -9,12 +9,14 @@
  */
 package org.dive4elements.river.client.client.ui.chart;
 
+import org.dive4elements.river.client.client.FLYSConstants;
 import org.dive4elements.river.client.client.ui.CollectionView;
 import org.dive4elements.river.client.client.ui.IThemeRecordHandler;
 import org.dive4elements.river.client.shared.model.AttributedTheme;
 import org.dive4elements.river.client.shared.model.FacetRecord;
 import org.dive4elements.river.client.shared.model.Theme;
 
+import com.google.gwt.core.client.GWT;
 import com.smartgwt.client.widgets.grid.CellFormatter;
 import com.smartgwt.client.widgets.grid.ListGridRecord;
 
@@ -24,8 +26,11 @@
 final class NaviChartRecordHandler implements IThemeRecordHandler, CellFormatter {
 
     private static final String STYLE_CLASS_NAVI_CHART_GRAYED = "naviChartGrayed";
+
     private final CollectionView collectionView;
 
+    private final FLYSConstants msg = GWT.create(FLYSConstants.class);
+
     public NaviChartRecordHandler(final CollectionView collectionView) {
         this.collectionView = collectionView;
     }
@@ -74,8 +79,7 @@
         if (isOutsideRange) {
             return new StringBuilder(description) //
                     .append(" (") //
-                    // FIXME: i10n
-                    .append("auß. Gültigkeitsbereich") //
+                    .append(this.msg.naviThemeOutOfRange()) //
                     .append(")") //
                     .toString();
         }

http://dive4elements.wald.intevation.org