Calendar

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

Active supporter of WikiPedia
Support Wikipedia

Geocaching

Profile for uwezi

Testing qTranslate

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.

2 comments to Testing qTranslate

  • uwezi

    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

    $q_config['language_name'][$language]

    into

    qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($q_config['language_name'][$language])

    The same applies for example for the JetPack TOP-5 widget:

    change the block

    default :
                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

    default :
                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>';
  • uwezi

    My comment on the language-selection language in qTranslate: http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=2255#p7897

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>