WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Localization problems in wp-useronline (6 posts)

  1. S.K
    Member
    Posted 6 years ago #

    Though I have localized all the strings that are in the .pot file of the plugin to my language, and uploaded the .mo file appropriately, the following do not get translated:

    1. Whatever that is dispalyed on the sidebar on "get_useronline();" call, like "User", "Online" etc. (I don't use widgets)
    2. "am", "pm" etc showing the time on the useronline page. These strings have been translated on the main .po file as found in the wp-includes/locale.php.
    3. The terms "guest" etc do not get translated on the data spewed in the useronline page. I had to substitute $guest['user_name'] with __('guest', 'wp-useronline') to get it working.

    Kindly help.

    Thanks.

    S.K

  2. Lester Chan
    Member
    Posted 6 years ago #

    1. WP-Admin -> Options -> Useronline.
    2. The date is a bug and it should be fixed in WP-UserOnline 2.30 -> http://lesterchan.net/wordpress/download/6/
    3. I don't get you $guest['user_name'] will display the guest aka comment author name not guest.

  3. S.K
    Member
    Posted 6 years ago #

    Thanks GamerZ for your response.

    I find that the following code appears under the condition if the guest is not a comment author at around line no.121.

    $user_name = "guest";

    And the string "guest" (with a lowercase "g") got translated only when I substituted $guest['user_name'] with the getexted string as mentioned by me in the following lines of code:

    } else {
    $useronline_output .= '<p><strong>#'.$no.' - '.$guest['user_name'].'</strong> '.ip2nation_country($guest['ip']).check_ip($guest['ip']).' '.__('on', 'wp-useronline').'

    (around line no. 711.

    And thanks for the latest version.

    Regards,

    S.K

  4. Lester Chan
    Member
    Posted 6 years ago #

    OH yea, my bad, thanks for pointing that out. Is the date working ok?

  5. S.K
    Member
    Posted 6 years ago #

    Thanks, GamerZ. Everything is working Great!

    Nice of you to be so prompt in responding to help call as well as in updating your plugins. Folks like you make the WordPress rock!

    S.K

  6. Lester Chan
    Member
    Posted 6 years ago #

    thank you =)

    I have fixed the bug about the guest language. I am going to use display_name instead of user_name.

    http://dev.wp-plugins.org/changeset/23240

Topic Closed

This topic has been closed to new replies.

About this Topic