• Hi and thank you for your work on Qtranslate-X!
    I’m in a situation where I would need Qtranslate-X and WPML to work side by side… problem is Translate-X breaks the WPML language switcher by rewriting urls in a different way (I guess) … from what I think, it could maybe work if I restricted the URL rewriting in Qtranslate, for it to work only for certain custom post types.

    Can you help me with this please?

    thank you so much in advance, have a great day,
    Emilien

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gunu

    (@grafcom)

    @emiliengerbois

    This seems very complicated in order to achieve.

    Why do you want to work both plugins together?

    qTranslate X and WPML treat translations completely different.

    Thread Starter emiliengerbois

    (@emiliengerbois)

    Hi Gunu and thanks for your quick reply,

    my problem is I have to work with some plugins and a theme which compatibility with Qtranslate-X isn’t ready, whereas they work great with WPML…

    Problem is WPML duplicates posts and creates many IDs and for some CPTs I have no choice but keeping one ID for each post. Qtranslate-X works this way, that’s why I try to work with it also.

    In my install, WPML manages Posts, Pages, Menus, taxonomies, … and I only need Qtranslate-X in order to translate my CPTs content.

    I don’t need a language switcher for those posts because I just add links for translations into their content directly. I don’t even need a header or a menu actually… and I use Qtranslate-X in raw mode for those CPTs.

    Problem is when I go to a default post or page (translated with WPML), switching the language through the WPML language switcher, I get redirections thats aren’t active if I disable Qtranslate-X. So it breaks my menu and WPML translations.

    Is there any way to load Qtranslate-X’s scripts only for certain CPT’s? Or is there any way to restrict URL’s rewriting only to those CPTs?

    thanks again (a lot) for your help,
    Emilien

    Plugin Author Gunu

    (@grafcom)

    @emiliengerbois

    you can contact John Clause about this use this form
    So he can be contacted directly with you.

    Plugin Author John Clause

    (@johnclause)

    It might be easier to integrate your theme with qtx: https://qtranslatexteam.wordpress.com/integration/ and get rid of WPML? Otherwise it seems overly complex.

    It is not a popular demand, which sets the priority pretty low for us to work on it. However, you are always welcome to submit a pull request at GitHub with the code for a custom option, which would solve your problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘rewrite urls only for CPTs’ is closed to new replies.