php constant with gettext

Posted by wesamly on Stack Overflow See other posts from Stack Overflow or by wesamly
Published on 2010-03-16T11:24:09Z Indexed on 2010/03/16 11:26 UTC
Read the original article Hit count: 474

Filed under:
|

I am using config file which contains: config.php

define('SYS_TITLE','My Application Title');

I load language local for gettext based on SESSION variable in another file included after the config file is loaded. something like:

echo _(SYS_TITLE);

What is the best way to translate the SYS_TITLE without changing much of the code.

© Stack Overflow or respective owner

Related posts about php

Related posts about gettext