diff --git a/web/models.py b/web/models.py index 9facb9aca..d32fbcb42 100644 --- a/web/models.py +++ b/web/models.py @@ -242,6 +242,7 @@ def __init__(self): meta_info_json = json.load(meta_file) self.structures = meta_info_json["structures"] self.languages = meta_info_json["languages"] + def language_name(self, language_key): """ @@ -281,7 +282,7 @@ def load_languages(self, language_keys_versions, meta_structure): raise MissingStructureError( meta_structure, language_key, - self.language_friendly_name(language_key), + self.language_name(language_key), version, ) from file_not_found except KeyError as key_error: