Lines Matching refs:locale
11 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
12 : string setlocale(int $category , array $locale);
13 * Description: Sets locale information.Returns the new current locale , or FALSE
14 if locale functionality is not implemented in this platform.
21 function good_locale($locale) {
23 * Note: no_NO is a bogus locale and should not be used, see https://bugzilla.redhat.com/971416
25 return $locale !== 'tt_RU@iqtelif.UTF-8' && $locale !== 'no_NO.ISO-8859-1';
31 * Returns : set of locale as array
37 // run the command 'locale -a' to fetch all locales available in the system
38 system('locale -a');
48 // return all the locale found in the system, except for broken one
55 //try different locale names
59 echo "-- Test setlocale() with all available locale in the system --\n";
61 // try n set each locale using setlocale() and keep track failures, if any
63 //set locale to $value, if success, count increments
81 echo "Names of locale() for which setlocale() failed ...\n";
92 -- Test setlocale() with all available locale in the system --