[imp] Date format
Henry Blackman
h.blackman@chester.ac.uk
Thu, 25 Apr 2002 15:36:55 +0100
Hi Richard,
I'm using 3.1RC2 which has an en_GB locale included in it and seems to be
correct. Unfortunately that hasn't solved the problem. Indeed, using any
locale doesn't change the date here.
I'm going to have to look at the code directly and implement a local patch
most likely. Perhaps it's something to do with my system, or maybe I need
to reinstall Gettext or something; it's all very confusing indeed.
Cheers,
Henry
----- Original Message -----
From: "Richard Gilbert" <R.Gilbert@sheffield.ac.uk>
To: "Henry Blackman" <h.blackman@chester.ac.uk>
Cc: "Jan Schneider" <jan@horde.org>; <imp@lists.horde.org>
Sent: Thursday, April 25, 2002 3:16 PM
Subject: Re: [imp] Date format
> > > It works fine here though there have been several issues reported with
> > > the British English date formats by some users. Make sure that you
> > > have an en_GB locale installed on your system.
> >
> > I do have the en_GB locale on my system, and it does specify dates in
> > the format DD/MM/YY, but if you look at the demo site with GB english it
> > also shows the dates the wrong way around. I've tried French on the
> > demo site (demo.horde.org I mean), and Spanish on the demo site with two
> > different IMAP servers one in the US, one in the UK and IMP always shows
> > the date in the format MM/DD/YY which to anyone outside the USA is aware
> > is pretty meaningless.
> >
> > Have I done something wrong? I've tried with both IE and with Mozilla
> > (1.0 RC1) just in case it was something with the browser but get the
> > same result. Am I right in thinking that selecting a different language
> > either from the login page, or from the options will automatically
> > change the date format without any other setting being involved?
>
> Have you solved your problem?
>
> I found this all rather confusing. There were en_US files in horde/locale
> and horde/imp/locale but no en_GB files. As the en_US files are binary
> files I didn't know how to create the equivalent en_GB files so I had been
> running with en_US in lang.php, and the dates were appearing, not
> surprisingly, in US format.
>
> I hoped that if I could run with en_GB configured the date problem would
> get sorted by the undelying OS files. I created en_GB as a symbolic link
> to en_US in both the locale directories and then edited lang.php as
> follows:
>
> gambit# diff lang.php.dist lang.php
> 14c14
> < $nls['defaults']['language'] = 'en_US';
> ---
> > $nls['defaults']['language'] = 'en_GB';
> 28a29
> > $nls['languages']['en_GB'] = 'English';
> 58c59
> < $nls['aliases']['en'] = 'en_US';
> ---
> > $nls['aliases']['en'] = 'en_GB';
> 79a81
> > $nls['spelling']['en_GB'] = '-d english';
>
> Now my dates are in European format.
>
> Richard
> --
> Richard Gilbert
> Corporate Information and Computing Services
> University of Sheffield, Sheffield, S10 2TN, UK
> Phone: +44 114 222 3028 Fax: +44 114 222 3040
>
>
>
>