comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 102:33e24b33fc38

Improved the way how to i18n strings in our application. flys-client/trunk@1619 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 30 Mar 2011 08:33:24 +0000
parents f7967d12ce6e
children b92281182c6b
comparison
equal deleted inserted replaced
101:f7967d12ce6e 102:33e24b33fc38
327 protected void addOutputTab(String name, OutputMode out) { 327 protected void addOutputTab(String name, OutputMode out) {
328 GWT.log("Add new output tab for '" + name + "'"); 328 GWT.log("Add new output tab for '" + name + "'");
329 329
330 // TODO Source this out to a factory that creates the different 330 // TODO Source this out to a factory that creates the different
331 // OutputTabs. 331 // OutputTabs.
332 OutputTab tab = new ChartOutputTab(name, getCollection(), out); 332 String title = messages.getString(name);
333 OutputTab tab = new ChartOutputTab(title, getCollection(), out);
333 outputTabs.put(name, tab); 334 outputTabs.put(name, tab);
334 } 335 }
335 336
336 337
337 /** 338 /**

http://dive4elements.wald.intevation.org