The above code assumes the placeholder %d is plural, but it can be singular. This causes a weird rendered sentence of "1 source files...".
Besides, different languages have different plural rules, so the best would be to make this a ngettext / plural-form string so that the translator can translate correctly for number of plurals their language has.
How to Reproduce
Run: sphinx-build -M html . _build _any_sourcefile
See an output like:
...
building [html]: 1 source files given on command line
...
Describe the bug
https://github.com/sphinx-doc/sphinx/blob/76110c3ea05e4eef02bc1689c4b9253aca743392/sphinx/builders/__init__.py#L298-L299
The above code assumes the placeholder %d is plural, but it can be singular. This causes a weird rendered sentence of "1 source files...".
Besides, different languages have different plural rules, so the best would be to make this a ngettext / plural-form string so that the translator can translate correctly for number of plurals their language has.
How to Reproduce
Environment Information
Sphinx extensions
No response
Additional context
No response