lokocool
Member
Posted 3 years ago #
[wp_multilingual] If it's any chance to use plugin wp_multilingual-2.1 with wordpress 2.7 ? everything working fine, but there is no menu to change language into editor... in older version of plugin and FCE Editor everything work fine but it's not compatible with flag/buttons code.
lokocool
Member
Posted 3 years ago #
OK! I solved the problem ;-)
Wordpress 2.7 + Dean's FCKEditor For WordPress 2.5.0 + WP_Multilingual 1.3.4.15
And this is a valid flag button code:
<?php
echo "<div id='switchlangs'>";
foreach($GLOBALS['AviableLanguages'] as $_K=>$_I){
if ($_I['lang_shortcode'] != $language){
$str .= "<a href='".WP_Multilingual::LanguageLink($_SERVER['REQUEST_URI'], $_I['lang_shortcode'])."' title='" .$_I['name']."'> <img src='/flags/" .$_I['lang_shortcode']. ".png' alt='".$_I['name']."' /></a>";
}else {
$str .= " <img src='/flags/" .$_I['lang_shortcode']. ".png' alt='".$_I['name']."' /> ";
}
}
echo $str;
echo "</div>";
?>
Everything works great !!
Enjoy ! :)