Language in FrontEndUsers 1.0.5 (svn)
Posted: Tue Apr 18, 2006 2:53 pm
Installed svn version (first time) on CMSMS .13 svn.
I change language in Admin section (user preference) in other language (it_IT), the module work well.
I change locale config in other language (it_IT), the module display (on frontend) en_US language only.
I add lang="it_IT" in module_tag, the module display (on frontend) it_IT language ok.
I test with a failed login but this message is always en_US.
I check in FrontEndUsers.api.php:
but $mod->Lang is empty.
My mistake?
Alby
I change language in Admin section (user preference) in other language (it_IT), the module work well.
I change locale config in other language (it_IT), the module display (on frontend) en_US language only.
I add lang="it_IT" in module_tag, the module display (on frontend) it_IT language ok.
I test with a failed login but this message is always en_US.
I check in FrontEndUsers.api.php:
Code: Select all
function Login( $username, $password )
{
if( !$this->CheckPassword( $username, $password ) )
{
$mod = $this->GetModule();
var_export($mod->Lang); exit;
return array(FALSE,$mod->Lang('error_loginfailed'));
}
My mistake?
Alby