[177] fix translation_prefix

This commit is contained in:
meisnate12 2023-04-09 21:20:05 -04:00
parent af9c4f0bb8
commit f8273cb3c9
2 changed files with 2 additions and 4 deletions

View file

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

View file

@ -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}"