Hi,
I was about to send this tarball out to the localization
team (I don't
see your name on the wiki page BTW) after a few people
checked it but I
will go ahead and send this to you.
http://eventum.mysql.org/eventum-localization-dev7.tar.
gz
If you install that tarball, all you should have to do is
change the
value of 'APP_DEFAULT_LOCALE' to fr_FR in config.inc.php and
put your MO
file in misc/localization/fr_FR/LC_MESSAGES/
Best Regards,
/bryan
Tanoor Dieng wrote:
> Hi everybody,
> i'm trying to get french translation of eventum using
smarty gettext. The
> french translation is already done, i'm trying to
integrate it.
> To do this, I have in "config.inc.php"
>
> <code>
> define("APP_SMARTY_LANG", "fr");
> define("APP_GETTEXT_PATH",
INCLUDE_PATH_LOAD_API_EVENTUM .
> 'misc/locale/');
> </code>
>
> The locale directory is configured like that:
> ->locale
> ---> fr
> ----> LC_MESSAGES
> --->
eventum.po
> --->
eventum.mo
>
>
>
> In the Template_API class i've modified the funcion
Template_API like that:
> <code>
> function Template_API()
> {
> $this->smarty = new Smarty;
> $this->smarty->template_dir = APP_TPL_PATH
. APP_CURRENT_LANG;
> $this->smarty->compile_dir = APP_PATH .
"templates_c";
> $this->smarty->config_dir = '';
>
$this->smarty->register_modifier("activateLinks&q
uot;,
> array('Link_Filter', 'activateLinks'));
>
$this->smarty->register_modifier("formatCustomVal
ue",
> array('Custom_Field', 'formatValue'));
>
> chooseLocale(APP_GETTEXT_PATH . APP_SMARTY_LANG
.
> "/LC_MESSAGES/eventum.mo");
> $this->smarty->register_block('t',
'smarty_translate');
> }
> </code>
>
> I've cleared all the templates in the directory
'templates_c'.
>
>
> BUT, it does not work, i still can't have my french
translation. Can anyone
> explain me why it does not work?
>
> Thank you
> Tanoor.
>
--
Bryan Alsdorf, Manager of Support Systems
MySQL AB, www.mysql.com
Are you MySQL certified? www.mysql.com/certification
--
Eventum Users Mailing List
For list archives: http://lists.mys
ql.com/eventum-users
To unsubscribe: http:
//lists.mysql.com/eventum-users?unsub=bond yahoo.com
|