Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Subtitle and Footer translation #47720
    Jaume
    Member

    Hi Sakin,

    Thank you for you answer. I managed to make it work properly. Let me tell you what I have done, as you might probably update your theme the same way.

    qTranslate plugin is no longer maintained by its former developer, so somebody in the community forked it with the name mqTranslate. This is the plugin most people is using nowadays, as Virgile said in the first post of this thread. It is also my case.

    The (easy to solve) problem with Catch Kathmandu Pro theme (and probably with other Catch themes) is that in functions.php the existence of qTranslate plugin is validated through this piece of code:

    if ( in_array( 'qtranslate/qtranslate.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 
        require( get_template_directory() . '/inc/catchkathmandu-qtranslate.php' );
    }

    But if one uses mqTranslate the path for the plugin is different: should be mqtranslate/mqtranslate.php. So, I’ve slightly modified the file and now everything is ok without needing to apply other changes:

    if ( in_array( 'qtranslate/qtranslate.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ||
    in_array( 'mqtranslate/mqtranslate.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 
        require( get_template_directory() . '/inc/catchkathmandu-qtranslate.php' );
    }

    So, Sakin, I believe you might include something like this in upcoming versions.

    Thank you again!

    in reply to: Subtitle and Footer translation #47512
    Jaume
    Member

    I have some more information to add:

    In this thread:

    http://catchthemes.com/support-forum/topic/qtranslate-and-featured-slider/

    some time ago you said:

    I will add function to reset all the transit needed using the condition inside the functions like this:

    if ( function_exists( 'qtrans_convertURL' ) ) {
    	delete_transient( 'catcheverest_image_sliders' );
    }

    In another post in the same thread you talk about theme support for qTranslate.

    But…

    I’ve been looking at the code of catchkatmandu-functions.php and most of the functions related to displaying info in the homepage do not have such a piece of code like that one above. In fact, at the very beginning of every function there is a commented call to delete_transient. I just uncommented the line in the functions that manage the items I needed to properly translate and now everything seems to work ok.

    So, can we conclude that some work is still needed in the theme code? Might it be a problem in any sense the fact of having uncommented those lines?

    Thank you very much again for your help!

    in reply to: Subtitle and Footer translation #47511
    Jaume
    Member

    Hi Sakin,

    I am a bit confused with what you say here in this thread.

    I have just bought the Kathmandu Pro theme because in this website you say that the theme supports qTranslate (mqTranslate is a fork of qTranslate because the latter is no longer updated by his original developer).

    As Virgile says, the theme fails on supporting some elements in the homepage. In my case, I can’t display the proper language for subheadline and slider contents. I don’t have a translatable text in the footer but I have noticed problems there too, as Virgile pointed.

    I would really appreciate some help in managing this question. Thank you very much!

    Jaume

Viewing 3 posts - 1 through 3 (of 3 total)