Re: Bilingual strtotime()
| From: | Per Jessen | Date: | Mon, 07 Feb 2011 09:48:48 +0000 |
| Subject: | Re: Bilingual strtotime() | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311177@lists.php.net to get a copy of this message | ||
Alexis wrote:
> So basically, the answer is no :)
> Looks like I'll simply do a replace of the French named months with
> English ones.
>
> Would have thought the length of time that PHP has been around and
> with people around the world, speaking more than just one language,
> that language support would have progressed further than it appears to
> have. Apparently not.
That's not really fair - IMO, developers of multi-lingual applications
usually keep data in a language/locale-neutral format and only
transform to language/locale-specific when the data is being presented.
strtotime() is an unusual function in that it attempts the reverse -
transform arbitrary text into data.
--
Per Jessen, Zürich (5.2°C)