qTranslate plusand PIWIK conflict: Undefined index: language in
-
I am a long time user of qtranslate plus to translate my website and then I heard about PIWIK which I love too. However, in one of my website, when I activated PIWIK, this error is displayed:
Notice: Undefined index: language in \wp-content\plugins\qtranslate-xp\ppqtranslate_hooks.php on line 54
and reffering to this line of codes:
function ppqtrans_localeForCurrentLanguage($locale){
global $q_config;
// try to figure out the correct locale
$locale = array();
$locale[] = $q_config[‘locale’][$q_config[‘language’]].”.utf8″;
$locale[] = $q_config[‘locale’][$q_config[‘language’]].”@euro”;
$locale[] = $q_config[‘locale’][$q_config[‘language’]];
$locale[] = $q_config[‘windows_locale’][$q_config[‘language’]];
$locale[] = $q_config[‘language’];// return the correct locale and most importantly set it (wordpress doesn’t, which is bad)
// only set LC_TIME as everyhing else doesn’t seem to work with windows
setlocale(LC_TIME, $locale);return $q_config[‘locale’][$q_config[‘language’]];
}
- The topic ‘qTranslate plusand PIWIK conflict: Undefined index: language in’ is closed to new replies.