diff --git a/blueprintcompiler/language/values.py b/blueprintcompiler/language/values.py index 596823d..b9eb877 100644 --- a/blueprintcompiler/language/values.py +++ b/blueprintcompiler/language/values.py @@ -51,7 +51,7 @@ class TranslatedWithContext(AstNode): return self.tokens["string"] @property - def context(self) -> str: + def translate_context(self) -> str: return self.tokens["context"] diff --git a/blueprintcompiler/outputs/xml/__init__.py b/blueprintcompiler/outputs/xml/__init__.py index 42d9b21..607cc36 100644 --- a/blueprintcompiler/outputs/xml/__init__.py +++ b/blueprintcompiler/outputs/xml/__init__.py @@ -151,7 +151,7 @@ class XmlOutput(OutputFormat): else: return { "translatable": "true", - "context": translated.child.context + "context": translated.child.translate_context if isinstance(translated.child, TranslatedWithContext) else None, }