From f8273cb3c9c079dee96e21b23806f7bd794ba9f2 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 9 Apr 2023 21:20:05 -0400 Subject: [PATCH] [177] fix translation_prefix --- VERSION | 2 +- modules/builder.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index d719013f..38dbef18 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop176 +1.18.3-develop177 diff --git a/modules/builder.py b/modules/builder.py index fa3bea00..ac351e45 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -315,11 +315,9 @@ class CollectionBuilder: trans_name = translations["collections"][translation_key]["name"] if "summary" in translations["collections"][translation_key]: trans_summary = translations["collections"][translation_key]["summary"] - if "translation_prefix" in methods: + if "translation_prefix" in methods and self.data[methods["translation_prefix"]]: logger.debug("") logger.debug("Validating Method: translation_prefix") - if not self.data[methods["translation_prefix"]]: - raise Failed(f"{self.Type} Error: translation_prefix attribute is blank") logger.debug(f"Value: {self.data[methods['translation_prefix']]}") en_name = f"{self.data[methods['translation_prefix']]}{en_name}" trans_name = f"{self.data[methods['translation_prefix']]}{trans_name}"