diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 658101f8..2c2f775b 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -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 diff --git a/VERSION b/VERSION index ec6d649b..f483a0c1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.1 +1.18.1-develop1 diff --git a/defaults/translations/it.yml b/defaults/translations/it.yml index fe81388e..f9a9f3e3 100644 --- a/defaults/translations/it.yml +++ b/defaults/translations/it.yml @@ -447,10 +447,6 @@ translations: decade_name: Il meglio del <> decade_summary: I migliori <> <> del <>. - # example key_name: 2010 - decade_show_name: Il meglio del <> - decade_show_summary: I migliori <> <> del <>. - # example key_name: Robin Williams director_name: <> (Regista) director_summary: <> diretti da <>. diff --git a/modules/meta.py b/modules/meta.py index 4607adf8..fb548221 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -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: