Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#5668 closed enhancement (no action required)

Use __() to translate page titles

Reported by: alvaro_sg's profile Alvaro_SG Owned by:
Milestone: Priority: low
Severity: minor Version:
Component: I18N Keywords:
Cc:

Description

Hi, some string are not translated into others languages. For example, in bp-activity-screens.php at line 384:

'post_title'     => bp_get_directory_title( 'activity' ),

The result is a page named "Sitewide Activity".

Is better to use:

'post_title'     => __('Sitewide Activity', 'buddypress'),

at least the page is named "Actividad de todo el sitio".

Thanks.

Change History (2)

#1 @boonebgorges
11 years ago

  • Milestone 2.1 deleted
  • Resolution set to invalid
  • Status changed from new to closed

The result is a page named "Sitewide Activity".

This is because your WordPress page is called Sitewide Activity. Dashboard > Pages.

On a new installation, these pages will be generated with titles that are properly translated. See https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-activity/bp-activity-loader.php#L103, line 109. It's possible that, at the time of installation, you were using an out-of-date Spanish translation.

#2 @DJPaul
8 years ago

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