qTranslate conflicts with SEO-plugins [closed]
As the errors tell you it is caused by badly written code. What you can do: Ask the qtranslate developer to fix these issues, file a proper bug report and add the errors to it. Then wait for an update.
As the errors tell you it is caused by badly written code. What you can do: Ask the qtranslate developer to fix these issues, file a proper bug report and add the errors to it. Then wait for an update.
So I’ve managed to solve this. The googl_shortlink function from above now looks like this: function googl_shortlink($url, $post_id = false) { global $post; if (!$post_id && $post) $post_id = $post->ID; elseif ($post_id) $post = get_post($post_id); // list all the active languages in an array $enabled_languages = get_option(‘qtranslate_enabled_languages’); if (is_404()) return; if ($post && $post->post_status != … Read more
I have found a great post which solves this issue, http://wordpress.org/support/topic/plugin-qtranslate-problems-displaying-in-the-edit?replies=21#post-3160564 The issue is on qtranslate_javascript.php line 225 Replace var waitForTinyMCE = window.setInterval(function() { if(typeof(tinyMCE) !== ‘undefined’ && typeof(tinyMCE.get2) == ‘function’ && tinyMCE.get2(‘content’)!=undefined) { content=jQuery(‘#content’).val(); tinyMCE.get2(‘content’).remove(); jQuery(‘#content’).val(content); window.clearInterval(waitForTinyMCE); } }, 250); WITH: Only change the 250 to 500 🙂 this should solve the problem… var … Read more
From qTranslate’s official support forums The function to get the current language is qtrans_getLanguage()
you should find this options in qtranslate configuration page: “hide not translated content” (or something similar to)
You have to return the data in the qtrans function: function qtrans_generateLanguageListCode($id=”) { global $q_config; if (is_404()) $url = get_option(‘home’); else $url=””; if (” === $id) $id = ‘qtranslate’; $id .= ‘-chooser’; $output=””; foreach (qtrans_getSortedLanguages() as $language) { $classes = array(‘lang-‘.$language); if($language == $q_config[‘language’]) $classes[] = ‘active’; $output .= ‘<li class=”‘. implode(‘ ‘, $classes) .'”><a … Read more
1 – I would think that the qtranslate plugin will add the tabs to the wp_editor() editor automatically. At least , it was doing it when I used it for CPT .. 2 – there is this plugin which helps plugin authors to implement qtranslate in own plugins . 3 – there is a filter … Read more
The use of each depends on your choice. If, for example, the text is in front of a field, I think it is better to use the symbol: In general, you should see if it really needs it or not. You do not have to use it or not. In the text you sent, the … Read more
http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=9 You can use _e(); function to echo your variable and __(); to return your variable. Qtranslate hooks into these functions and translates following your input.
What would be the easiest, cheapest approach for this? Simple, create one form per language. In functions.php or, preferably, as a custom plugin: add_shortcode( ‘my-lingo-form’, ‘shortcode_wpse_98360’); function shortcode_wpse_98360() { $lingo = your_language_detection_method(); switch( $lingo ) { case ‘en’: echo do_shortcode(‘[form-en]’); break; default: echo do_shortcode(‘[form-other-languages]’); break; } } In your post or page: [my-lingo-form].