WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#46386 new enhancement

Credits: Make WordPress.org URL translatable

Reported by: mukesh27 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: I18N Keywords: has-patch good-first-bug
Focuses: Cc:

Description

Need to add tranlation for link https://wordpress.org/about/

/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
printf(
	__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
	'https://wordpress.org/about/',
	__( 'https://make.wordpress.org/' )
);

Replace to

/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
printf(
	__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
	__( 'https://wordpress.org/about/' ),
	__( 'https://make.wordpress.org/' )
);

Attachments (1)

46386.diff (554 bytes) - added by mukesh27 5 months ago.
Patch.

Download all attachments as: .zip

Change History (4)

@mukesh27
5 months ago

Patch.

#1 @tobifjellner
5 months ago

While at it: you should also add comments for translators just before each of the translatable URL:s.
/* translators: Give localized URL */

#2 @swissspidy
5 months ago

  • Summary changed from Missing translators need to be added in credits.php to Credits: Make WordPress.org URL translatable

@tobifjellner I don't think we usually do this.

#3 @tobifjellner
5 months ago

In most cases, it's just there in order to make it possible to adopt for the locale. In those cases where it's preferable to do it, a comment might be good.

Note: See TracTickets for help on using tickets.