diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java @ 3520:0b576ca67cd5

i18n for logo placement. flys-client/trunk@5299 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 29 Aug 2012 16:09:39 +0000
parents c657c0bbcf8f
children a1610c7e4a4e
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java	Wed Aug 29 13:55:40 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java	Wed Aug 29 16:09:39 2012 +0000
@@ -313,9 +313,11 @@
         }
 
         String choiceAttribute = sp.getAttribute("choice");
+
         if (choiceAttribute != null && choiceAttribute.equals("logo")) {
             SelectItem logoChooser = new SelectItem();
             LinkedHashMap valueMap = new LinkedHashMap<String, String>();
+            valueMap.put("none", MSG.getString("none"));
             valueMap.put("BfG", "Bfg");
             valueMap.put("Intevation", "Intevation");
             logoChooser.setValueMap(valueMap);
@@ -340,9 +342,9 @@
         else if (choiceAttribute != null && choiceAttribute.equals("placeh")) {
             SelectItem placeChooser = new SelectItem();
             LinkedHashMap valueMap = new LinkedHashMap<String, String>();
-            valueMap.put("right", "right");
-            valueMap.put("left", "left");
-            valueMap.put("center", "center");
+            valueMap.put("right", MSG.getString("right"));
+            valueMap.put("left", MSG.getString("left"));
+            valueMap.put("center", MSG.getString("center"));
             placeChooser.setValueMap(valueMap);
             placeChooser.setTitleStyle("color:#000;");
             placeChooser.setTitleAlign(Alignment.LEFT);
@@ -365,9 +367,9 @@
         else if (choiceAttribute != null && choiceAttribute.equals("placev")) {
             SelectItem placeChooser = new SelectItem();
             LinkedHashMap valueMap = new LinkedHashMap<String, String>();
-            valueMap.put("top", "top");
-            valueMap.put("bottom", "bottom");
-            valueMap.put("center", "center");
+            valueMap.put("top", MSG.getString("top"));
+            valueMap.put("bottom", MSG.getString("bottom"));
+            valueMap.put("center", MSG.getString("center"));
             placeChooser.setValueMap(valueMap);
             placeChooser.setTitleStyle("color:#000;");
             placeChooser.setTitleAlign(Alignment.LEFT);

http://dive4elements.wald.intevation.org