mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[1] fix IT translation
This commit is contained in:
parent
dea23256c9
commit
81c4ffe53a
4 changed files with 7 additions and 10 deletions
2
.github/workflows/version.yml
vendored
2
.github/workflows/version.yml
vendored
|
@ -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
|
||||
|
|
2
VERSION
2
VERSION
|
@ -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…
Reference in a new issue