php constant with gettext
- by wesamly
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.