# HG changeset patch # User Raimund Renkert # Date 1324574895 0 # Node ID 2f525f54e4292d0fbc717ee47fd3c4ffd6b9361f # Parent 237e7450ae2e4416f871208f1be5d8c3e0a10a73 Issue 427. Changed visible strings in theme editor window to i18n strings. flys-client/trunk@3532 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 237e7450ae2e -r 2f525f54e429 flys-client/ChangeLog --- a/flys-client/ChangeLog Thu Dec 22 12:46:23 2011 +0000 +++ b/flys-client/ChangeLog Thu Dec 22 17:28:15 2011 +0000 @@ -1,3 +1,16 @@ +2011-12-22 Raimund Renkert + + Issue 427. + + * src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java: + Changed visible strings in editor window to i18n strings. + + * src/main/java/de/intevation/flys/client/client/FLYSConstants.java, + src/main/java/de/intevation/flys/client/client/FLYSConstants.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties: + Added i18n strings for editor window. + 2011-12-22 Raimund Renkert Save output settings. diff -r 237e7450ae2e -r 2f525f54e429 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 Thu Dec 22 12:46:23 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Thu Dec 22 17:28:15 2011 +0000 @@ -655,5 +655,29 @@ String subtitle(); String display_grid(); + + String linetype(); + + String textstyle(); + + String linecolor(); + + String textcolor(); + + String textsize(); + + String font(); + + String showpoints(); + + String showbackground(); + + String backgroundcolor(); + + String textorientation(); + + String linesize(); + + String showlines(); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r 237e7450ae2e -r 2f525f54e429 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 Thu Dec 22 12:46:23 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Thu Dec 22 17:28:15 2011 +0000 @@ -341,3 +341,16 @@ title = Title subtitle = Subtitle display_grid = Display grid + +linetype = Linetype +textstyle = Textstyle +linecolor = Linecolor +textcolor = Textcolor +textsize = Textsize +font = Font +showpoints = Show points +showbackground = Show background +backgroundcolor = Backgroundcolor +textorientation = Textorientation +linesize = Linesize +showlines = Show lines diff -r 237e7450ae2e -r 2f525f54e429 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 Thu Dec 22 12:46:23 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Thu Dec 22 17:28:15 2011 +0000 @@ -341,3 +341,16 @@ title = Titel subtitle = Untertitel display_grid = Gitterlinien anzeigen + +linetype = Linientyp +textstyle = Textstil +linecolor = Linienfarbe +textcolor = Textfarbe +textsize = Textgröße +font = Schriftart +showpoints = Punkte anzeigen +showbackground = Hintergrund anzeigen +backgroundcolor = Hintergrundfarbe +textorientation = Textausrichtung +linesize = Liniendicke +showlines = Linien anzeigen diff -r 237e7450ae2e -r 2f525f54e429 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 Thu Dec 22 12:46:23 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Thu Dec 22 17:28:15 2011 +0000 @@ -341,3 +341,16 @@ title = Title subtitle = Subtitle display_grid = Display grid + +linetype = Linetype +textstyle = Textstyle +linecolor = Linecolor +textcolor = Textcolor +textsize = Textsize +font = Font +showpoints = Show points +showbackground = Show background +backgroundcolor = Backgroundcolor +textorientation = Textorientation +linesize = Linesize +showlines = Show lines diff -r 237e7450ae2e -r 2f525f54e429 flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java Thu Dec 22 12:46:23 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java Thu Dec 22 17:28:15 2011 +0000 @@ -236,7 +236,7 @@ FormItem f; if(type.equals("int")) { - f = new SelectItem(name, dname); + f = new SelectItem(name, MSG.getString(name)); if (name.equals("linesize")) { f = createLineSizeUI(f); } @@ -256,7 +256,7 @@ } else if (type.equals("boolean")) { if(name.equals("textorientation")) { - f = new SelectItem(name, dname); + f = new SelectItem(name, MSG.getString(name)); LinkedHashMap valueMap = new LinkedHashMap(); valueMap.put("true", "horizontal"); valueMap.put("false", "vertical"); @@ -264,7 +264,7 @@ f.setValue(value); } else { - CheckboxItem c = new CheckboxItem(name, dname); + CheckboxItem c = new CheckboxItem(name, MSG.getString(name)); if(value.equals("true")) { c.setValue(true); } @@ -276,12 +276,12 @@ } } else if (type.equals("Color")) { - ColorPickerItem c = new ColorPickerItem(name, dname); + ColorPickerItem c = new ColorPickerItem(name, MSG.getString(name)); c.setValue(rgbToHtml(value)); f = c; } else if (type.equals("Dash")) { - f = new SelectItem(name, dname); + f = new SelectItem(name, MSG.getString(name)); LinkedHashMap valueIcons = new LinkedHashMap(); f.setImageURLPrefix(GWT.getHostPageBaseURL() + "images/linestyle-dash-"); f.setImageURLSuffix(".png"); @@ -303,7 +303,7 @@ f.setValue(value); } else if (type.equals("Font")) { - f = new SelectItem(name, dname); + f = new SelectItem(name, MSG.getString(name)); LinkedHashMap valueMap = new LinkedHashMap(); valueMap.put("arial", "Arial"); valueMap.put("courier", "Courier"); @@ -313,7 +313,7 @@ f.setValue(value); } else if (type.equals("Style")) { - f = new SelectItem(name, dname); + f = new SelectItem(name, MSG.getString(name)); LinkedHashMap valueMap = new LinkedHashMap(); valueMap.put("standard", "Normal"); valueMap.put("bold", "Bold");