Lines Matching refs:locale

2 Test setlocale() function : basic functionality - setting system locale to a specific   
14 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
15 : string setlocale(int $category , array $locale);
16 * Description: Sets locale information.Returns the new current locale ,
17 * or FALSE if locale functionality is not implemented in this platform.
21 /* test setlocale by specifying a specific locale as input */
26 Returns : set of locale as array
32 // run the command 'locale -a' to fetch all locales available in the system
33 system('locale -a');
43 // return all the locale found in the system
48 Check the currency settings in the new locale */
49 echo "*** Testing setlocale() : basic functionality - set to a specific locale ***\n";
82 // set the system locale to a locale, choose the right locale by
83 // finding a common locale in commonly used locale stored in
86 echo "Setting system locale(LC_ALL) to ";
88 // check if a commonly used locale is installed in the system
91 // set the found locale as current locale
97 // continue to check if next commonly locale is installed in the system
102 // check that new locale setting is effective
103 // use localeconv() to get the details of currently set locale
106 //checking currency settings in the new locale to see if the setlocale() was effective
108 echo "Checking currency settings in the new locale, expected: ".$currency_symbol[$value].", Found: …
119 *** Testing setlocale() : basic functionality - set to a specific locale ***
120 Setting system locale(LC_ALL) to %s
122 Checking currency settings in the new locale, expected: %s, Found: %s