Yup, that looks just like Joomla.
So, say you have an option in your CMS to choose English or French. You have 2 files in your language directory (english.php and french.php). If the user selects English your CMS includess the english.php file. If the user selects French it includes french.php.
The English file contains:
PHP Code:
define("_TURNOFFMSG","Turn Off Public Messages");
The French file contains:
PHP Code:
define("_TURNOFFMSG","Désactiver les messages publics");
In your CMS where you would normally do this:
PHP Code:
echo "Turn Off Public Messages";
you would change it to
PHP Code:
echo _TURNOFFMSG;
Now, depending on what the user has selected it will output the named constant in English or French.