• Resolved Gabriel Gil

    (@gabrielbs)


    Hello guys!

    Did you think about provide Qtranslate support?

    I’m using wp-front-end editor in many sites, but i can’t use it on sites with qtranslate enabled.

    As you know, qtranslate shows the corresponding text for the current lang which is between this tags

    The problem is when saving, wpFE replaces all the post content with just the current lang content.

    Any workaround? Is this problem important for the WPFE team?
    At least, would be great that WPFE notices the user about the potential data loss, or deny users to activate the plugin if qtranslate is already active.

    Thanks!

    https://www.ads-software.com/plugins/wp-front-end-editor/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ella

    (@ellatrix)

    Sorry, could you explain how qTranslate works? Does it automatically translate, or do you provide a translation in the back-end?

    Unfortunately there will always be plugins that are incompatible with the front-end-editor. Especially unconventional ones. It’s up to plugins to support it. I’m not sure yet how we’re going to handle this, but it’s indeed necessary to think about it.

    Please also note that this plugin is in development and might break things or accidentally erase data. It’s not yet ready to use on production websites.

    Thread Starter Gabriel Gil

    (@gabrielbs)

    Of course. You have to provide every lang translation.

    Basicly, QTranslate wraps each translate like this tags. <!–:es–>Content<!–:–>

    The content saved on the DB by qtranslate in two langs (spanish and english) will look like this:

    <!--:es-->Content wrote by me in spanish<!--:-->
    <!--:en-->Content wrote by me in english<!--:-->

    The user never see this, because the plugin add a tab for each lang on the edit screen (Like the “Visual” and “Text” ones).

    If in edit with WPFE a post, it replaces all the post content without the mentioned lang tags.

    I noticed that it is on development, but i like and for that reason i’m trying help to make it better. ??

    Plugin Author Ella

    (@ellatrix)

    Right. So you get all the translate content at once without the tags (<!–:lang–>)?
    I can make these tags show up, but providing tags is something the plugin will have to do in the future.

    Thread Starter Gabriel Gil

    (@gabrielbs)

    Nope. I just get the content of the lang i’m actually reading.

    For example (for a post saved from the backend and with both langs filled up.).

    Given the post “my-post” y have 2 urls:

    1. https://mysite.com/my-post
    2. https://mysite.com/es/my-post

    If i hit edit on the front from the https://mysite.com/en/my-post, i get just the spanish content, BUT if i then modify text and save, the english content is erased.

    I think this is because qtranslate process the post content before it’s is returned to the front, and it saves BOTH langs if it is modified from the end. On the other hand, WPFE saves the post content as it is in the current lang (replacing this way, the other ones).
    Note the different editing urls from the front creating the same result.

    1. https://mysite.com/my-post/edit
    2. https://mysite.com/es/my-post/edit

    Sorry if i’m not explaining this good enough.

    Regards.

    Plugin Author Ella

    (@ellatrix)

    Right. This is something the plugin needs to take care of later on. It’s impossible to fix that with this plugin, even if I wanted to.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘QTranslate support’ is closed to new replies.