Lines Matching refs:locale
2 Test setlocale() function : basic functionality - set locale using an array
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 , or FALSE
17 if locale functinality is not implemented in this platform.
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
85 // given as input to setlocale(), later verify the new locale setting by
96 echo "-- Testing setlocale() : 'category' argument as LC_ALL & 'locale' argument as an array --\n";
98 // set locale to $list_of_locales
101 // dump the current locale
104 // check that new locale setting is effective
105 // use localeconv() to get the details of currently set locale
109 …echo "Checking currency settings in the new locale, expected: ".$currency_symbol[$new_locale].", F…
125 -- Testing setlocale() : 'category' argument as LC_ALL & 'locale' argument as an array --
127 Checking currency settings in the new locale, expected: %s, Found: %s