Changeset 1424 for trunk/wifidog-auth/wifidog/classes/Locale.php
- Timestamp:
- 10/02/09 16:21:40 (3 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog-auth/wifidog/classes/Locale.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/Locale.php
r1421 r1424 218 218 if(!isset($AVAIL_LOCALE_ARRAY[$locale_id]) && !isset($AVAIL_LOCALE_ARRAY[$lang_only_locale_id])) 219 219 { 220 echo sprintf("Warning in /classes/Locale.php setCur entLocale: Neither %s or %s are available in AVAIL_LOCALE_ARRAY", $locale_id, $lang_only_locale_id)."<br/>";220 echo sprintf("Warning in /classes/Locale.php setCurrentLocale: Neither %s or %s are available in AVAIL_LOCALE_ARRAY", $locale_id, $lang_only_locale_id)."<br/>"; 221 221 } 222 222 // Try to set locale … … 232 232 // Test it against current PHP locale 233 233 if (substr ($current_locale, 0 , 2) != $lang_only_locale_id) { 234 echo sprintf("Warning in /classes/Locale.php setCur entLocale: Unable to setlocale() to %s: %s. I tried %s, %s, %s, %s, and got return value: %s, current locale is: %s",$q, $locale_id, $candidate_locale_array[0], $candidate_locale_array[1], $candidate_locale_array[2], $candidate_locale_array[3], $current_locale, setlocale(LC_ALL, 0))."<br/>";234 echo sprintf("Warning in /classes/Locale.php setCurrentLocale: Unable to setlocale() to %s: %s. I tried %s, %s, %s, %s, and got return value: %s, current locale is: %s",$q, $locale_id, $candidate_locale_array[0], $candidate_locale_array[1], $candidate_locale_array[2], $candidate_locale_array[3], $current_locale, setlocale(LC_ALL, 0))."<br/>"; 235 235 $retval = false; 236 236 } else {
