@Chris.
What do you think about this?
A better solution could be to add the language code into each language file as this:
Best regards,
What do you think about this?
Code:
<?php
/****************************************************
*
* @File: header.php
* @Package: GetSimple
* @Action: Template file for inserting the
* header into the control panel.
*
*****************************************************/
global $LANG;
$LANG = preg_replace('/(?:(?<=([a-z]{2}))).*/', '', $LANG);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $LANG; ?>" lang="<?php echo $LANG; ?>">
A better solution could be to add the language code into each language file as this:
Code:
<?php
$i18n = array(
"LANG_CODE" => "fr-FR",
Best regards,
Patrick.