mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Add translation-domain
This allows you to set the translation domain of a blueprint file.
This commit is contained in:
parent
c5fa33363f
commit
e261180dcc
6 changed files with 72 additions and 2 deletions
|
@ -12,7 +12,10 @@ class XmlOutput(OutputFormat):
|
|||
return xml.result
|
||||
|
||||
def _emit_ui(self, ui: UI, xml: XmlEmitter):
|
||||
xml.start_tag("interface")
|
||||
if domain := ui.translation_domain:
|
||||
xml.start_tag("interface", domain=domain.domain)
|
||||
else:
|
||||
xml.start_tag("interface")
|
||||
|
||||
self._emit_gtk_directive(ui.gtk_decl, xml)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue