I18N module: updates for transition to weblate.
Remove `es_ES` language. Rename `uz_UZ` to `uz_UZ@latin` Rename `zh_CN` to `zh_HANS` Rename `zh_TW` to `zh_HANT` Add support for lowercase chars in `country` part of the locale code (although in the end it is not needed, since `boost::locale` backend does not supports lowercase 'country' part in locales identifiers currently) . Related to https://projects.blender.org/infrastructure/blender-projects-platform/issues/65
This commit is contained in:
parent
72624f9678
commit
0ce02355c1
@ -29,8 +29,8 @@
|
||||
15:Russian (Русский):ru_RU
|
||||
18:Ukrainian (Українська):uk_UA
|
||||
41:Vietnamese (Tiếng Việt):vi_VN
|
||||
13:Simplified Chinese (简体中文):zh_CN
|
||||
14:Traditional Chinese (繁體中文):zh_TW
|
||||
13:Simplified Chinese (简体中文):zh_HANS
|
||||
14:Traditional Chinese (繁體中文):zh_HANT
|
||||
#
|
||||
0:Starting:
|
||||
45:Abkhaz (Аԥсуа бызшәа):ab
|
||||
@ -39,7 +39,6 @@
|
||||
# Skipped (see IMPORT_LANGUAGES_SKIP in settings.py). #22:Bulgarian (Български):bg_BG
|
||||
# Skipped (see IMPORT_LANGUAGES_SKIP in settings.py). #23:Greek (Ελληνικά):el_GR
|
||||
35:Esperanto (Esperanto):eo
|
||||
# Skipped (see IMPORT_LANGUAGES_SKIP in settings.py). #36:Spanish from Spain (Español de España):es_ES
|
||||
# Skipped (see IMPORT_LANGUAGES_SKIP in settings.py). #34:Estonian (Eesti keel):et_EE
|
||||
42:Basque (Euskara):eu_EU
|
||||
26:Persian (ﯽﺳﺭﺎﻓ):fa_IR
|
||||
@ -61,5 +60,5 @@
|
||||
7:Swedish (Svenska):sv_SE
|
||||
46:Thai (ภาษาไทย):th_TH
|
||||
30:Turkish (Türkçe):tr_TR
|
||||
# Skipped (see IMPORT_LANGUAGES_SKIP in settings.py). #38:Uzbek (Oʻzbek):uz_UZ
|
||||
# Skipped (see IMPORT_LANGUAGES_SKIP in settings.py). #38:Uzbek (Oʻzbek):uz_UZ@latin
|
||||
# Skipped (see IMPORT_LANGUAGES_SKIP in settings.py). #39:Uzbek Cyrillic (Ўзбек):uz_UZ@cyrillic
|
99778
locale/po/es_ES.po
99778
locale/po/es_ES.po
File diff suppressed because it is too large
Load Diff
@ -46,8 +46,8 @@ LANGUAGES = (
|
||||
(10, "Catalan (Català)", "ca_AD"),
|
||||
(11, "Czech (Čeština)", "cs_CZ"),
|
||||
(12, "Portuguese (Português)", "pt_PT"),
|
||||
(13, "Simplified Chinese (简体中文)", "zh_CN"),
|
||||
(14, "Traditional Chinese (繁體中文)", "zh_TW"),
|
||||
(13, "Simplified Chinese (简体中文)", "zh_HANS"),
|
||||
(14, "Traditional Chinese (繁體中文)", "zh_HANT"),
|
||||
(15, "Russian (Русский)", "ru_RU"),
|
||||
(16, "Croatian (Hrvatski)", "hr_HR"),
|
||||
(17, "Serbian (Српски)", "sr_RS"),
|
||||
@ -72,9 +72,9 @@ LANGUAGES = (
|
||||
(33, "Hebrew (תירִבְעִ)", "he_IL"),
|
||||
(34, "Estonian (Eesti keel)", "et_EE"),
|
||||
(35, "Esperanto (Esperanto)", "eo"),
|
||||
(36, "Spanish from Spain (Español de España)", "es_ES"),
|
||||
# 36 is free, used to be 'Spanish from Spain' (`es_ES`).
|
||||
(37, "Amharic (አማርኛ)", "am_ET"),
|
||||
(38, "Uzbek (Oʻzbek)", "uz_UZ"),
|
||||
(38, "Uzbek (Oʻzbek)", "uz_UZ@latin"),
|
||||
(39, "Uzbek Cyrillic (Ўзбек)", "uz_UZ@cyrillic"),
|
||||
(40, "Hindi (हिन्दी)", "hi_IN"),
|
||||
(41, "Vietnamese (Tiếng Việt)", "vi_VN"),
|
||||
@ -100,7 +100,7 @@ IMPORT_MIN_LEVEL = 0.0
|
||||
|
||||
# Languages in /branches we do not want to import in /trunk currently...
|
||||
IMPORT_LANGUAGES_SKIP = {
|
||||
'am_ET', 'bg_BG', 'el_GR', 'et_EE', 'ne_NP', 'ro_RO', 'uz_UZ', 'uz_UZ@cyrillic', 'kk_KZ', 'es_ES',
|
||||
'am_ET', 'bg_BG', 'el_GR', 'et_EE', 'ne_NP', 'ro_RO', 'uz_UZ@latin', 'uz_UZ@cyrillic', 'kk_KZ',
|
||||
}
|
||||
|
||||
# Languages that need RTL pre-processing.
|
||||
|
@ -55,7 +55,7 @@ def get_best_similar(data):
|
||||
return key, tmp
|
||||
|
||||
|
||||
_locale_explode_re = re.compile(r"^([a-z]{2,})(?:_([A-Z]{2,}))?(?:@([a-z]{2,}))?$")
|
||||
_locale_explode_re = re.compile(r"^([a-z]{2,})(?:_([A-Za-z]{2,}))?(?:@([a-z]{2,}))?$")
|
||||
|
||||
|
||||
def locale_explode(locale):
|
||||
|
@ -23,7 +23,7 @@ void BLT_lang_free(void);
|
||||
|
||||
/* Set the current locale. */
|
||||
void BLT_lang_set(const char *);
|
||||
/* Get the current locale ([partial] ISO code, e.g. es_ES). */
|
||||
/* Get the current locale ([partial] ISO code, e.g. `pt_BR`). */
|
||||
const char *BLT_lang_get(void);
|
||||
|
||||
/* Get locale's elements (if relevant pointer is not NULL and element actually exists, e.g.
|
||||
|
@ -1888,7 +1888,7 @@ static void edittranslation_find_po_file(const char *root,
|
||||
return;
|
||||
}
|
||||
|
||||
/* Now try without the second ISO code part (`_ES` in `es_ES`). */
|
||||
/* Now try without the second ISO code part (`_BR` in `pt_BR`). */
|
||||
{
|
||||
const char *tc = nullptr;
|
||||
size_t szt = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user