Lines Matching refs:locale
2 Test setlocale() function : basic functionality - setting system locale to a specific
14 /* test setlocale by specifying a specific locale as input */
20 // run the command 'locale -a' to fetch all locales available in the system
21 system('locale -a');
31 // return all the locale found in the system
36 Check the currency settings in the new locale */
37 echo "*** Testing setlocale() : basic functionality - set to a specific locale ***\n";
70 // set the system locale to a locale, choose the right locale by
71 // finding a common locale in commonly used locale stored in
74 echo "Setting system locale(LC_ALL) to ";
76 // check if a commonly used locale is installed in the system
79 // set the found locale as current locale
85 // continue to check if next commonly locale is installed in the system
90 // check that new locale setting is effective
91 // use localeconv() to get the details of currently set locale
94 //checking currency settings in the new locale to see if the setlocale() was effective
96 echo "Checking currency settings in the new locale, expected: ".$currency_symbol[$value].", Found: …
107 *** Testing setlocale() : basic functionality - set to a specific locale ***
108 Setting system locale(LC_ALL) to %s
110 Checking currency settings in the new locale, expected: %s, Found: %s