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

Jonathan Woods jonathan.woods at scintillance.com
Fri Mar 3 13:42:10 CET 2006


You're a star - thanks very much.  Surprising to find something as
significant as this hidden so well!

Jon 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Claus Priisholm
Sent: 03 March 2006 08:16
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Using the correct locale for Workplace and
foreditor widgets

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_??.prop
erties
/system/workplace/locales/??/messages/org/opencms/workplace/workplace_??.pro
perties

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

_______________________________________________
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





More information about the opencms-dev mailing list