File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
sphinx/themes/basic/static Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ Bugs fixed
43
43
* #12587: Do not warn when potential ambiguity detected during Intersphinx
44
44
resolution occurs due to duplicate targets that differ case-insensitively.
45
45
Patch by James Addison.
46
+ * #12639: Fix singular and plural search results text.
47
+ Patch by Hugo van Kemenade.
46
48
47
49
Testing
48
50
-------
Original file line number Diff line number Diff line change @@ -115,8 +115,10 @@ const _finishSearch = (resultCount) => {
115
115
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
116
116
) ;
117
117
else
118
- Search . status . innerText = _ (
119
- "Search finished, found ${resultCount} page(s) matching the search query."
118
+ Search . status . innerText = Documentation . ngettext (
119
+ "Search finished, found one page matching the search query." ,
120
+ "Search finished, found ${resultCount} pages matching the search query." ,
121
+ resultCount ,
120
122
) . replace ( '${resultCount}' , resultCount ) ;
121
123
} ;
122
124
const _displayNextItem = (
You can’t perform that action at this time.
0 commit comments