summaryrefslogtreecommitdiff
path: root/sphinx/builders/latex/util.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-09 01:02:32 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-01-12 02:45:52 +0900
commite4e58a4f2791e528cdaa861b96636a1e37a558ba (patch)
tree9a6e2a43208a7f97586633ac9e41bf4eda29f674 /sphinx/builders/latex/util.py
parentb90a52c93cae5f7f5273fc1ac9caf7e49861e11c (diff)
downloadsphinx-git-e4e58a4f2791e528cdaa861b96636a1e37a558ba.tar.gz
Close #10062: Change the default language to 'en'
Change the default language to `'en'` if any language is not set in `conf.py`.
Diffstat (limited to 'sphinx/builders/latex/util.py')
-rw-r--r--sphinx/builders/latex/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/latex/util.py b/sphinx/builders/latex/util.py
index 6b797c9a2..4a5c390c3 100644
--- a/sphinx/builders/latex/util.py
+++ b/sphinx/builders/latex/util.py
@@ -20,7 +20,7 @@ class ExtBabel(Babel):
self.language_code = language_code
self.use_polyglossia = use_polyglossia
self.supported = True
- super().__init__(language_code or '')
+ super().__init__(language_code)
def uses_cyrillic(self) -> bool:
return self.language in self.cyrillic_languages