I18N: Add translator context to all 'Preview' strings.#11787
I18N: Add translator context to all 'Preview' strings.#11787itzmekhokan wants to merge 1 commit intoWordPress:trunkfrom
Conversation
Adds translator context to all in-tree occurrences of the 'Preview' string using a simplified `_x( 'Preview', 'noun' )` or `_x( 'Preview', 'verb' )`, so translators can correctly disambiguate it across languages (e.g. German) where the noun and verb forms differ. * Buttons and action links use `'verb'`. * Preview pane labels, table row headers, and the iframe title use `'noun'`. Affected files: * src/wp-admin/customize.php * src/wp-admin/includes/class-custom-background.php * src/wp-admin/includes/class-custom-image-header.php * src/wp-admin/includes/class-wp-posts-list-table.php * src/wp-admin/includes/class-wp-theme-install-list-table.php * src/wp-admin/includes/meta-boxes.php * src/wp-admin/includes/post.php * src/wp-admin/theme-install.php * src/wp-includes/class-wp-customize-manager.php * src/wp-includes/class-wp-editor.php Props motylanogha, wildworks, jorbin, sergeybiryukov, audrasjb, anupkankale, mohamedahamed, rafaeldella, t-hamano. See #64986. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
https://core.trac.wordpress.org/ticket/64986
Adds translator context to all in-tree occurrences of the 'Preview' string using a simplified
_x( 'Preview', 'noun' )or_x( 'Preview', 'verb' ), so translators can correctly disambiguate it across languages (e.g. German) where the noun and verb forms differ.'verb'.'noun'.