[Libreoffice-commits] core.git: .git-hooks/pre-commit
Caolán McNamara
caolanm at redhat.com
Mon Sep 11 10:56:33 UTC 2017
.git-hooks/pre-commit | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 3fa79c0fa5619911e7a251e2b3a837fdaa426f48
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Sep 11 10:44:06 2017 +0100
disallow .ui translatable entries without context at checkin
Change-Id: Iece6ae3c4eabad4cd113f469495d2c42833a7b92
Reviewed-on: https://gerrit.libreoffice.org/42157
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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)
More information about the Libreoffice-commits
mailing list