comparison gnv/ChangeLog @ 706:2659a5b1fa1e

Added a link (and a controller) to toggle between german and english language (issue254). gnv/trunk@970 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 23 Apr 2010 07:55:05 +0000
parents f550bd27a3f1
children cb1bae26e7ae
comparison
equal deleted inserted replaced
705:f550bd27a3f1 706:2659a5b1fa1e
1 2010-04-23 Ingo Weinzierl <ingo.weinzierl@intevation.de>
2
3 Issue254
4
5 * src/main/java/de/intevation/gnv/action/SwitchLanguageAction.java: New
6 controller to toggle between german and english language.
7
8 * src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java,
9 src/main/java/de/intevation/gnv/action/DescribeUIAction.java: Use the
10 locale stored in the artifact to create the user interface. At the
11 beginning, this will be the locale of the request object. If the user
12 chooses another language by calling the SwitchLanguageAction controller,
13 this locale becomes the prefered locale, and the browser settings are no
14 more relevant.
15
16 * src/main/java/de/intevation/gnv/action/sessionmodel/SessionModel.java,
17 src/main/java/de/intevation/gnv/action/sessionmodel/DefaultSessionModel.java:
18 Now, the SessionModel has two methods to set and retrieve the current
19 locale which is used to create a language specific user interface.
20
21 * src/main/java/de/intevation/gnv/action/sessionmodel/SessionModelFactory.java:
22 Initial creation of the SessionModel gets the locale of the request
23 object. If this locale is changed by the user via SwitchLanguageAction
24 controller, changes in the browser settings won't have an effect anymore.
25
26 * src/main/webapp/WEB-INF/config/struts-config.xml: Add the controller to
27 switch between languages.
28
29 * src/main/webapp/WEB-INF/jsp/header.jsp: The header contains a link to
30 toggle between german and english language - a click on it will trigger
31 the SwitchLanguageAction.
32
1 2010-04-22 Ingo Weinzierl <ingo.weinzierl@intevation.de> 33 2010-04-22 Ingo Weinzierl <ingo.weinzierl@intevation.de>
2 34
3 Issue221 35 Issue221
4 36
5 * src/main/java/de/intevation/gnv/action/ArtifactDatabaseActionBase.java: 37 * src/main/java/de/intevation/gnv/action/ArtifactDatabaseActionBase.java:

http://dive4elements.wald.intevation.org