Location: PHPKode > scripts > Language Definition > language-definition/demo.php

$language='ru'; //you can set this through a session or cookie or whatever
$lng = new LanguageDefinition('lng'); //you need to pass string with the name of the variable

//optional, setting debug mode

This data comes from language file:
This data also comes from the same language file:
This will print 'pants', because it isn't defined in our language file
Output Debug info (prints array containing term 'pants')
<?php print_r($lng->getDebug())?>
Return current item: Language Definition