2020-04-24 08:47:46 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# This test checks that dialogs have a non-default window title or it is not marked for translation
|
|
|
|
|
2020-05-16 20:55:28 +02:00
|
|
|
if git grep -E -B1 '<string>(Form|Dialog)</string>' "*.ui" | grep -qs '<property name="windowTitle"'; then
|
2020-04-24 08:47:46 +02:00
|
|
|
echo ' *** Found ui with default window title - consider changing or unchecking "translatable"/adding notr="true"'
|
2020-05-16 20:55:28 +02:00
|
|
|
git grep -E -B1 '<string>(Form|Dialog)</string>' "*.ui" | grep -A1 '<property name="windowTitle"'
|
2020-04-24 08:47:46 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|