Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#6904 closed defect (bug) (fixed)

Avoid using HTML tags in translation strings (bp-messages/classes/class-bp-messages-component.php)

Reported by: ramiy's profile ramiy Owned by: boonebgorges's profile boonebgorges
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: I18N Keywords: has-patch
Cc:

Description

Old strings:

  • Messages <span class="%s">%s</span>
  • Messages <span class="count">%s</span>
  • Inbox <span class="count">%s</span>

New strings:

  • Messages %s
  • Messages %s
  • Inbox %s

Attachments (1)

6904.patch (1.6 KB) - added by ramiy 9 years ago.

Download all attachments as: .zip

Change History (6)

@ramiy
9 years ago

#1 @DJPaul
9 years ago

  • Milestone changed from Awaiting Review to 2.5

#2 @DJPaul
9 years ago

  • Milestone changed from 2.5 to Under Consideration

The patch provides a new placeholder token in the string, but I believe there should be a translator comment explaining the value it will be replaced with.

#3 @boonebgorges
9 years ago

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

In 10678:

Remove markup from translatable strings when building Messages nav items.

Props ramiy.
Fixes #6904.

#4 @boonebgorges
9 years ago

  • Milestone changed from Under Consideration to 2.6

#5 @DJPaul
8 years ago

  • Component changed from Locale - i18n to I18N
Note: See TracTickets for help on using tickets.