WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar Login
Localisation not working (6 posts)

  1. noixdarec
    Member
    Posted 2 years ago #

    Changing languages with qTranslate, all went well except Sidebar Login which is always in English. All .mo files are there. Am I missing something?

    http://wordpress.org/extend/plugins/sidebar-login/

  2. dejudicibus
    Member
    Posted 2 years ago #

    I have exactly the same problem: I use qTranslate too, all plugins and widgets are localized BUT Sidebar Login. I gave a look at code and it really calls the text domain "sblogin" and mo and po files exist for my language too, but I always see texts in English... :(

  3. dejudicibus
    Member
    Posted 2 years ago #

    SOLVED!!!

    You must remove from line 11 in sidebar-login.php

    load_plugin_textdomain('sblogin', WP_PLUGIN_URL.'/sidebar-login/langs/', 'sidebar-login/langs/');

    and add

    load_plugin_textdomain( 'sblogin', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );

    just after line 237

    function widget_wp_sidebarlogin_check() {

    I did it and it works now. I hope the author will fix it asap, anyway.

  4. dejudicibus
    Member
    Posted 2 years ago #

    I sent to Andy also a new pot file since the old one contained a lot of obsolete strings and was missing few new ones.

  5. meinchel
    Member
    Posted 2 years ago #

    Hi!
    I did so (version 2.3.4) but doesn't work for me. :( Still in English.
    I'm trying to hardcode it, but I can't find the Dashboard and Profile references in the code!

  6. Ayek
    Member
    Posted 2 years ago #

    I like the plugin, but it's a pity it doesn't support multilingual websites :(

    @meinchel
    You need go to the Sidebar Login options > Logged in links
    eg
    <a href="http://yourdomain.com/wp-admin/profile.php?lang=<!--:en-->en<!--:--><!--:ru-->ru<!--:-->"><!--:en-->Profile<!--:--><!--:ru-->Профиль<!--:--></a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic