WordPress.org

Forums

qTranslate
Nice Plugin!!! (7 posts)

  1. russoedu
    Member
    Posted 2 years ago #

    Had some errors under WordPress 3.5, but with just some code updates, the plugin is working just fine.

  2. saadulla
    Member
    Posted 2 years ago #

    Can you tell us what is the updates?

  3. russoedu
    Member
    Posted 2 years ago #

    1:
    Change
    define('QT_SUPPORTED_WP_VERSION', '3.4.2');
    to
    define('QT_SUPPORTED_WP_VERSION', '3.5');
    So it stops wining…

    2: In qtranslate_javascript.php
    change:

    $q_config['js']['qtrans_xsplit'] = "
          String.prototype.xsplit = function(_regEx){

    to

    $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, change
    var h = wpCookies.getHash('TinyMCE_content_size');
    to
    var h = getUserSetting( 'ed_size' );

    Found this in two places:
    http://wordpress.org/support/topic/plugin-works-under-35?replies=10
    http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3831

  4. happysokki
    Member
    Posted 2 years ago #

    russoedu you made my day!

  5. russoedu
    Member
    Posted 2 years ago #

    I'm glad to help!

  6. Buchtic1
    Member
    Posted 2 years ago #

    Thanks!
    But after this change is textarea too small

  7. russoedu
    Member
    Posted 2 years ago #

    Buchtic1, you can change the "ed_size" size:

    $q_config['js']['qtrans_xsplit'] = "
          var usr_sett_ed = getUserSetting( 'editor' );
          if ( parseInt( getUserSetting( 'ed_size' ) ) < 600 ) {
             setUserSetting( 'ed_size', 600 );
          }
          setUserSetting( 'editor', 'html' );
          String.prototype.xsplit = function(_regEx){

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • qTranslate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.