Bugzilla – Attachment 27527 Details for
Bug 11631
Make translation toolchain ignore useless translatable strings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED_OFF] Bug 11631: Make i18n toolchain ignore useless strings
SIGNEDOFF-Bug-11631-Make-i18n-toolchain-ignore-use.patch (text/plain), 967 bytes, created by
Bernardo Gonzalez Kriegel
on 2014-04-24 11:34:16 UTC
(
hide
)
Description:
[SIGNED_OFF] Bug 11631: Make i18n toolchain ignore useless strings
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2014-04-24 11:34:16 UTC
Size:
967 bytes
patch
obsolete
>From 40c5a2df87fe355f3dba291a78f23ff55e772184 Mon Sep 17 00:00:00 2001 >From: Pasi Kallinen <pasi.kallinen@pttk.fi> >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 <bgkriegel@gmail.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11631
:
24859
|
26478
|
26492
|
26512
|
26522
|
26834
|
27522
|
27527
|
27659
|
27660