Skip to:

Opened 8 years ago

Closed 8 years ago

#7285 closed enhancement (no action required)

Use _ex() and _x() comments for accessibility strings

Reported by: slaffik's profile slaFFik Owned by: slaffik's profile slaFFik
Milestone: Priority: normal
Severity: normal Version:
Component: I18N Keywords:


Second parameter will give ability to identify, that this text is for accessibility purpose, so can be a bit lengthy.

So this:

<h2 class="bp-screen-reader-text"><?php _e( 'Manage Members', 'buddypress' ); ?></h2>

will become:

<h2 class="bp-screen-reader-text"><?php _ex( 'Manage Members', 'Accessibility text', 'buddypress' ); ?></h2>

That's a help for translators.

Change History (2)

#1 @slaFFik
8 years ago

  • Owner set to slaFFik
  • Status changed from new to assigned

#2 @slaFFik
8 years ago

  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from assigned to closed

_ex() and _x() are for different purpose, should not be used in this use case. Closing as invalid. @mercime did everything right :)

Note: See TracTickets for help on using tickets.