|
Posted by Rik Wasmus on 01/18/08 15:50
On Fri, 18 Jan 2008 14:15:25 +0100, Toby A Inkster
<usenet200801@tobyinkster.co.uk> wrote:
> sri wrote:
>
>> Can we get the date time in the format depends on either country
>> code or country name in php.
>
> Whose country code? The server? Or the visitor? If the visitor, how do
> you
> expect to determine the country they are in?
>
> More to the point, why would you want to? For example, if the whole page
> was written in English, why would a French visitor expect to see the date
> alone written in his native language as "samedi 18.janvier 2008"?
Yup, only usefull for total translations (in which case you shouldn't
check country, but prefer the HTTP_ACCEPT_LANGUAGE header). Even then,
non-text data (dates, currencies, numbers) presentation examined quite
carefully. Often it's just better to stick to a non-language dependant
uniform presentation for those.
--
Rik Wasmus
[Back to original message]
|