Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.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 | f8c240f28c2a |
children | deaa50a8be82 |
comparison
equal
deleted
inserted
replaced
101:f7967d12ce6e | 102:33e24b33fc38 |
---|---|
200 return; | 200 return; |
201 } | 201 } |
202 | 202 |
203 // XXX We should change the following lines of code if we know | 203 // XXX We should change the following lines of code if we know |
204 // more about i18n in GWT. | 204 // more about i18n in GWT. |
205 if (module.equals("winfo")) { | 205 String newTitle = MSG.getString(module); |
206 setTitle(MSG.winfo()); | 206 setTitle(newTitle); |
207 } | 207 //if (module.equals("winfo")) { |
208 else if (module.equals("minfo")) { | 208 // setTitle(MSG.winfo()); |
209 setTitle(MSG.minfo()); | 209 //} |
210 } | 210 //else if (module.equals("minfo")) { |
211 else if (module.equals("minfo")) { | 211 // setTitle(MSG.minfo()); |
212 setTitle(MSG.minfo()); | 212 //} |
213 } | 213 //else if (module.equals("minfo")) { |
214 else if (module.equals("map")) { | 214 // setTitle(MSG.minfo()); |
215 setTitle(MSG.map()); | 215 //} |
216 } | 216 //else if (module.equals("map")) { |
217 else if (module.equals("chart")) { | 217 // setTitle(MSG.map()); |
218 setTitle(MSG.chart()); | 218 //} |
219 } | 219 //else if (module.equals("chart")) { |
220 else if (module.equals("fix")) { | 220 // setTitle(MSG.chart()); |
221 setTitle(MSG.fix()); | 221 //} |
222 } | 222 //else if (module.equals("fix")) { |
223 // setTitle(MSG.fix()); | |
224 //} | |
223 | 225 |
224 final String serverUrl = Config.getInstance().getServerUrl(); | 226 final String serverUrl = Config.getInstance().getServerUrl(); |
225 final Data[] feedData = new Data[] { data[1] }; | 227 final Data[] feedData = new Data[] { data[1] }; |
226 artifactService.create( | 228 artifactService.create( |
227 serverUrl, module.toLowerCase(), | 229 serverUrl, module.toLowerCase(), |