1463 |
alexandre_ |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Retrieving locale conventions
|
|
|
5 |
* =============================
|
|
|
6 |
*
|
|
|
7 |
* I18Nv2 holds locale conventions returned by localeConv() stored statically,
|
|
|
8 |
* so they are easily accessible through I18Nv2::getInfo(). Have a look at
|
|
|
9 |
* the documentation of PHPs localeConv() for all available information.
|
|
|
10 |
*
|
|
|
11 |
* $Id: retrieving_locale_conventions.php,v 1.1 2007-06-25 09:55:25 alexandre_tb Exp $
|
|
|
12 |
*/
|
|
|
13 |
|
|
|
14 |
require_once 'I18Nv2.php';
|
|
|
15 |
|
|
|
16 |
I18Nv2::setLocale('fr');
|
|
|
17 |
|
|
|
18 |
$dec_point = I18Nv2::getInfo('decimal_point');
|
|
|
19 |
echo "The decimal point for the french locale is '$dec_point'.\n";
|
|
|
20 |
echo "I18Nv2::getInfo() called without parameter returns all available information:\n";
|
|
|
21 |
print_r(I18Nv2::getInfo());
|
|
|
22 |
?>
|