Bugzilla – Attachment 27522 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]
Make i18n toolchain ignore useless strings
0001-Bug-11631-Make-i18n-toolchain-ignore-useless-strings.patch (text/plain), 818 bytes, created by
paxed
on 2014-04-24 08:15:51 UTC
(
hide
)
Description:
Make i18n toolchain ignore useless strings
Filename:
MIME Type:
Creator:
paxed
Created:
2014-04-24 08:15:51 UTC
Size:
818 bytes
patch
obsolete
>From 6154564f5ea61de19b1624f5ffec0a30aecd1b07 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] Bug 11631: Make i18n toolchain ignore useless strings > >--- > 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.8.3.2 >
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