From d4d36285c8440b631100b7bfbfd1a3105c2d22e5 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 16 Jan 2023 15:32:14 -0500 Subject: [PATCH] [20] fix translations --- VERSION | 2 +- defaults/translations/it.yml | 9 ++++++--- defaults/translations/pt-br.yml | 7 +++++-- modules/meta.py | 6 +++--- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/VERSION b/VERSION index 9ee874a5..767faac2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.2-develop19 +1.18.2-develop20 diff --git a/defaults/translations/it.yml b/defaults/translations/it.yml index f9a9f3e3..af272aeb 100644 --- a/defaults/translations/it.yml +++ b/defaults/translations/it.yml @@ -1,4 +1,4 @@ -version: 1.18.0.7 +version: 1.18.2.1 variables: library_translation: # For Movie Libraries @@ -265,8 +265,11 @@ translations: emmy_year_name: Emmys <> emmy_year_summary: Vincitori Emmy <>. - golden_best_name: Golden Globe Miglior Film - golden_best_summary: Golden Globe Miglior Film. + golden_picture_name: Vincitori dei Golden Globes per il Miglior Film + golden_picture_summary: Vincitori dei Golden Globes per il Miglior Film. + + golden_director_name: Vincitori dei Golden Globes per il Miglior Regista + golden_director_summary: Vincitori dei Golden Globes come Miglior Regista. # example key_name: 2022 golden_year_name: Golden Globe <> diff --git a/defaults/translations/pt-br.yml b/defaults/translations/pt-br.yml index f37fd4ad..1af1fc14 100644 --- a/defaults/translations/pt-br.yml +++ b/defaults/translations/pt-br.yml @@ -265,8 +265,11 @@ translations: emmy_year_name: Emmys <> emmy_year_summary: <> Vencedores do Emmy. - golden_best_name: Globo de Ouro de Melhores Filmes - golden_best_summary: Globo de Ouro de Melhores Filmes. + golden_picture_name: Globos de Ouro Melhores Vencedores + golden_picture_summary: Golden Globes Best Picture Winners. + + golden_director_name: Globos de Dourado Melhores Vencedores Directores + golden_director_summary: Golden Globes Best Director Winners. # example key_name: 2022 golden_year_name: Globo de Ouro <> diff --git a/modules/meta.py b/modules/meta.py index bcc1dd0b..d60132c2 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -147,7 +147,7 @@ class DataFile: raise Failed(f"URL Error: Top Level translations attribute not found in {content_path}") translations = {k: {"default": v} for k, v in yaml.data["translations"].items()} lib_type = self.library.type.lower() if self.library else "item" - logger.debug(f"Translations Loaded From: {dir_path}") + logger.trace(f"Translations Loaded From: {dir_path}") key_names = {} variables = {k: {"default": v[lib_type]} for k, v in yaml.data["variables"].items()} @@ -165,9 +165,9 @@ class DataFile: if translation_key in yaml_content.data["translations"]: translations[translation_key][yaml_key] = yaml_content.data["translations"][translation_key] else: - logger.error(f"Translation Error: translations attribute {translation_key} not found in {yaml_path}") + logger.trace(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}") + logger.trace(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():