diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-11 10:44:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-11 12:56:12 +0200 |
commit | 3fa79c0fa5619911e7a251e2b3a837fdaa426f48 (patch) | |
tree | 0d04bf3583f19922a7551107285004884a85ca05 | |
parent | c14be5f5545768fc06bd1e3900e076dc28be2649 (diff) |
disallow .ui translatable entries without context at checkin
Change-Id: Iece6ae3c4eabad4cd113f469495d2c42833a7b92
Reviewed-on: https://gerrit.libreoffice.org/42157
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-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) |