[buddypress-trac] [BuddyPress] #2339: Untranslatable strings in adminbar and template tags
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sat Apr 24 15:51:25 UTC 2010
#2339: Untranslatable strings in adminbar and template tags
---------------------+------------------------------------------------------
Reporter: mercure | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.2.4
Component: Core | Keywords: i10n, core, translation
---------------------+------------------------------------------------------
Hello,
I found a few strings that do not translate correctly. I am using a
patched version of qTranslate to work with BuddyPress in French and
English. All is well except for a few strings. I had to add
{{{
__()
}}}
to fix the issue, I believe it should be included in the core code.
In file bp-core-templatetags.php:
{{{
- Function bp_get_loggedin_user_nav(), line 450
instead of $nav_item['name'], it should be __($nav_item['name'],
'buddypress')
- Function bp_get_displayed_user_nav(), line 490
instead of$user_nav_item['name'], it should be __($user_nav_item['name'],
'buddypress')
- Function bp_get_options_nav(), line 511
instead of $subnav_item['name'], it should be __($subnav_item['name'],
'buddypress')
}}}
In file bp-core-templatetags.php:
In function bp_adminbar_account_menu(), line 71 & 81,
{{{
Instead of $nav_item['name'], it should be __($nav_item['name'],
'buddypress' )
Instead of $name, it should be __($name, 'buddypress' )
}}}
Thank you! Keep up your amazing work!
Marc-Olivier
--
Ticket URL: <https://trac.buddypress.org/ticket/2339>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list