Make WordPress Core

Opened 10 days ago

Closed 10 days ago

#43523 closed task (blessed) (fixed)

Translator comment improvements for 5.0

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: I18N Keywords:
Focuses: Cc:


Background: #41974

Some translator comments have a number, but the corresponding string does not use numbered placeholders:

/* translators: 1: Site name */
printf( __( 'Links for %s' ), esc_attr( get_bloginfo( 'name', 'display' ) ) );

The comment should reference the actual placeholder instead:

/* translators: %s: site name */

Change History (1)

#1 @SergeyBiryukov
10 days ago

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

In 42827:

I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.

Add missing translator comments in WP_Theme_Install_List_Table and wp_notify_postauthor().
Add missing commas in some translator comments.

Fixes #43523.

Note: See TracTickets for help on using tickets.