Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix singular and plural search results text #12639

Merged
merged 10 commits into from
Aug 11, 2024
802 changes: 439 additions & 363 deletions sphinx/locale/ar/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

791 changes: 430 additions & 361 deletions sphinx/locale/bg/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

795 changes: 433 additions & 362 deletions sphinx/locale/bn/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,447 changes: 943 additions & 504 deletions sphinx/locale/ca/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

790 changes: 429 additions & 361 deletions sphinx/locale/cak/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

800 changes: 437 additions & 363 deletions sphinx/locale/cs/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

801 changes: 438 additions & 363 deletions sphinx/locale/cy/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

811 changes: 445 additions & 366 deletions sphinx/locale/da/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

809 changes: 444 additions & 365 deletions sphinx/locale/de/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

791 changes: 430 additions & 361 deletions sphinx/locale/de_DE/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,082 changes: 699 additions & 383 deletions sphinx/locale/el/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/en_DE/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

634 changes: 351 additions & 283 deletions sphinx/locale/en_FR/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,078 changes: 704 additions & 374 deletions sphinx/locale/en_GB/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/en_HK/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/eo/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,290 changes: 868 additions & 422 deletions sphinx/locale/es/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

637 changes: 354 additions & 283 deletions sphinx/locale/es_CO/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

750 changes: 441 additions & 309 deletions sphinx/locale/et/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

638 changes: 354 additions & 284 deletions sphinx/locale/eu/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,181 changes: 780 additions & 401 deletions sphinx/locale/fa/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/fi/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,336 changes: 897 additions & 439 deletions sphinx/locale/fr/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

637 changes: 354 additions & 283 deletions sphinx/locale/fr_FR/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,306 changes: 876 additions & 430 deletions sphinx/locale/gl/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

641 changes: 357 additions & 284 deletions sphinx/locale/he/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

986 changes: 626 additions & 360 deletions sphinx/locale/hi/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/hi_IN/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

695 changes: 398 additions & 297 deletions sphinx/locale/hr/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

665 changes: 375 additions & 290 deletions sphinx/locale/hu/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

995 changes: 631 additions & 364 deletions sphinx/locale/id/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

639 changes: 355 additions & 284 deletions sphinx/locale/is/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

654 changes: 367 additions & 287 deletions sphinx/locale/it/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

825 changes: 507 additions & 318 deletions sphinx/locale/ja/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

806 changes: 480 additions & 326 deletions sphinx/locale/ka/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

851 changes: 525 additions & 326 deletions sphinx/locale/ko/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

645 changes: 360 additions & 285 deletions sphinx/locale/lt/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

637 changes: 354 additions & 283 deletions sphinx/locale/lv/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/mk/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

643 changes: 357 additions & 286 deletions sphinx/locale/nb_NO/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/ne/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

713 changes: 412 additions & 301 deletions sphinx/locale/nl/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

765 changes: 451 additions & 314 deletions sphinx/locale/pl/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

637 changes: 354 additions & 283 deletions sphinx/locale/pt/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,270 changes: 849 additions & 421 deletions sphinx/locale/pt_BR/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

646 changes: 361 additions & 285 deletions sphinx/locale/pt_PT/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

652 changes: 365 additions & 287 deletions sphinx/locale/ro/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

728 changes: 425 additions & 303 deletions sphinx/locale/ru/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/si/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

967 changes: 613 additions & 354 deletions sphinx/locale/sk/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

644 changes: 359 additions & 285 deletions sphinx/locale/sl/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

354 changes: 189 additions & 165 deletions sphinx/locale/sphinx.pot

Large diffs are not rendered by default.

1,254 changes: 837 additions & 417 deletions sphinx/locale/sq/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

647 changes: 362 additions & 285 deletions sphinx/locale/sr/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

2,411 changes: 1,403 additions & 1,008 deletions sphinx/locale/sr@latin/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

2,411 changes: 1,403 additions & 1,008 deletions sphinx/locale/sr_RS/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/sv/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

2,411 changes: 1,402 additions & 1,009 deletions sphinx/locale/ta/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/te/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

944 changes: 593 additions & 351 deletions sphinx/locale/tr/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

647 changes: 362 additions & 285 deletions sphinx/locale/uk_UA/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

635 changes: 352 additions & 283 deletions sphinx/locale/ur/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

638 changes: 354 additions & 284 deletions sphinx/locale/vi/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

634 changes: 351 additions & 283 deletions sphinx/locale/yue/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

1,808 changes: 1,098 additions & 710 deletions sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

634 changes: 351 additions & 283 deletions sphinx/locale/zh_HK/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

634 changes: 351 additions & 283 deletions sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

824 changes: 503 additions & 321 deletions sphinx/locale/zh_TW/LC_MESSAGES/sphinx.po

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions sphinx/themes/basic/static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ const _finishSearch = (resultCount) => {
Search.stopPulse();
Search.title.innerText = _("Search Results");
if (!resultCount)
Search.status.innerText = Documentation.gettext(
Search.status.innerText = _(
jayaddison marked this conversation as resolved.
Show resolved Hide resolved
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
);
else
Search.status.innerText = _(
"Search finished, found ${resultCount} page(s) matching the search query."
else
Search.status.innerText = Documentation.ngettext(
"Search finished, found one page matching the search query.",
"Search finished, found ${resultCount} pages matching the search query.",
resultCount,
).replace('${resultCount}', resultCount);
};
const _displayNextItem = (
Expand Down