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.
__( '%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 )
) );
Here are a couple of articles that cover most of the things that often make WordPress code unnecessary hard to translate:
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:
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: