[177] fix translation_prefix

pull/1372/head
meisnate12 2 years ago
parent af9c4f0bb8
commit f8273cb3c9

@ -1 +1 @@
1.18.3-develop176 1.18.3-develop177

@ -315,11 +315,9 @@ class CollectionBuilder:
trans_name = translations["collections"][translation_key]["name"] trans_name = translations["collections"][translation_key]["name"]
if "summary" in translations["collections"][translation_key]: if "summary" in translations["collections"][translation_key]:
trans_summary = translations["collections"][translation_key]["summary"] 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("")
logger.debug("Validating Method: translation_prefix") 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']]}") logger.debug(f"Value: {self.data[methods['translation_prefix']]}")
en_name = f"{self.data[methods['translation_prefix']]}{en_name}" en_name = f"{self.data[methods['translation_prefix']]}{en_name}"
trans_name = f"{self.data[methods['translation_prefix']]}{trans_name}" trans_name = f"{self.data[methods['translation_prefix']]}{trans_name}"

Loading…
Cancel
Save