| 128 | Search.output.appendChild(listItem); |
| 129 | }; |
| 130 | const _finishSearch = (resultCount) => { |
| 131 | Search.stopPulse(); |
| 132 | Search.title.innerText = _("Search Results"); |
| 133 | if (!resultCount) |
| 134 | Search.status.innerText = Documentation.gettext( |
| 135 | "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories.", |
| 136 | ); |
| 137 | else |
| 138 | Search.status.innerText = Documentation.ngettext( |
| 139 | "Search finished, found one page matching the search query.", |
| 140 | "Search finished, found ${resultCount} pages matching the search query.", |
| 141 | resultCount, |
| 142 | ).replace("${resultCount}", resultCount); |
| 143 | }; |
| 144 | const _displayNextItem = ( |
| 145 | results, |
| 146 | resultCount, |