summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/system/js/system.modules.js
diff options
context:
space:
mode:
authorLauri Eskola <lauri.eskola@acquia.com>2023-01-12 17:38:28 +0200
committerLauri Eskola <lauri.eskola@acquia.com>2023-01-12 17:38:28 +0200
commit78a7b4766bd275f103ee2d9e2903e7f74a77feee (patch)
tree921220f7162b2157e03616774ea3517d96775bfb /core/modules/system/js/system.modules.js
parentb52100c11ee6ec96548d73ab32b795473e297700 (diff)
downloaddrupal-78a7b4766bd275f103ee2d9e2903e7f74a77feee.tar.gz
drupal-78a7b4766bd275f103ee2d9e2903e7f74a77feee.zip
Issue #2715663 by ravi.shankar, andrewmacpherson, waako, yogeshmpawar, ankithashetty, karishmaamin, michielnugter, longwave, emcoward, smustgrave, alexpott, scuba_fly, BarisW, opdavies: Use Drupal.formatPlural for when announcing module-filter results for screenreader users
Diffstat (limited to 'core/modules/system/js/system.modules.js')
-rw-r--r--core/modules/system/js/system.modules.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/modules/system/js/system.modules.js b/core/modules/system/js/system.modules.js
index f46b1226dcdd..03ac78996014 100644
--- a/core/modules/system/js/system.modules.js
+++ b/core/modules/system/js/system.modules.js
@@ -71,9 +71,11 @@
$details.attr('open', true).each(hidePackageDetails);
Drupal.announce(
- Drupal.t('!modules modules are available in the modified list.', {
- '!modules': $rowsAndDetails.find('tbody tr:visible').length,
- }),
+ Drupal.formatPlural(
+ $rowsAndDetails.find('tbody tr:visible').length,
+ '1 module is available in the modified list.',
+ '@count modules are available in the modified list.',
+ ),
);
} else if (searching) {
searching = false;