diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java @ 7958:632c724fed2d

i18n for WMS legend window title.
author Tom Gottfried <tom@intevation.de>
date Fri, 20 Jun 2014 12:51:08 +0200
parents ea9eef426962
children 5e38e2924c07
line wrap: on
line diff
--- 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