the Multi Language Module is ready (introduced here). i’m offering it for free to non-profit organisations and students. also for anyone who has something suitable to exchange (ideas welcome).
Here is a fix for the depreciated eregi method in mcp.multi_language.php:
Change this:
if ( ! eregi("^[a-zA-z0-9\_\-]+$", $_POST['phrase_index']))
{
$error[] = $LANG->line('invalid_characters');
}
to this:
if (!preg_match("/^[A-Za-z][A-Za-z0-9]*(?:_[A-Za-z0-9]+)*$/", $_POST['phrase_index']))
{
$error[] = $LANG->line('invalid_characters');
}
And then you are allowing alphanumerical characters and an underscore as a delimiter.
Best, Sammi
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.