From 40c5a2df87fe355f3dba291a78f23ff55e772184 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 24 Apr 2014 11:01:52 +0300 Subject: [PATCH] [SIGNED_OFF] Bug 11631: Make i18n toolchain ignore useless strings Signed-off-by: Bernardo Gonzalez Kriegel Works as described, 380 strings less to 'translate' No koha-qa errors. --- misc/translator/xgettext.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl index 032117d..ea75794 100755 --- a/misc/translator/xgettext.pl +++ b/misc/translator/xgettext.pl @@ -37,6 +37,7 @@ sub string_negligible_p ($) { || $t =~ /^\d+$/ # purely digits || $t =~ /^[-\+\.,:;!\?'"%\(\)\[\]\|]+$/ # punctuation w/o context || $t =~ /^[A-Za-z]$/ # single letters + || $t =~ /^(&[a-z]+;|&#\d+;|&#x[0-9a-fA-F]+;|%%|%s|\s|[[:punct:]])*$/ # html entities,placeholder,punct, ... ) } -- 1.7.9.5