- Made it possible for the i18n module to hook in.
parent
5595bc79c6
commit
3079ffeafe
|
@ -503,6 +503,11 @@ function message_na() {
|
||||||
*/
|
*/
|
||||||
function locale_initialize() {
|
function locale_initialize() {
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
|
if (function_exists('i18n_get_lang')) {
|
||||||
|
return i18n_get_lang();
|
||||||
|
}
|
||||||
|
|
||||||
if (function_exists('locale')) {
|
if (function_exists('locale')) {
|
||||||
$languages = locale_supported_languages();
|
$languages = locale_supported_languages();
|
||||||
$languages = $languages['name'];
|
$languages = $languages['name'];
|
||||||
|
|
Loading…
Reference in New Issue