|
|
@ -306,8 +306,8 @@ class DataFile:
|
|
|
|
conditionals[k] = v
|
|
|
|
conditionals[k] = v
|
|
|
|
|
|
|
|
|
|
|
|
language = variables["language"] if "language" in variables else "default"
|
|
|
|
language = variables["language"] if "language" in variables else "default"
|
|
|
|
translation_variables = {k: v[language if language in v else "default"] for k, v in self.translations.items()}
|
|
|
|
translation_variables = {k: v[language if language in v else "default"] for k, v in self.translations.items() if k not in optional}
|
|
|
|
translation_variables.update({k: v[language if language in v else "default"] for k, v in self.translation_variables.items() if language in v or "default" in v})
|
|
|
|
translation_variables.update({k: v[language if language in v else "default"] for k, v in self.translation_variables.items() if (language in v or "default" in v) and k not in optional})
|
|
|
|
key_name_variables = {}
|
|
|
|
key_name_variables = {}
|
|
|
|
for var_key, var_value in self.key_names.items():
|
|
|
|
for var_key, var_value in self.key_names.items():
|
|
|
|
if var_key == "library_type" and language in var_value:
|
|
|
|
if var_key == "library_type" and language in var_value:
|
|
|
|