From b8febd87e15a5122c92443a6972cf151a401321a Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 14 May 2024 16:51:08 +0200 Subject: [PATCH] Fix #121712: outdated mapping between UI translations and Doc languages. Both lists got heavily out of sync over the years. Some day would be nice to have this managed in a single place. --- scripts/modules/bpy/utils/__init__.py | 35 ++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/scripts/modules/bpy/utils/__init__.py b/scripts/modules/bpy/utils/__init__.py index 4a445b53ca4..005c7fd7829 100644 --- a/scripts/modules/bpy/utils/__init__.py +++ b/scripts/modules/bpy/utils/__init__.py @@ -1077,35 +1077,58 @@ def manual_map(): # Languages which are supported by the user manual (commented when there is no translation). _manual_language_codes = { + # "ab": "ab", #Abkhaz + # "am_ET": "am", # Amharic "ar_EG": "ar", # Arabic + # "be": "be", # Belarusian # "bg_BG": "bg", # Bulgarian - # "ca_AD": "ca", # Catalan + "ca_AD": "ca", # Catalan # "cs_CZ": "cz", # Czech + # "da": "da", # Danish "de_DE": "de", # German - # "el_GR": "el", # Greek + "el_GR": "el", # Greek + # "eo": "eo", # Esperanto "es": "es", # Spanish + # "et_EE": "et", # Estonian + # "eu_EU": "eu", # Basque + # "fa_IR": "fa", # Persian "fi_FI": "fi", # Finnish "fr_FR": "fr", # French + # "ha": "ha", # Hausa + # "he_IL": "he", # Hebrew + # "hi_IN": "hi", # Hindi + # "hr_HR": "hr", # Croatian + # "hu_HU": "hu", # Hungarian "id_ID": "id", # Indonesian "it_IT": "it", # Italian "ja_JP": "ja", # Japanese + # "ka": "ka", # Georgian + # "kk_KZ": "kk", # kazakh + # "km": "km", # Khmer "ko_KR": "ko", # Korean + # "ky_KG": "ky", # Kyrgyz # "nb": "nb", # Norwegian - # "nl_NL": "nl", # Dutch + # "ne_NP": "ne", # Nepali + "nl_NL": "nl", # Dutch # "pl_PL": "pl", # Polish "pt_PT": "pt", # Portuguese # Portuguese - Brazil, for until we have a pt_BR version. "pt_BR": "pt", + # "ro_RO": "ro", # Romanian "ru_RU": "ru", # Russian "sk_SK": "sk", # Slovak # "sl": "sl", # Slovenian "sr_RS": "sr", # Serbian # "sv_SE": "sv", # Swedish - # "tr_TR": "th", # Thai + # "sw": "sw", # Swahili + # "ta": "ta", # Tamil + "th_TH": "th", # Thai + # "tr_TR": "tr", # Turkish "uk_UA": "uk", # Ukrainian + # "uz_UZ": "uz", # Uzbek "vi_VN": "vi", # Vietnamese - "zh_CN": "zh-hans", # Simplified Chinese - "zh_TW": "zh-hant", # Traditional Chinese + "zh_HANS": "zh-hans", # Simplified Chinese + "zh_HANT": "zh-hant", # Traditional Chinese }