Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter eurodriver

    (@eurodriver)

    }public function gettext($translation, $text, $domain) {
    if (!is_string($text)) {
    echo $domain;
    var_dump($text);
    }$this->labels[$text] = array(‘domain’ => $domain);
    return $translation;
    }
    ok i have this. What is the next step Chouby?

    Plugin Author Chouby

    (@chouby)

    If you did it locally you upload your modified file to overwrite original file in your wordPress installation.

    Once done, with your browser, just load some page where you have the error. It should display other message before the error. I am interested by what is displayed.

    Thread Starter eurodriver

    (@eurodriver)

    ok I am going to try to upload now. Before i upload and panic does this have anything to do with it?
    public function load_textdomains() {
    // our override_load_textdomain filter has done its job. let’s remove it before calling load_textdomain
    remove_filter(‘override_load_textdomain’, array(&$this, ‘mofile’), 10, 3);
    remove_filter(‘gettext’, array(&$this, ‘gettext’), 10, 3);
    remove_filter(‘gettext_with_context’, array(&$this, ‘gettext_with_context’), 10, 4);
    $new_locale = get_locale();

    // don’t try to save time for en_US as some users have theme written in another language
    // now we can load all overriden text domains with the right language
    foreach ($this->list_textdomains as $textdomain) {
    if (!load_textdomain($textdomain[‘domain’], str_replace(“{$this->default_locale}.mo”, “$new_locale.mo”, $textdomain[‘mo’]))

    Thread Starter eurodriver

    (@eurodriver)

    I am not seeing anything different. I deleted my cache. Message stays the same. I am trying this on my test site. https://www.motorradvermietungkreta.com I am not seeing the message on the front of the site anymore, but its still on dashboard.
    Warning: Illegal offset type in /home3/yannism/public_html/motorradvermietungkreta.com/wp-content/plugins/polylang/include/olt-manager.php on line 110

    Thread Starter eurodriver

    (@eurodriver)

    Thread Starter eurodriver

    (@eurodriver)

    Warning: Illegal offset type in /home3/yannism/public_html/motorradvermietungkreta.com/wp-content/plugins/polylang/include/olt-manager.php on line 110

    Warning: Cannot modify header information – headers already sent by (output started at /home3/yannism/public_html/motorradvermietungkreta.com/wp-content/plugins/polylang/include/olt-manager.php:110) in /home3/yannism/public_html/motorradvermietungkreta.com/wp-includes/pluggable.php on line 896

    Thread Starter eurodriver

    (@eurodriver)

    Hi Chouby,

    Do you have any further instuctions for me?

    Plugin Author Chouby

    (@chouby)

    There is something I don’t understand. the code I asked you to add should have output something (in fact the wrong key that provoques the error).

    So now I am a bit blind. Could you try this?

    public function gettext($translation, $text, $domain) {
    if (!empty($text))
      $this->labels[$text] = array('domain' => $domain);
    return $translation;
    }

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘failed to upload polylang’ is closed to new replies.