WordPress / WordPress/wordpress.org
The new profile pages need to be better prepared for i18n
@yani- is already working on this.
Since Jun 4, 2026.
- Dominant language
- PHP
- Stars
- 163
- Forks
- 221
- PR merge metrics
- No merged PRs in 30d
Description
When translating some new strings in the WordPress.org project, I stumbled upon some strings from the new efforts, co-ordinated by @yani- that are currently not well prepared for translation/localization.
Code sample:
__( '%1$s — %2$s contributor. The <strong>%3$s</strong> filter is excluding you.', 'wporg-5ftf' ),
esc_html( $standing_user['name'] ),
empty( $standing_user['sponsored'] ) ? esc_html__( 'independent', 'wporg-5ftf' ) : esc_html__( 'sponsored', 'wporg-5ftf' ),
esc_html( $exclusion_label )
) );
Problem:
You should never build words/expressions/phrases/sentences by concatenating together smaller strings. Don't take for granted that all target languages have the same word and sentence structure as English.
Here are a couple of articles that cover most of the things that often make WordPress code unnecessary hard to translate:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.