# HG changeset patch # User Ingo Weinzierl # Date 1321904306 0 # Node ID 6bb2c1ffab2b5b370a74186f4433f1d11fa8c182 # Parent ec6e4dad127908bc144bb4ae4ab08af472c6350a Introduced i18n in the ExternalWMSWindow. flys-client/trunk@3297 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r ec6e4dad1279 -r 6bb2c1ffab2b flys-client/ChangeLog --- a/flys-client/ChangeLog Mon Nov 21 18:15:44 2011 +0000 +++ b/flys-client/ChangeLog Mon Nov 21 19:38:26 2011 +0000 @@ -1,3 +1,14 @@ +2011-11-21 Ingo Weinzierl + + * src/main/java/de/intevation/flys/client/client/ui/map/ExternalWMSWindow.java: + Introduced I18N. + + * src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants.java: Added + strings used in ExternalWMSWindow. + 2011-11-21 Ingo Weinzierl * src/main/java/de/intevation/flys/client/shared/model/ContactInformation.java: diff -r ec6e4dad1279 -r 6bb2c1ffab2b flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Mon Nov 21 18:15:44 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Mon Nov 21 19:38:26 2011 +0000 @@ -540,6 +540,14 @@ // Capabilities Information Panel + String addwmsInputTitle(); + + String addwmsInfoTitle(); + + String addwmsLayerTitle(); + + String addwmsInvalidURL(); + String capabilitiesHint(); String capabilitiesTitle(); diff -r ec6e4dad1279 -r 6bb2c1ffab2b flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Mon Nov 21 18:15:44 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Mon Nov 21 19:38:26 2011 +0000 @@ -279,6 +279,10 @@ background = Background Map # capabilities information panel +addwmsInputTitle = Base URL of WMS service +addwmsInfoTitle = Information about WMS service +addwmsLayerTitle = Choose Layer +addwmsInvalidURL = The URL is not valid. capabilitiesHint = Please notice the information of the WMS service. capabilitiesTitle = Title capabilitiesURL = URL diff -r ec6e4dad1279 -r 6bb2c1ffab2b flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Mon Nov 21 18:15:44 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Mon Nov 21 19:38:26 2011 +0000 @@ -279,6 +279,10 @@ background = Hintergrundkarte # capabilities information panel +addwmsInputTitle = Basis URL des WMS Dienstes +addwmsInfoTitle = Informationen des WMS Dienstes +addwmsLayerTitle = Ebene ausw\u00e4hlen +addwmsInvalidURL = Die URL ist nicht g\u00fcltig. capabilitiesHint = Bitte beachten Sie die folgenden Informationen des WMS-Dienstes. capabilitiesTitle = Titel capabilitiesURL = URL diff -r ec6e4dad1279 -r 6bb2c1ffab2b flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Mon Nov 21 18:15:44 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Mon Nov 21 19:38:26 2011 +0000 @@ -279,6 +279,10 @@ background = Background Layer # capabilities information panel +addwmsInputTitle = Base URL of WMS service +addwmsInfoTitle = Information about WMS service +addwmsLayerTitle = Choose Layer +addwmsInvalidURL = The URL is not valid. capabilitiesHint = Please notice the information of the WMS service. capabilitiesTitle = Title capabilitiesURL = URL diff -r ec6e4dad1279 -r 6bb2c1ffab2b flys-client/src/main/java/de/intevation/flys/client/client/ui/map/ExternalWMSWindow.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/ExternalWMSWindow.java Mon Nov 21 18:15:44 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/ExternalWMSWindow.java Mon Nov 21 19:38:26 2011 +0000 @@ -127,8 +127,7 @@ protected Layout createInputPanel() { - // TODO I18N - setTitle("Basis URL des WMS Dienstes"); + setTitle(MSG.addwmsInputTitle()); final TextBox url = new TextBox(); url.setHeight("25px"); @@ -145,8 +144,7 @@ String newUrl = url.getValue(); if (!isUrlValid(newUrl)) { - // TODO I18N - SC.warn("Enter a valid URL!"); + SC.warn(MSG.addwmsInvalidURL()); return; } @@ -176,8 +174,7 @@ protected Layout createInfoPanel() { - // TODO I18N - setTitle("Informationen des WMS Dienstes"); + setTitle(MSG.addwmsInfoTitle()); ClickHandler backHandler = new ClickHandler() { @Override @@ -214,8 +211,7 @@ protected Layout createLayersPanel() { - // TODO I18N - setTitle("Ebene auswählen"); + setTitle(MSG.addwmsLayerTitle()); ClickHandler backHandler = new ClickHandler() { @Override