[opencms-dev] OpenCms 6 a 2 - I18N - Workplace Locale Country en GB
Mike Bachrynowski
mikeb at tableau.co.uk
Mon Nov 29 14:12:41 CET 2004
I would like to set the workplace "explorer_files.jsp" etc to correctly
display the dates (date last modified, dates released, date modified
etc) in the United Kingdom format i.e. "dd/mm/yy" not the United States
format of "mm/dd/yy".
I have tried variants of
"webapps/opencms/config/opencms-system.properties"
"en", "en-GB", "en_GB", "gb" ...
<internationalization>
<localehandler class="org.opencms.i18n.CmsDefaultLocaleHandler"/>
<localesconfigured>
<locale>en</locale>
<locale>de</locale>
</localesconfigured>
<localesdefault>
<locale>en</locale>
<locale>de</locale>
</localesdefault>
The results in the log are
2004-11-29 12:34:20,074 INFO (main:) [org.opencms.init] . i18n
configuration : starting
2004-11-29 12:34:20,074 INFO (main:) [org.opencms.init] . i18n
configuration : starting
2004-11-29 12:34:20,084 INFO (main:) [org.opencms.init] . i18n
configuration : locale handler is
org.opencms.i18n.CmsDefaultLocaleHandler
2004-11-29 12:34:20,084 INFO (main:) [org.opencms.init] . i18n
configuration : locale handler is
org.opencms.i18n.CmsDefaultLocaleHandler
2004-11-29 12:34:20,084 INFO (main:) [org.opencms.init] . i18n
configuration : adding locale en_GB
2004-11-29 12:34:20,084 INFO (main:) [org.opencms.init] . i18n
configuration : adding locale en_GB
2004-11-29 12:34:20,084 INFO (main:) [org.opencms.init] . i18n
configuration : adding locale en
2004-11-29 12:34:20,084 INFO (main:) [org.opencms.init] . i18n
configuration : adding locale en
2004-11-29 12:34:20,084 INFO (main:) [org.opencms.init] . i18n
configuration : adding locale de
2004-11-29 12:34:20,084 INFO (main:) [org.opencms.init] . i18n
configuration : adding locale de
2004-11-29 12:34:20,094 INFO (main:) [org.opencms.init] . i18n
configuration : default locale 1 is en_GB
2004-11-29 12:34:20,094 INFO (main:) [org.opencms.init] . i18n
configuration : default locale 1 is en_GB
2004-11-29 12:34:20,094 INFO (main:) [org.opencms.init] . i18n
configuration : default locale 2 is de
2004-11-29 12:34:20,094 INFO (main:) [org.opencms.init] . i18n
configuration : default locale 2 is de
2004-11-29 12:34:20,104 INFO (main:) [org.opencms.init] . i18n
configuration : finished
2004-11-29 12:34:20,104 INFO (main:) [org.opencms.init] . i18n
configuration : finished
....
....
....
2004-11-29 12:34:20,835 INFO (main:) [org.opencms.init] . Workplace
init : Default locale is 'en'
2004-11-29 12:34:20,835 INFO (main:) [org.opencms.init] . Workplace
init : Default locale is 'en'
In checking the code
CmsExplorer ....
if (showDateLastModified) {
content.append("\"");
content.append(getSettings().getMessages().getDateTime(res.getDateLastMo
dified()));
content.append("\",");
CmsWorkplace invokes CmsLocaleManager / CmsDefaultLocaleHandler etc ...
I could hack the code to force through a SimpleDateFormat ....but is
there an easier way.
My workstation XP and browser IE v6 are set to locale "en-GB".
I must be missing something. Any help would be appreciated.
Thanks
More information about the opencms-dev
mailing list