Variable $lang contains shortcut of language name. Ex. english=en.
I'm using a different include files.
Ex. for english -> lang_en.php
for czech -> lang_cz.php etc.
Files lang_xx.php contains this definitions:
lang_en.php:
define('TITLE','Title');
define('ENGLISH','English');
lang_cz.php:
define('TITLE','Titulek');
define('ENGLISH','Anglictina');
Using them this way:
<?php
if ($lang) {
include("lang_$lang.php");
} else {
include("lang_en.php");
}
?>
Hope this help