Setting the default locale
The default locale and time zone for Information Console are set when you install it. To change the default settings, you modify the values of the DEFAULT_LOCALE and DEFAULT_TIMEZONE configuration parameters.
How to set a default Information Console locale and time zone
1 Using a UTF-8 compliant code editor, open the web.xml configuration file.
2 Navigate to the lines that define DEFAULT_LOCALE, similar to the following code:
<param-name>DEFAULT_LOCALE</param-name>
<param-value>en_US</param-value>
Change the current locale id, en_US in the above example, to the desired locale id in param-value. Valid locale id strings are listed in <context root>\WEB-INF\localemap.xml.
3 Navigate to the lines that define DEFAULT_TIMEZONE, similar to the following code:
<param-name>DEFAULT_TIMEZONE</param-name>
<param-value>America/Los_Angeles</param-value>
Change the current time zone id, Pacific Standard Time in the above example, to the desired default time-zone in param-value. Valid time zone id strings are listed in <context root>\WEB-INF\TimeZones.xml.
4 Save web.xml.
5 Restart the application server or servlet engine that runs Information Console and clear your browser cache.
6 Open the Information Console web application. The login page for the custom application appears. A login page with default locale set to en_GB, and the default time zone set to Europe/London, appears as shown in
Figure 2‑2.
Figure 2‑2 The login page for the custom application