[1] fix IT translation

This commit is contained in:
meisnate12 2022-12-23 02:45:51 -05:00
parent dea23256c9
commit 81c4ffe53a
4 changed files with 7 additions and 10 deletions

View file

@ -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

View file

@ -1 +1 @@
1.18.1
1.18.1-develop1

View file

@ -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>>.

View file

@ -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: