Support » Plugin: Polylang » [Plugin: Polylang] "Site Title" and "Tagline" are not changing

Viewing 4 replies - 46 through 49 (of 49 total)
  • m.yovkov

    (@myovkov)

    It works again!

    janpeeters

    (@janpeeters)

    Hi Chouby,

    I got a short answer from the Pagelines developer that’s occupied with translation.

    He writes:

    WPML is different.

    In a few sections instead of oset we use tset like this:

    $the_text = ploption(‘quick_text_’ . $i, $this->tset);

    When tset is used in a section, it sets the $oset[‘translate’] to true. then the magic_parse function spots it and registers the string in WPML.
    Same does not work for polylang, I tried it.
    If your plugin works why not roll with it, were not going to add something into core that does not work properly. The WPML bit works thats why its in there.

    Well I didn’t ask him to add anything, but that aside.
    Hopefully the oset and tset thing explains it to you. For me it’s like latin.

    Best, Jan

    Plugin Author Chouby

    (@chouby)

    I already detected that the translation was done by this function ‘pagelines_magic_parse’, but the fact is that (at least in the free version I can test), it is always called with $o[‘translate’] = false, so there is no call to the WPML functions and so no call to the equivalent Polylang functions.

    Well, let’s give up. Now you have a working solution 😉

    Hi Chouby,

    Yeah that might be a good idea, giving up. I tried to help you to find a working solution so that your plugin would be compatible with this framework. But if some manual string changes over the next time I know how to adjust your custom plugin to add that one too I guess.

    Thanks for your help.

    Jan

Viewing 4 replies - 46 through 49 (of 49 total)
  • The topic ‘[Plugin: Polylang] "Site Title" and "Tagline" are not changing’ is closed to new replies.