Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 117bc1a07ebb1b823ec3eeb728f14147 > files > 4

php-pear-I18Nv2-0.11.4-11.mga5.noarch.rpm

<?php

/**
* Setting a locale
* ================
*
* Because Un*x and Windows use different locale codes, PHPs setLocale() is not 
* easily portable - I18Nv2::setLocale() attempts to provide this portability.
* 
* With I18Nv2 you can use standard locale codes like 'en_US' on both, Linux
* and Windows, though the list is far not complete yet, so if you stumble
* over a not covered locale (I18Nv2::$locales in I18Nv2::_main()), just drop
* a mail to <mike(@)php.net> with the missing locale and its corresponding
* Win32 code.
* 
* $Id: setting_a_locale.php,v 1.1 2004/05/03 15:02:17 mike Exp $
*/

require_once 'I18Nv2.php';

$locale = 'en_US';

if (!I18Nv2::setLocale($locale)) {
    die("Locale '$locale' not available!\n");
}

?>