WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
qTranslate not yet ready for the new version of WP (6 posts)

  1. rafvorsselmans
    Member
    Posted 2 years ago #

    I Keep getting these 2 exactly the same notifications on the top of every post I made, about qTranslate being disabled because it is not tested with this new version of WordPress. I have the option to enable it on my own risk. But when I do so, I get al the installed input fields for every language double ...

    So I downgraded wordpress to wait until qTranslate is ready for WP 3.3.2

    http://wordpress.org/extend/plugins/qtranslate/

  2. ivan.flores
    Member
    Posted 2 years ago #

    Yeap, I have the same problem.

    What is the method you use to downgrade WordPress?

    Thank you.

  3. Guido Eugenio aka Zhenya
    Member
    Posted 2 years ago #

    You may try to upload (via FTP) in your installation the development version, it is here, at the bottom of the page:::
    http://wordpress.org/extend/plugins/qtranslate/download/

    In my Sites works without any problem.

  4. englebip
    Member
    Posted 2 years ago #

    You could also manually change the affected qTranslate file, as described here: http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3240#p10666 .

    As zhenya said, the development version (v 2.5.29b) already takes care of this: http://plugins.trac.wordpress.org/changeset?reponame=&new=534439%40qtranslate&old=500157%40qtranslate

  5. eruna_msl
    Member
    Posted 2 years ago #

    I ran into this problem So I am adding custom fields for the Spanish Content and switching it in the functions file. (See below)

    Only problem is I can't get the title to work right.

    Here is my forum question about this issue:
    http://wordpress.org/support/topic/adding-filter-to-the-title?replies=1

    //spanish content
    
    if(find_language()=='es'){
    	add_filter('the_content','spanish_content');
    	add_filter('the_title','spanish_title');
    }
    
    function find_language(){
    if($_GET['lan']=='es'){
     	setcookie("lantnd", 'es', time()+3600, "/", str_replace('http://www','',get_bloginfo('url')) );
     	$lan='es';
     	//echo __LINE__;
     }
     else if($_GET['lan']=='en'){
     	setcookie("lantnd", 'en', time()+3600, "/", str_replace('http://www','',get_bloginfo('url')) );
     	$lan='en';//echo __LINE__;
     }
     else if($_COOKIE['lantnd']=='en'){
     	$lan='en';//echo __LINE__;
     }
     else if($_COOKIE['lantnd']=='es'){
     	$lan='es';//echo __LINE__;
     }
      else {
     	$lan='en';//echo __LINE__;
     	//echo "COOKIE "; print_r($_COOKIE);
     }
    
    return $lan;
    
    }
    
    function spanish_content($content){
    	global $post;
    
    	$spanish=get_post_meta(get_the_id(), 'spanish_content');
    	$span= $spanish[0];
    	if(!$span){
    		$span='<p><em>Spanish translation is not available.</em></p>'.$content;
    	}
    	return $span;
    
    }
    
    function spanish_title($title){
    
    	$spanish=get_post_meta(get_the_id(), 'spanish_title');
    	$span= $spanish[0];
    	if(strlen($span)<1){
    		return $title;
    	}
    	return $span;
    
    }
  6. ivan.flores
    Member
    Posted 2 years ago #

    I just installed the development version and seems all is working fine.

    Thank you for the advice.

    @eruna_msl I just respond your question on the link you posted.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags