mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
conf: Rename zh_CN/zh_TW to zh_Hans/zh_Hant
See https://github.com/godotengine/godot-proposals/issues/6289.
This commit is contained in:
8
conf.py
8
conf.py
@@ -94,12 +94,12 @@ supported_languages = {
|
||||
"pt_BR": "Documentação da Godot Engine %s em Português Brasileiro",
|
||||
"ru": "Документация Godot Engine %s на русском языке",
|
||||
"uk": "Документація до Godot Engine %s українською мовою",
|
||||
"zh_CN": "Godot Engine %s 简体中文文档",
|
||||
"zh_TW": "Godot Engine %s 正體中文 (台灣) 文件",
|
||||
"zh_Hans": "Godot Engine %s 简体中文文档",
|
||||
"zh_Hant": "Godot Engine %s 正體中文 (台灣) 文件",
|
||||
}
|
||||
|
||||
# RTD normalized their language codes to ll-cc (e.g. zh-cn),
|
||||
# but Sphinx did not and still uses ll_CC (e.g. zh_CN).
|
||||
# RTD normalized their language codes to ll-cc (e.g. pt-br),
|
||||
# but Sphinx did not and still uses ll_CC (e.g. pt_BR).
|
||||
# `language` is the Sphinx configuration so it needs to be converted back.
|
||||
language = os.getenv("READTHEDOCS_LANGUAGE", "en")
|
||||
if "-" in language:
|
||||
|
||||
Reference in New Issue
Block a user