summaryrefslogtreecommitdiffstatshomepage
path: root/src/js
diff options
context:
space:
mode:
authorAaron Jorbin <jorbin@git.wordpress.org>2025-04-24 22:20:56 +0000
committerAaron Jorbin <jorbin@git.wordpress.org>2025-04-24 22:20:56 +0000
commit3854c2cc10dc09487476bc8c5ce9badf8a9d4cf6 (patch)
tree9c218136947b84245e8569020353cf8a9eecf97d /src/js
parent478a5ab5805e67524841913db5aa8bc1228dcf46 (diff)
downloadwordpress-3854c2cc10dc09487476bc8c5ce9badf8a9d4cf6.tar.gz
wordpress-3854c2cc10dc09487476bc8c5ce9badf8a9d4cf6.zip
Editor: Use different keys in array of translatable strings.
[59696] changed the 'Text' tab of the classic editor to 'Code' but `Code` was already used as a key in the array of translatable text. Since arrays keys need to be unique, this meant that it is possible for the wrong translation to appear in a locale. Using different keys fixes that. Props joedolson, sabernhardt, justlevine, swissspidy, audrasjb. Fixes #63269. See #38061. git-svn-id: https://develop.svn.wordpress.org/trunk@60182 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/js')
-rw-r--r--src/js/_enqueues/wp/editor/base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/_enqueues/wp/editor/base.js b/src/js/_enqueues/wp/editor/base.js
index 34c3705398..3ba7de8dbf 100644
--- a/src/js/_enqueues/wp/editor/base.js
+++ b/src/js/_enqueues/wp/editor/base.js
@@ -1293,7 +1293,7 @@ window.wp = window.wp || {};
.append( $button.attr({
id: id + '-html',
'class': 'wp-switch-editor switch-html'
- }).text( window.tinymce.translate( 'Code' ) ) )
+ }).text( window.tinymce.translate( 'Code|tab' ) ) )
).append( $editorContainer )
);