- Made it possible for the i18n module to hook in.

4.5.x
Dries Buytaert 2004-09-15 09:54:32 +00:00
parent 5595bc79c6
commit 3079ffeafe
1 changed files with 5 additions and 0 deletions

View File

@ -503,6 +503,11 @@ function message_na() {
*/
function locale_initialize() {
global $user;
if (function_exists('i18n_get_lang')) {
return i18n_get_lang();
}
if (function_exists('locale')) {
$languages = locale_supported_languages();
$languages = $languages['name'];