use existing messages.mo for translation
This commit is contained in:
parent
6f5578ada8
commit
b43bc39e68
|
@ -31,8 +31,8 @@ function setlanguage() {
|
||||||
putenv("LANG=" . $language[1]);
|
putenv("LANG=" . $language[1]);
|
||||||
setlocale(LC_ALL, $language[0]);
|
setlocale(LC_ALL, $language[0]);
|
||||||
$locdir = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/locale";
|
$locdir = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/locale";
|
||||||
bindtextdomain("lam", $locdir);
|
bindtextdomain("messages", $locdir);
|
||||||
textdomain("lam");
|
textdomain("messages");
|
||||||
}
|
}
|
||||||
else echo _("Language not defined in session!");
|
else echo _("Language not defined in session!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue