diff options
author | Peter Wilson <peterwilsoncc@git.wordpress.org> | 2024-02-18 22:14:04 +0000 |
---|---|---|
committer | Peter Wilson <peterwilsoncc@git.wordpress.org> | 2024-02-18 22:14:04 +0000 |
commit | de1ed9c57b1d2c00abaa0e473bec6979595489c3 (patch) | |
tree | d31c45817bb765523e7420c59f8a5159306fa75c /src/js/_enqueues/admin/common.js | |
parent | a9ba7fde796a2f343bb2acc10fddaaac40264ee3 (diff) | |
download | wordpress-de1ed9c57b1d2c00abaa0e473bec6979595489c3.tar.gz wordpress-de1ed9c57b1d2c00abaa0e473bec6979595489c3.zip |
Script Loader: Switch to JavaScript translations.
Update JavaScript files for tag suggestions and the TinyMCE link plugin to use client side translations. This allows for `_n()` to be used for strings requiring singular and plural versions in which the correct form is only known client side.
Props audrasjb, chaion07, costdev, hellofromtonya, johnbillion, marybaum, nicolefurlan, oglekler, rebasaurus, rsiddharth, sergeybiryukov, shaampk1, shahariaazam, swissspidy, tobifjellner.
Fixes #48244.
git-svn-id: https://develop.svn.wordpress.org/trunk@57654 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/js/_enqueues/admin/common.js')
-rw-r--r-- | src/js/_enqueues/admin/common.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/js/_enqueues/admin/common.js b/src/js/_enqueues/admin/common.js index 3de9447879..da7a7a3b07 100644 --- a/src/js/_enqueues/admin/common.js +++ b/src/js/_enqueues/admin/common.js @@ -354,6 +354,21 @@ window.setPostThumbnailL10n = window.setPostThumbnailL10n || { window.setPostThumbnailL10n = deprecateL10nObject( 'setPostThumbnailL10n', window.setPostThumbnailL10n, '5.5.0' ); /** + * Removed in 6.5.0, needed for back-compatibility. + * + * @since 4.5.0 + * @deprecated 6.5.0 + */ +window.uiAutocompleteL10n = window.uiAutocompleteL10n || { + noResults: '', + oneResult: '', + manyResults: '', + itemSelected: '' +}; + +window.uiAutocompleteL10n = deprecateL10nObject( 'uiAutocompleteL10n', window.uiAutocompleteL10n, '6.5.0' ); + +/** * Removed in 3.3.0, needed for back-compatibility. * * @since 2.7.0 |