summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
Diffstat (limited to '.git-hooks')
-rwxr-xr-x.git-hooks/pre-commit5
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)