Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#65815 new task (blessed)

I18N string fixes for 7.2

Reported by: joedolson Owned by:
Priority: normal Milestone: 7.2
Component: I18N Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

This ticket is for any string improvements that do not directly relate to specific tickets.

Previously:

Change History (6)

This ticket was mentioned in ​PR #11946 on ​WordPress/wordpress-develop by ​@khokansardar.


3 months ago
#1

  • Keywords has-patch added

This PR adds missing translator comments for translatable strings that include a trailing space after the colon, as part of the WordPress 7.1 I18N string improvements.

### Changes

  • Added translator comment for the_tags() default prefix (Tags: ) in category-template.php.
  • Added translator comments for trackback/pingback moderation email labels (Trackback excerpt: and Pingback excerpt: ) in wp_notify_moderator() within pluggable.php.

These follow the established pattern used in WP_PHPMailer (/* translators: There is a space after the colon. */) so translation tooling (WP-CLI i18n make-pot, Poedit) correctly preserves the trailing space for translators.

Trac ticket: https://core.trac.wordpress.org/ticket/65815

## Use of AI Tools

N/A

​@SergeyBiryukov commented on ​PR #11946:


3 months ago
#2

Thanks for the PR! Merged in r63030.

This ticket was mentioned in ​PR #12841 on ​WordPress/wordpress-develop by ​@Soean.


3 months ago
#3

The $domain parameter of __(), _e(), _x() and the other translation functions already defaults to default. Passing 'default' explicitly in core files is redundant, and core convention is to omit the argument entirely.

Trac ticket: https://core.trac.wordpress.org/ticket/65815

#4 @desrosj
3 months ago

#65859 was marked as a duplicate.

#5 @audrasjb
3 months ago

In 63342:

Site Health: Remove "default" text domain from translation function calls.

Follow-up to #63375 / [60529].

Props Soean, mukesh27.
See #65815, #63375.

Note: See TracTickets for help on using tickets.