mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
11 lines
435 B
Bash
Executable File
11 lines
435 B
Bash
Executable File
#!/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
|
|
|