diff options
Diffstat (limited to '.git-hooks/pre-commit')
-rwxr-xr-x | .git-hooks/pre-commit | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 4a21655e8cfe..07569905488b 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -92,6 +92,11 @@ sub check_whitespaces($) { bad_line("use tooltip_text instead of tooltip_markup", $_, $src_limited); } + if ((/translatable="yes"/) and not(/context=/)) + { + bad_line("translatable .ui file line without context", $_, $src_limited); + } + } } if ( $found_bad) |