• Hello,

    This is for a long time so it’s on any version of WP+Polylang+Divi (including the latest):

    while editing (let say in the backend) the Divi Builder is always in the language set as default for Polylang. This doesn’t depend on anything else (current page language, language select at the admin bar, Divi’s option “Disable translations” enabled, etc).

    INSTEAD it should be in the language set as preferred for the current user that edits the page.

    The problem is visible (I guess and if this is the point of the problem) in function init_user() in admin/admin-base.php – $this->pref_lang contains wrong reference to the language.

    Any idea how to fix this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Probably experiencing other side effect of this “bug”.

    If I attempt to clone a page in a different language, lets say Greek. When I attempt to select the page to clone from that is in English, the only results that are returned in the divi search results for current pages are those pages that in Greek.

    The same occur is I attempt to clone a page in English, only English results will be returned in the search.

    As with yourself, dont know what the cause is and sound likes something needs to be ammended in the Polylang plugin with regards to its interaction with DIVI.

    Or at least be forthcoming as to where the issue lays, as it may be something to do with what the DIVI developers have done ………

    Thread Starter dingdang

    (@dingdang)

    The problem is with Polylang, I was able to debug both and seems Divi correctly sets the locale but it is overtaken by Polylang and messed. It is where they set the locale for the frontend/ajax (and involve in specific case the default_lang) and the way divi builder works, goes into that case even at the backend. I didn’t go to the end as this is not my job to do but Polylang’s author, but I’ve found an easy hack with a simple hook and I force my own preferred language there and overwrite the .mo file’s name. It’s ‘load_textdomain_mofile’.

    Thread Starter dingdang

    (@dingdang)

    By the way is this support forum being watched by the plugin author?

    Glad you found a workaround!

    I am not skilled enough to follow what you have done.

    Hopefully the author will fix this issue.

    If the author values there prospective future clients then they should monitor these threads.

    But who knows …..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Polylang + Divi bug in the builder’ is closed to new replies.