# HG changeset patch # User Tom Gottfried # Date 1403261468 -7200 # Node ID 632c724fed2dcc8d65e43c93e96069982d295f5e # Parent 26971f97105fe02978ac018ef9ffb33171d03014 i18n for WMS legend window title. diff -r 26971f97105f -r 632c724fed2d gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java --- 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(); diff -r 26971f97105f -r 632c724fed2d gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties --- 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 diff -r 26971f97105f -r 632c724fed2d gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties --- 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 diff -r 26971f97105f -r 632c724fed2d gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_en.properties --- 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 diff -r 26971f97105f -r 632c724fed2d gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java --- 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);