diff options
Diffstat (limited to 'bin/lint-ui.py')
-rwxr-xr-x | bin/lint-ui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/lint-ui.py b/bin/lint-ui.py index 2ed80c2523fb..88fb2cc460a1 100755 --- a/bin/lint-ui.py +++ b/bin/lint-ui.py @@ -98,6 +98,8 @@ def main(): tree = ET.parse(sys.argv[1]) root = tree.getroot() + lint_assert('domain' in root.attrib, "interface needs to specific translation domain") + top_level_widgets = [element for element in root.findall('object') if element.attrib['class'] not in IGNORED_TOP_LEVEL_WIDGETS] assert len(top_level_widgets) == 1 |