[4.0.x] Fixed #33753 -- Fixed docs build on Sphinx 5+.
Empty language is not supported anymore.
Backport of 565ad5ace4
from main
This commit is contained in:
parent
067daffb95
commit
bc38eafc61
|
@ -9,6 +9,11 @@ PAPER ?=
|
||||||
BUILDDIR ?= _build
|
BUILDDIR ?= _build
|
||||||
LANGUAGE ?=
|
LANGUAGE ?=
|
||||||
|
|
||||||
|
# Set the default language.
|
||||||
|
ifndef LANGUAGE
|
||||||
|
override LANGUAGE = en
|
||||||
|
endif
|
||||||
|
|
||||||
# Convert something like "en_US" to "en", because Sphinx does not recognize
|
# Convert something like "en_US" to "en", because Sphinx does not recognize
|
||||||
# underscores. Country codes should be passed using a dash, e.g. "pt-BR".
|
# underscores. Country codes should be passed using a dash, e.g. "pt-BR".
|
||||||
LANGUAGEOPT = $(firstword $(subst _, ,$(LANGUAGE)))
|
LANGUAGEOPT = $(firstword $(subst _, ,$(LANGUAGE)))
|
||||||
|
|
Loading…
Reference in New Issue