WordPress / WordPress/wordpress.org

The new profile pages need to be better prepared for i18n

Open
#673 0 comments 0 reactions 1 assignee View on GitHub

@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.

Ref: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/page-pledges.php

Code sample:

__( '%1$s &mdash; %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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.