From 0f3b52672c9abcc33e70c874132d6bcb68a5df80 Mon Sep 17 00:00:00 2001 From: wppoland Date: Sun, 3 May 2026 17:02:10 +0200 Subject: [PATCH 01/15] I18N: Add translator context to all `'Preview'` strings. `Preview` is a single English token that lands in translations as a verb (button labels), a noun (preview panes, table headers), or an iframe title. Without a translator context, all 14 in-tree occurrences collapsed onto one entry in `default.po`, forcing translators to choose a single rendering that fit poorly somewhere. This commit gives each occurrence a context that names both the part of speech and the surface it appears on, covering: * Post row action and post-lock dialog button (`verb, ...`). * Submit meta box preview button (`verb, action button to preview the post`). * Theme install list-table action and theme-install template buttons (`verb, ...`). * Theme preview iframe title (`noun, ...`). * Customizer toggle and takeover dialog (`verb`/`noun`, ...). * Header image and background image preview rows (`noun, ...`). * Classic-editor (TinyMCE) toolbar button (`verb, ...`). Extends the scope of GH-11407 and GH-11408, which only covered four of these spots. See #64986. --- src/wp-admin/customize.php | 2 +- src/wp-admin/includes/class-custom-background.php | 2 +- src/wp-admin/includes/class-custom-image-header.php | 2 +- src/wp-admin/includes/class-wp-posts-list-table.php | 2 +- .../includes/class-wp-theme-install-list-table.php | 2 +- src/wp-admin/includes/meta-boxes.php | 2 +- src/wp-admin/includes/post.php | 2 +- src/wp-admin/theme-install.php | 10 +++++----- src/wp-includes/class-wp-customize-manager.php | 2 +- src/wp-includes/class-wp-editor.php | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/wp-admin/customize.php b/src/wp-admin/customize.php index 2065e55ffb3ce..330cca6fe8f89 100644 --- a/src/wp-admin/customize.php +++ b/src/wp-admin/customize.php @@ -210,7 +210,7 @@ diff --git a/src/wp-admin/includes/class-custom-background.php b/src/wp-admin/includes/class-custom-background.php index e42a38f4eb689..f585d1a591bd1 100644 --- a/src/wp-admin/includes/class-custom-background.php +++ b/src/wp-admin/includes/class-custom-background.php @@ -279,7 +279,7 @@ public function admin_page() { - + - +