changeset 7958:632c724fed2d

i18n for WMS legend window title.
author Tom Gottfried <tom@intevation.de>
date Fri, 20 Jun 2014 12:51:08 +0200
parents 26971f97105f
children 8e320b5933de
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/FLYSConstants_en.properties gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java
diffstat 5 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java	Thu Jun 19 18:20:39 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java	Fri Jun 20 12:51:08 2014 +0200
@@ -108,6 +108,8 @@
 
     String legend();
 
+    String wms_legend();
+
     String chart_title();
 
     String chart_subtitle();
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties	Thu Jun 19 18:20:39 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties	Fri Jun 20 12:51:08 2014 +0200
@@ -39,6 +39,7 @@
 diagram = Chart
 axes = Axes
 legend = Legend
+wms_legend= WMS Legend
 chart_title = Title
 chart_subtitle = Subtitle
 grid = Grid
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties	Thu Jun 19 18:20:39 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties	Fri Jun 20 12:51:08 2014 +0200
@@ -39,6 +39,7 @@
 diagram = Diagramm
 axes = Achsen
 legend = Legende
+wms_legend= WMS Legende
 chart_title = Titel
 chart_subtitle = Untertitel
 grid = Gitternetz
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_en.properties	Thu Jun 19 18:20:39 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_en.properties	Fri Jun 20 12:51:08 2014 +0200
@@ -39,6 +39,7 @@
 diagram = Chart
 axes = Axes
 legend = Legend
+wms_legend= WMS Legend
 chart_title = Title
 chart_subtitle = Subtitle
 grid = Grid
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java	Thu Jun 19 18:20:39 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java	Fri Jun 20 12:51:08 2014 +0200
@@ -10,6 +10,8 @@
 
 import java.util.List;
 
+import com.google.gwt.core.client.GWT;
+
 import com.smartgwt.client.types.ImageStyle;
 import com.smartgwt.client.types.VerticalAlignment;
 import com.smartgwt.client.widgets.Canvas;
@@ -19,6 +21,8 @@
 import com.smartgwt.client.widgets.layout.HLayout;
 import com.smartgwt.client.widgets.layout.VLayout;
 
+import org.dive4elements.river.client.client.FLYSConstants;
+
 import org.dive4elements.river.client.shared.MapUtils;
 import org.dive4elements.river.client.shared.model.AttributedTheme;
 import org.dive4elements.river.client.shared.model.Theme;
@@ -27,10 +31,13 @@
 
 public class LegendWindow extends Window {
 
+    protected FLYSConstants MSG = GWT.create(FLYSConstants.class);
+
     private ThemeList themeList;
 
     private VLayout legendContainer;
 
+
     public LegendWindow(ThemeList themeList) {
         this.themeList = themeList;
         this.legendContainer = new VLayout();
@@ -92,7 +99,7 @@
         legendContainer.setLayoutAlign(VerticalAlignment.TOP);
         legendContainer.setAlign(VerticalAlignment.CENTER);
 
-        setTitle("WMS Legend");
+        setTitle(MSG.wms_legend());
         setAutoSize(true);
         setCanDragResize(true);
         setIsModal(false);

http://dive4elements.wald.intevation.org