changeset 5190:7b37876b2f51

WQAdaptedInputPanel: fix i18n, added todo as now method is full dupe.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 07 Mar 2013 15:22:01 +0100
parents 60b5fca4f357
children 4aa748db8be3
files flys-client/src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java	Thu Mar 07 15:20:09 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java	Thu Mar 07 15:22:01 2013 +0100
@@ -56,6 +56,9 @@
 {
     private static final long serialVersionUID = -3218827566805476423L;
 
+    /** The message class that provides i18n strings.*/
+    protected FLYSConstants MESSAGE = GWT.create(FLYSConstants.class);
+
     public static final String FIELD_WQ_MODE = "wq_isq";
     public static final String FIELD_WQ_W    = "W";
     public static final String FIELD_WQ_Q    = "Q";
@@ -133,14 +136,15 @@
     }
 
 
+    /** Inits the helper panel. */
+    // TODO duplicate in WQInputPanel
     protected void initHelperPanel() {
         tabs = new TabSet();
         tabs.setWidth100();
         tabs.setHeight100();
 
-        // TODO i18n
-        Tab wTab = new Tab("W");
-        Tab qTab = new Tab("Q / D");
+        Tab wTab = new Tab(MESSAGE.wq_table_w());
+        Tab qTab = new Tab(MESSAGE.wq_table_q());
 
         wTab.setPane(wTable);
         qTab.setPane(qdTable);

http://dive4elements.wald.intevation.org