Getting Locale of User Agent as ISO Country Code
| From: | SLanger at spirit21 dot de | Date: | Fri, 09 May 2003 12:19:22 +0000 |
| Subject: | Getting Locale of User Agent as ISO Country Code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146996@lists.php.net to get a copy of this message | ||
Hello
I wonder if there is an easy way of getting the locale of the client as a
ISO country language code.
E.g:
$locale = getLocale() // will return en_US for us english or de_DE for
German
Haven't found anything useful in the manuals or archive on this.
Regards
Stefan Langer