WordPress.org

Ready to get started?Download WordPress

Forums

WPMS Sidebar Login Widget
Translation not working (12 posts)

  1. netmax
    Member
    Posted 2 years ago #

    Hi,

    i did a german translation of the plugin with PoEdit, and saved the german files as

    wpms_sidebar_login-de_DE.po
    wpms_sidebar_login-de_DE.mo

    in the "languages" directory.

    However, everything is still in english - in the backend and in the frontend. Can you please advise what's wrong here? (Plugin version 1.8)

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

  2. Joshua Parker
    Member
    Plugin Author

    Posted 2 years ago #

    Could you email me your files, so that I can figure out what is not working? You can email me at consulting[at]joshparker[dot]us.

  3. zbacsi
    Member
    Posted 2 years ago #

    Joshua, you should read this: http://codex.wordpress.org/Writing_a_Plugin#Internationalizing_Your_Plugin

    To fetch a string simply use __('String name','your-unique-name'); to return the translation or _e('String name','your-unique-name'); to echo the translation. Translations will then go into your plugin's /languages folder.

    Change _e('Login') to _e('Login','wpms-network-sidebar-login') to get the translation from the plugin directory. The first e_('Login') retrieves the translation from the main wordpress langauge file.

  4. zbacsi
    Member
    Posted 2 years ago #

    Great work! I'll send you the hungarian translation.

    @netmax: try rename your files regarding the textdomain of the plugin: wpms-network-sidebar-login-de_DE

  5. Joshua Parker
    Member
    Plugin Author

    Posted 2 years ago #

    @zbacsi, awesome. Thank you.

  6. blogogradjanin
    Member
    Posted 2 years ago #

    I use your widget "WPMS Sidebar Login Widget" and I do not know where to write you this but here. I hope Joshua Parker you will read.
    I have two problems.
    The first problem is that the widget is deformed when the user logs on. Specifically top line that says who is registered to move left and up. Do not follow the rest of the settings of other widgets. And it's not as big a problem that can not survive.
    Another problem is that many users are complaining that they keep the widget on the wrong side and gives them the wrong control panel. For example, when you click on "Your Control Panel" on them, open the control panel of some of the other bloggers, and it is always the same.

    Am I doing something wrong with widget or there is some problem. And is there any solution for this problem.
    PS. Several users have links that lead them to their profile and dashboard and there is nothing wrong, while others have problems with this.

    Please help.
    (translated from Serbian by Google Translate)

  7. Joshua Parker
    Member
    Plugin Author

    Posted 2 years ago #

    @blogogradjanin, can you email me screenshots?

    consulting[at]joshparker[dot]us

  8. blogogradjanin
    Member
    Posted 2 years ago #

    mail sent

  9. Joshua Parker
    Member
    Plugin Author

    Posted 2 years ago #

    Somewhere around line 373, change this:
    <div id="user-profile">

    to this:
    <div id="wp_sidebarlogin-4" class="widget widget_wp_sidebarlogin"><div id="user-profile">

    Somewhere around line 395, change this:
    <div id="wp_sidebarlogin-4" class="widget widget_wp_sidebarlogin"><div class="avatar_container" style="float:left;"><a href="<?php echo $wpms_user_url; ?>" title="<?php _e('Go to your blog homepage'); ?>"><?php echo get_avatar($user_ID,'48',get_option('avatar_default')); ?></a></div>

    to this:
    <div class="avatar_container" style="float:left;"><a href="<?php echo $wpms_user_url; ?>" title="<?php _e('Go to your blog homepage'); ?>"><?php echo get_avatar($user_ID,'48',get_option('avatar_default')); ?></a></div>

    Somewhere around line 421, change this:
    <div id="wp_sidebarlogin-4" class="widget widget_wp_sidebarlogin"><div class="avatar_container" style="float:left;"><a href="<?php bloginfo('url'); ?>" title="<?php _e('Go to homepage'); ?>"><?php echo get_avatar($user_ID,'48',get_option('avatar_default')); ?></a></div>

    to this:
    <div class="avatar_container" style="float:left;"><a href="<?php bloginfo('url'); ?>" title="<?php _e('Go to homepage'); ?>"><?php echo get_avatar($user_ID,'48',get_option('avatar_default')); ?></a></div>

    If you are not confident enough to make these changes, I will be releasing a new update soon. With regards to your other issue, I would need to actually see exactly what is going on with using some different logins or if uncomfortable with that, then by using http://www.screencast-o-matic.com/ showing me the issues and the email me the url to the screencast.

  10. blogogradjanin
    Member
    Posted 2 years ago #

    waiting for update... ;)
    i will add you as a user or admin... just send me nick and email adress.

  11. Aphrodite
    Member
    Posted 2 years ago #

    hiya !

    Well also have the translation problem in Version 1.9.4

    named the files as wpms_sidebar_login-fr_FR.mo

    but... nothing :(

  12. backspace_
    Member
    Posted 1 year ago #

    The plugin does not work in Turkish

    My website is an WP mu on the main site i installed the plugin.
    i made
    wpms-network-sidebar-login-nl_NL.mo
    wpms-network-sidebar-login-nl_NL.po
    for dutch this works

    for turkish i made
    wpms-network-sidebar-login-tr_TR.mo
    wpms-network-sidebar-login-tr_TR.po
    This doesnt work:S

    in my wp Admin i set the
    define('WPLANG', '');
    define('WPLANG', 'tr_TR');
    define('WPLANG', 'nl_NL');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic