mirror of https://github.com/zulip/zulip.git
i18n-tools: Print locale that's being checked for legacy translations.
Adds a print statement to `tools/i18n/update-for-legacy-translations` to help with debugging to know what locale was being checked if an error is raised.
This commit is contained in:
parent
9a3263ec5d
commit
593a1f12b7
|
@ -237,6 +237,7 @@ for locale in get_locales():
|
||||||
current = get_json_filename(locale)
|
current = get_json_filename(locale)
|
||||||
legacy = get_legacy_filename(locale)
|
legacy = get_legacy_filename(locale)
|
||||||
if os.path.exists(current) and os.path.exists(legacy):
|
if os.path.exists(current) and os.path.exists(legacy):
|
||||||
|
print(f"Checking legacy translations for: {current}")
|
||||||
current_translations = get_translations(current)
|
current_translations = get_translations(current)
|
||||||
legacy_translations = get_translations(legacy)
|
legacy_translations = get_translations(legacy)
|
||||||
update_for_legacy_stream_translations(current_translations, legacy_translations, current)
|
update_for_legacy_stream_translations(current_translations, legacy_translations, current)
|
||||||
|
|
Loading…
Reference in New Issue