.git-hooks/pre-commit | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 3fa79c0fa5619911e7a251e2b3a837fdaa426f48
Author: Caolán McNamara <[email protected]>
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 <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
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)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits