Mercurial > dive4elements > river
changeset 1410:6bb2c1ffab2b
Introduced i18n in the ExternalWMSWindow.
flys-client/trunk@3297 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 21 Nov 2011 19:38:26 +0000 |
parents | ec6e4dad1279 |
children | 63be3137abac |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/map/ExternalWMSWindow.java |
diffstat | 6 files changed, 35 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ingo@intevation.de> + + * 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 <ingo@intevation.de> * src/main/java/de/intevation/flys/client/shared/model/ContactInformation.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();
--- 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
--- 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
--- 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
--- 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