use existing messages.mo for translation

This commit is contained in:
Roland Gruber 2003-05-10 11:17:28 +00:00
parent 6f5578ada8
commit b43bc39e68
1 changed files with 2 additions and 2 deletions

View File

@ -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!");
} }