Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#255 closed defect (bug) (fixed)

Error in Previous FIX 583

Reported by: blogestudio's profile blogestudio Owned by:
Milestone: Priority: major
Severity: Version: 1.0
Component: Keywords: member, members, translate
Cc:

Description

[583]: Fixing "member" vs "members" problem on group directory

When you modify the code left the function "sprintf" in the translation function "_e." For this reason the keys to the dictionary doesn't work correctly.

Should be changed ...

_e(sprintf('% d member', $ member_count), 'buddypress')
_e(sprintf('% d members', $ member_count),' buddypress')

... by ...

sprintf(_e('% d member', 'buddypress'), $ member_count)
sprintf(_e('% d members',' buddypress'), $ member_count)

Thanks!

Change History (3)

#1 @blogestudio
16 years ago

Sorry, translate key "%d member" and "%d members" don't exists in spanish ".po"! ;-))

But the "solution" is easy! ;-)

echo $member_count . (' member', 'buddypress');
echo $member_count .
(' members', 'buddypress');

#2 @apeatling
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

<?php printf( ( '%d member', 'buddypress' ), $member_count ) ?>

#3 @(none)
15 years ago

  • Milestone Groups 1.0 deleted

Milestone Groups 1.0 deleted

Note: See TracTickets for help on using tickets.