Thomas Weidner wrote:
> And I do not think that you want to have a subdir for all 32 locales within
> the english language.

You're right, that really wouldn't be nice :) The point is to map a
language requested by the user to the appropriate language directory.

Philippe Le Van wrote:
> Traductions are made in smarty configurations files and a custom
> translation system for technical messages (like "wrong email" for
> example).

You can use smarty for mails and other stuff too! Strings like the
subject can be easily pulled from configuration files as well:
...
$smarty->config_load("$langdir/$userlang/$conffile", $section);
$mail->setSubject($tpl->get_config_vars('subject'));
$mail->setBodyHtml($smarty->fetch($mailtemplate));
$mail->send();
...
This way you dont need any extra exceptional translation system.

Greetings,
Juri


Reply via email to