• ResolvedPlugin Author Pedro Carvalho

    (@pedroghandi)


    When using this plugin, the message “Sorry, this entry is only available in %Lang” has the link to the wrong URL.

    So it is fixed in the file:

    qtranslate/qtranslate_core.php
    line 810 instead of

    $language_list = "<a href=\"".qtrans_convertURL('', $language)."\">".$q_config['language_name'][$language]."</a>".$language_list;

    replace it with:

    global $qtranslate_slug;
    $language_url = $qtranslate_slug->get_current_url($language);
    $language_list = "<a href=\"".$language_url."\">".$q_config['language_name'][$language]."</a>".$language_list;

    Note: don’t forget that, if you update qtranslate, these changes will be lost…
    https://wordpress.org/plugins/qtranslate-slug/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"Not available in this Language" fix’ is closed to new replies.