[1] fix IT translation

pull/1243/head
meisnate12 2 years ago
parent dea23256c9
commit 81c4ffe53a

@ -88,7 +88,7 @@ jobs:
- name: Get Changelog
id: notes
run: echo ::set-output name=notes::$(cat CHANGELOG)
run: echo ::set-output name=notes::$(cat CHANGELOG -Raw)
- name: Create release
id: create_release

@ -1 +1 @@
1.18.1
1.18.1-develop1

@ -447,10 +447,6 @@ translations:
decade_name: Il meglio del <<translated_key_name>>
decade_summary: I migliori <<limit>> <<library_translation>> del <<translated_key_name>>.
# example key_name: 2010
decade_show_name: Il meglio del <<translated_key_name>>
decade_show_summary: I migliori <<limit>> <<library_translation>> del <<translated_key_name>>.
# example key_name: Robin Williams
director_name: <<translated_key_name>> (Regista)
director_summary: <<library_translationU>> diretti da <<translated_key_name>>.

@ -161,13 +161,14 @@ class DataFile:
variables[var_key][yaml_key] = var_value[lib_type]
if "translations" in yaml_content.data and yaml_content.data["translations"]:
for ky, vy in yaml_content.data["translations"].items():
if ky in translations:
translations[ky][yaml_key] = vy
for translation_key in translations:
if translation_key in yaml_content.data["translations"]:
translations[translation_key][yaml_key] = yaml_content.data["translations"][translation_key]
else:
logger.error(f"Config Error: {ky} must have a default value in {yaml_path}")
logger.error(f"Translation Error: translations attribute {translation_key} not found in {yaml_path}")
else:
logger.error(f"Config Error: Top Level translations attribute not found in {yaml_path}")
if "key_names" in yaml_content.data and yaml_content.data["key_names"]:
for kn, vn in yaml_content.data["key_names"].items():
if kn not in key_names:

Loading…
Cancel
Save