From the start I wanted to have a multilingual blog, since I am multilingual in my daily life here in Sweden. I found a WordPress plugin called WPML for this purpose, but the makers of this plugin decided to commercialize it and now they want to have money. Since this blog’s contents is for free I also want to use free tools and I stuck with the last free version of WPML.
However, today I encountered problems with the way comments are handled in WPML and I started to look for alternatives. There are several plugins available, but I decided to give qTranslate a try.
Still the author of qtranslate has not acknowledged my suggestion to use its own language translations even in the selection field of the languages. In qtranslate_widget.php change every instant of
into
The same applies for example for the JetPack TOP-5 widget:
change the block
echo '<ul>';
foreach ( $posts as $post ) {
echo '<li><a href="' . esc_url( $post['permalink'] ) . '" class="bump-view" data-bump-view="tp">' . esc_html($post['title']) . "</a></li>\n";
}
echo '</ul>';
into
echo '<ul>';
foreach ( $posts as $post ) {
echo '<li><a href="' . esc_url( $post['permalink'] ) . '" class="bump-view" data-bump-view="tp">' . esc_html( qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($post['title']) ) . "</a></li>\n";
}
echo '</ul>';
My comment on the language-selection language in qTranslate: http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=2255#p7897