No new releases since September?

Having Problems? Need Help? Post here!

No new releases since September?

Postby Khorino » Wed Dec 12, 2012 1:09 pm

Hi! I've just updated to Wordpress 3.5 and I saw that qTranslate hasn't been updated since September and, because of that, I can't use it in this new update. I know the plugin is update on your own free time and I understand that, but it's possible to get a minor release just for that? Thanks!
Khorino
 
Posts: 2
Joined: Tue Sep 20, 2011 11:35 pm

Re: No new releases since September?

Postby Nikola Nikolov » Wed Dec 12, 2012 3:34 pm

Hi Khorino,
WordPress 3.5 was officially released just today (big YAY for that :D ), so I guess it will take some time for Qian to release an update for the plugin.

In the mean time, I've found a work-around for the problem. First you need to change "QT_SUPPORTED_VERSION" to "3.5" in qtranslate.php.
Nikola Nikolov
 
Posts: 181
Joined: Wed May 16, 2012 3:46 pm

Re: No new releases since September?

Postby Nikola Nikolov » Wed Dec 12, 2012 3:39 pm

Then you need to do the following changes to "qtranslate_javascript.php":

Change this code:
Code: Select all
$q_config['js']['qtrans_xsplit'] = "
      String.prototype.xsplit = function(_regEx){


to this:
Code: Select all
$q_config['js']['qtrans_xsplit'] = "
      var usr_sett_ed = getUserSetting( 'editor' );
      if ( parseInt( getUserSetting( 'ed_size' ) ) < 300 ) {
         setUserSetting( 'ed_size', 300 );
      }
      setUserSetting( 'editor', 'html' );
      String.prototype.xsplit = function(_regEx){


and this:
Code: Select all
var h = wpCookies.getHash('TinyMCE_content_size');


to this:
Code: Select all
var h = getUserSetting( 'ed_size' );


There is also some bug with setting the proper height for the editor, so I've set it to be at minimum of 300 px(this happens in line 26 - you can change "300" to whatever you want")

If you find any bugs with this, please let me know here and I'll try to replicate and patch them :)

Enjoy,
Nikola

PP: Akismet is pissing me off by not letting me this in a single reply - therefore the multiple posts. Can you please Assemble both of my replies into a single topic named something like "Fix for WP 3.5", so that I can make it sticky?
Nikola Nikolov
 
Posts: 181
Joined: Wed May 16, 2012 3:46 pm

Re: No new releases since September?

Postby Nikola Nikolov » Wed Dec 12, 2012 3:42 pm

Also instead of the code excerpts, you can just link to http://pastebin.com/DCWLHqPG .
Nikola Nikolov
 
Posts: 181
Joined: Wed May 16, 2012 3:46 pm

Re: No new releases since September?

Postby VicVicK » Wed Dec 12, 2012 5:04 pm

Friends, not better go back to Wordpress 3.4? :roll:
VicVicK
 
Posts: 1
Joined: Wed Dec 12, 2012 4:34 pm

Re: No new releases since September?

Postby Nikola Nikolov » Wed Dec 12, 2012 5:06 pm

Well, I personally prefer to keep my WordPress sites updated all of the time, so implementing a minor qTranslate hack is much better than using an older version of WordPress(not to mention, that the new media uploader seems awesome :D ).
Nikola Nikolov
 
Posts: 181
Joined: Wed May 16, 2012 3:46 pm

Re: No new releases since September?

Postby SamS » Wed Dec 12, 2012 9:34 pm

Hi everyone,

after trying out the fix above I'm running into warnings that seem to get worse with every click I do.

Always starts with:

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/../wp-content/plugins/qtranslate/qtranslate.php:1) in /www/htdocs/../wp-content/plugins/qtranslate/qtranslate_core.php on line 71

followed by

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/../wp-content/plugins/qtranslate/qtranslate.php:1) in /www/htdocs/../wp-includes/pluggable.php on line 876

and worse.

What would I have to change to fix this?
SamS
 
Posts: 3
Joined: Wed Dec 12, 2012 9:30 pm

Re: No new releases since September?

Postby Nikola Nikolov » Wed Dec 12, 2012 9:36 pm

Have you left any whitespace before the opening "<?php" tag in qtranslate.php or any of the other files that you modified?
Nikola Nikolov
 
Posts: 181
Joined: Wed May 16, 2012 3:46 pm

Re: No new releases since September?

Postby ThE cRaCkEr » Thu Dec 13, 2012 11:48 am

Nikola Nikolov wrote:so I guess it will take some time for Qian to release an update for the plugin.

If you mean "forever" when you say "some time", then you are right. The plugin is broken (and will be more for each new Wordpress release) and is out of support, see here.
ThE cRaCkEr
 
Posts: 23
Joined: Sun Jan 29, 2012 1:28 pm

Re: No new releases since September?

Postby Nikola Nikolov » Thu Dec 13, 2012 12:00 pm

I am aware of that - I said it because Qian used to release small fixes(be it even just the version change ones) quite late after the release, but he did - so I guess he might do it again.

And that is one of the reasons why I started developing a multilingual plugin like qTranslate - I've made some progress with it, but I'm totally not done yet. When I'm ready for a closed beta, I'll look for people to help me with testing, since I want to make sure it will run properly under all kinds of set-ups.

PP: One of the features will include migration from qTranslate(and probably other multilingual plugins in the future), since I know how many people are currently struggling with qTranslate :) I'm now working on a full-day schedule, which gives me less time to work on this, but I really hope I'll be able to spare some time and get a closed-beta ready by January.
Nikola Nikolov
 
Posts: 181
Joined: Wed May 16, 2012 3:46 pm

Next

Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot] and 4 guests