From 7dfb60533c46c408375b079edf33609a3b35ccde Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 11 Oct 2022 10:03:16 +0000 Subject: [PATCH] I18N: Revert [54469]. This changeset reverts [54469] as there is currently no support for parsing JS i18n functions in PHP files which means the strings won't be translatable. Props ocean90. Unprops audrasjb. See #37287. git-svn-id: https://develop.svn.wordpress.org/trunk@54473 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update.php | 38 ++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index c8d2a497c8..8661af75b5 100644 --- a/src/wp-admin/includes/update.php +++ b/src/wp-admin/includes/update.php @@ -885,15 +885,45 @@ function wp_print_admin_notice_templates() {

<# if ( data.successes ) { #> - <# if ( 'plugin' === data.type ) { #> - {{ wp.i18n.sprintf( wp.i18n._n( '%s plugin successfully updated.', '%s plugins successfully updated.', data.successes ), data.successes ) }} + <# if ( 1 === data.successes ) { #> + <# if ( 'plugin' === data.type ) { #> + + <# } else { #> + + <# } #> <# } else { #> - {{ wp.i18n.sprintf( wp.i18n._n( '%s theme successfully updated.', '%s themes successfully updated.', data.successes ), data.successes ) }} + <# if ( 'plugin' === data.type ) { #> + + <# } else { #> + + <# } #> <# } #> <# } #> <# if ( data.errors ) { #>