1#!/usr/bin/env bash
2
3# This test checks that dialogs have a non-default window title or it is not marked for translation
4
5if git grep -E -B1 '<string>(Form|Dialog)</string>' "*.ui" | grep -qs '<property name="windowTitle"'; then
6  echo ' *** Found ui with default window title - consider changing or unchecking "translatable"/adding notr="true"'
7  git grep -E -B1 '<string>(Form|Dialog)</string>' "*.ui" | grep -A1 '<property name="windowTitle"'
8  exit 1
9fi
10
11