pieter |
|
---|---|
I commented out this part in the header part:
// Language selector foreach($pagi18n_langs as $key) { $pi18n_url = preg_replace(PAGI18N_PATTERN2, '/'.$key.'/', $_SERVER['REQUEST_URI']); $t->assign(array( 'LANG_ROW_URL' => $pi18n_url, 'LANG_ROW_CODE' => $key, 'LANG_ROW_NAME' => $sed_languages[$key], 'LANG_ROW_FLAG' => '<img src="images/flags/f-'.$key.'.gif" alt="'.$key.'" />', 'LANG_ROW_SELECTED' => $key == $lang ? 'selected="selected"' : '', 'LANG_ROW_CURRENT' => $key == $lang ? 'current' : '' )); $t->parse('HEADER.LANG_ROW'); } But than I can only select the language for the menu's and not for the pages. What I want is that if I click on a link (flag or link) that I change it for the pagi18n AND language selector with that one click. Added 1 minute later: I guess I need to combine the code from both plugins. Add the lang selector function in the pagi18n or visa versa ... can we help you ...
|