[opencms-dev] Using the correct locale for Workplace and for editor widgets

Claus Priisholm cpr at codedroids.com
Fri Mar 3 09:15:48 CET 2006


There are a couple of places in the locale-dependent property files 
where the are date formats (specifically for the calendar pop up).

What I've done for a unsupported locale (and in my danish translation as 
well) is to change the date format related properties in:

/system/workplace/locales/??/messages/org/opencms/workplace/messages_??.properties
/system/workplace/locales/??/messages/org/opencms/workplace/workplace_??.properties

That did the trick (in 6.0.0, haven't tested it against 6.0.4)

Claus

Jonathan Woods wrote:
> I'm developing an OpenCms solution for an English client, so ideally we 
> need the Workplace to use en/GB as a locale, for example (i) in 
> displaying last-modified dates in the Explorer view, and (ii) in 
> displaying the right kind of date values in XML editor views.  Does 
> anyone know a way to do this?
>  
> I'm setting *-Duser.language=en -Duser.region=GB* in the shell script in 
> which I invoke Tomcat, but this doesn't seem to get noticed by OpenCms 
> except in opencms.log on start-up, when it says
>  
>     '[.opencms.i18n.CmsLocaleManager: 306] . i18n configuration   : the 
> JVM default locale is "en_GB" '.
>  
> Any help appreciated.
>  
> Jon
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev

-- 
Claus Priisholm, CodeDroids ApS
Phone: +45 48 22 46 46
cpr (you know what) codedroids.com - http://www.codedroids.com
cpr (you know what) interlet.dk - http://www.interlet.dk
--
Javadocs and other OpenCms stuff: 
http://www.codedroids.com/community/opencms



More information about the opencms-dev mailing list