mirror of
https://github.com/django/django.git
synced 2025-10-03 07:14:41 +00:00
Fixed #34278 -- Made translatable string plural-aware in SelectFilter2.js.
Bug in be63c78760
.
This commit is contained in:
parent
e1a093f8cb
commit
e3a4cee081
1 changed files with 5 additions and 1 deletions
|
@ -207,7 +207,11 @@ Requires core.js and SelectBox.js.
|
||||||
const selector = document.getElementById(field_id + '_selector_chosen');
|
const selector = document.getElementById(field_id + '_selector_chosen');
|
||||||
const warning = document.getElementById(field_id + '_list-footer-display-text');
|
const warning = document.getElementById(field_id + '_list-footer-display-text');
|
||||||
selector.className = selector.className.replace('selector-chosen--with-filtered', '');
|
selector.className = selector.className.replace('selector-chosen--with-filtered', '');
|
||||||
warning.textContent = interpolate(gettext('%s selected options not visible'), [count]);
|
warning.textContent = interpolate(ngettext(
|
||||||
|
'%s selected option not visible',
|
||||||
|
'%s selected options not visible',
|
||||||
|
count
|
||||||
|
), [count]);
|
||||||
if(count > 0) {
|
if(count > 0) {
|
||||||
selector.className += ' selector-chosen--with-filtered';
|
selector.className += ' selector-chosen--with-filtered';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue