I have this code at line 52.
(As got from the svn release 2 days ago 1.31 instance3)
In the snippet code their’s
strictly nothing that deal with a &lang parameter regarding a potential localized
webloginpe.template.XX.php files.
only the basic include of :lang/XX.php but I nerver been able to see a simple word of tranlation in register form.
So I hacked the instance3 file (around lien 50) with something like this:
include_once MODX_BASE_PATH.'assets/snippets/webloginpe/webloginpe.class.php';
// CHANGE include MODX_BASE_PATH.'assets/snippets/webloginpe/webloginpe.templates.php';
if (file_exists(MODX_BASE_PATH.'assets/snippets/webloginpe/webloginpe.templates.'.$lang.'.php'))
{
include MODX_BASE_PATH.'assets/snippets/webloginpe/webloginpe.templates.'.$lang.'.php';
}
else
{
include MODX_BASE_PATH.'assets/snippets/webloginpe/webloginpe.templates.php';
}
//END OF CHANGE
if (file_exists(MODX_BASE_PATH.'assets/snippets/webloginpe/lang/'.$lang.'.php'))
{
include_once MODX_BASE_PATH.'assets/snippets/webloginpe/lang/'.$lang.'.php';
}
else
{
include_once MODX_BASE_PATH.'assets/snippets/webloginpe/lang/en.php';
$modx->setPlaceholder($id.'wlpe.message', $wlpe_lang[105]);
print '[+'.$id.'wlpe.message+]';
}
in order to call a localized full template file.