* @license LGPL, see license.txt for details * @link http://www.php-tools.net */ echo 'Setting locale to '.$_GET['lang'].' will display outlandisch validation errors etc.'; echo '

'; /** * This is where the MO files are located. Actually, the folder $messageDir * contains a folder for each supported language e.g. "de", "de_DE", "fr" etc. * In this folder you'll find another folder "LC_MESSAGES" which finally * holds the translation table "patForms.mo" * * @link http://www.gnu.org/software/gettext/ */ $messageDir = dirname( __FILE__ ) . '/locales'; // select the current language and tell where to find the locale files patForms::setLocale( $_GET['lang'], $messageDir ); ?>