Systemlanguage

Dave Cragg dcragg at lacscentre.co.uk
Mon Nov 13 08:28:13 EST 2006


On 13 Nov 2006, at 12:41, Malte Brill wrote:

>
> Hi all,
>
> I am looking for a way to reliably detect the Systemlanguage cross  
> platform. I can not come up with an easy way to do this from within  
> rev.
>
> What I am using now to detect german:
>
> set the useSystemDate to true
> if "Donnerstag" is among the lines of the weekdaynames then
>   -- it is german
> end if
>
> Does anyone see a problem with this? Is there an easier / more  
> elegant way to do this?

On Mac OS X at least (but I think on Windows too) users can override  
the default date format. For example, on my otherwise English OS, I  
can select a German date format as the system date.

I don't know of another way to do this, but I bet someone can.

Cheers
Dave



More information about the Use-livecode mailing list