Skip to contentSkip to conversation

sphinx: change default language to 'en'

PATCH In review Martin Liška 2 participants 3 messages Jun 17, 2022 – Jun 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sphinx: change default language to 'en'

Fixes the following Sphinx warning (treated as error) starting with 5.0 release:

Warning, treated as error:
Invalid configuration value found: 'language = None'. Update your configuration to a valid langauge code. Falling back to 'en' (English).

---
 docs/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/conf.py +1 -1
index 49dab44cca..e33cf3d381 100644
@@ -126,7 +126,7 @@
 #
 # This is also used if you do content translation via gettext catalogs.
 # Usually you set "language" from the command line for these cases.
-language = None
+language = 'en'
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
Signature · 1 line
2.36.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Martin Liška

Fixes the following Sphinx warning (treated as error) starting with 5.0 release:

Warning, treated as error:
Invalid configuration value found: 'language = None'. Update your configuration to a valid langauge code. Falling back to 'en' (English).

(The typo here ("langauge") is present in the upstream Sphinx error message.)

and applied to target-arm.next; thanks.

(I also checked that this didn't break any of the older sphinx versions we need to continue supporting.)

-- PMM

#2 lore raw
Quoted 9 lines · Peter Maydell
Quoted 6 lines · Martin Liška

Fixes the following Sphinx warning (treated as error) starting with 5.0 release:

Warning, treated as error:
Invalid configuration value found: 'language = None'. Update your configuration to a valid langauge code. Falling back to 'en' (English).

(The typo here ("langauge") is present in the upstream Sphinx error message.)

Yep, it's very funny :) Anyway, they fixed that in latest Sphinx release.

Quoted 9 lines

and applied to target-arm.next; thanks.

(I also checked that this didn't break any of the older sphinx versions we need to continue supporting.)

-- PMM