QTranslate plugin removal instructions

December 5th, 2009

qTranslate, or to create a plugin quite a multilingual interface for wordpress. I also used a time but then became increasingly lazy to translate articles "> and now they want to translate broken ball :-( plugin crashed into the natural legacy :-| want to throw it away but then disable it go all the bugs exhibitors Lum :-S .... see also on support forum, but do it way over the part after "more" is lost :-( Today decided to give it away, read a return code also find ways to completely remove this plugin:

Step 1: Backup your database (to prevent errors)

Step 2: Open the file "qtranslate_configuration.php" search code:

  elseif (isset ($ _GET ['markdefault'])){
 / / Update language tags
 global $ wpdb;
 $ Wpdb-> show_errors ();
 $ Result = $ wpdb-> get_results ('SELECT ID, post_title, post_content FROM'. $ Wpdb-> posts. 'WHERE NOT (post_content LIKE "%<!--:-->%" OR post_title LIKE'% <! --:-->%")');
 foreach ($ result as $ post) (
 $ Content = qtrans_split ($ post-> post_content);
 $ Title = qtrans_split ($ post-> post_title);
 foreach ($ q_config ['enabled_languages'] as $ language) (
 if ($ language! = $ q_config ['default_language']) (
 $ Content [$ language] = "";
 $ Title [$ language] = "";
 )
 )
 $ Content = qtrans_join ($ content);
 $ Title = qtrans_join ($ title);
 $ Wpdb-> query ('UPDATE'. $ Wpdb-> posts. 'Set post_content = "'. Mysql_escape_string ($ content ).'", post_title = ''. Mysql_escape_string ($ title). '" WHERE ID ='. $ post-> ID);
 )
 $ Message = "All Posts Marked as default language!"
 ) 

And replaced with the


 elseif (isset ($ _GET ['markdefault'])){
 / / Update language tags
 global $ wpdb;
 $ Wpdb-> show_errors ();
 $ Result = $ wpdb-> get_results ("SELECT ID, post_title, post_content FROM '. $ Wpdb-> posts.' WHERE 1 = 1 ');
 foreach ($ result as $ post) (
 $ Content = qtrans_use ('keep_lang', $ Post-> post_content, true);
 $ Title = qtrans_use ('keep_lang', $ post-> post_title, true);
 $ Wpdb-> Query ('UPDATE'. $ Wpdb-> posts. 'Set post_content = "'. Mysql_escape_string ($ content ).'", post_title =" '. Mysql_escape_string ($ title).' "WHERE ID = '. $ post-> ID);
 )
 $ Message = "Was qTranslate completely uninstall";
 ) 

Step 3: Go qTranslate settings, select "Advanced Settings", convert the database, click on the link "click here to mark all existing posts as written in the default language "

Note: In step 2, replace the code with keep_lang language you want to keep. For example, you want to keep Vietnamese, changed

 qtrans_use ('en', $ post-> post_content, true);

It then changed to English

 qtrans_use ('en', $ post-> post_content, true);

Wishing everyone success : D

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  1. December 6th, 2009 at 21:57
    I found a new theme of sustainable ko : K=)
    As
    December 8th, 2009 10:38
    Um, is there : D that's why his web slow world @ @ so slow as byethost @ @
    December 8th, 2009 11:09

    Grilled out, new this morning it slow yeah! Ko to Address Plesk anymore! Tools maychu sure that he is left with the wind or sun risk @ @