mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
11 lines
435 B
Bash
11 lines
435 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# This test checks that dialogs have a non-default window title or it is not marked for translation
|
||
|
|
||
|
if git grep -B1 '<string>Form</string>' "*.ui" | grep -qs '<property name="windowTitle"'; then
|
||
|
echo ' *** Found ui with default window title - consider changing or unchecking "translatable"/adding notr="true"'
|
||
|
git grep -B1 '<string>Form</string>' "*.ui" | grep -A1 '<property name="windowTitle"'
|
||
|
exit 1
|
||
|
fi
|
||
|
|