Bugzilla – Attachment 13729 Details for
Bug 9161
Translate only specific files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
MT9161: Followup change the maching test
MT9161-Followup-change-the-maching-test.patch (text/plain), 1.22 KB, created by
Jonathan Druart
on 2012-11-28 10:31:36 UTC
(
hide
)
Description:
MT9161: Followup change the maching test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-11-28 10:31:36 UTC
Size:
1.22 KB
patch
obsolete
>From 0d69f91b9261c4cfd53f4e2b6703548e241ff66f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 28 Nov 2012 11:28:24 +0100 >Subject: [PATCH] MT9161: Followup change the maching test > >you can specify > -f advsearch.tt => translate all files with a filename containing > 'advsearch.tt' >or > -f search => will translate acqui/histsearch.tt, acqui/z3950_search.tt, etc. >--- > misc/translator/tmpl_process3.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl >index f1ae0b0..8961f5c 100755 >--- a/misc/translator/tmpl_process3.pl >+++ b/misc/translator/tmpl_process3.pl >@@ -148,7 +148,7 @@ sub listfiles { > } elsif (-f $path) { > my $basename = basename $path; > push @it, $path >- if ( not @$filenames or ( grep {/$basename/} @$filenames ) ) >+ if ( not @$filenames or ( grep { $basename =~ /$_/ } @$filenames ) ) > and (!defined $type || $dirent =~ /\.(?:$type)$/) || $action eq 'install'; > } elsif (-d $path && $recursive_p) { > push @it, listfiles($path, $type, $action, $filenames); >-- >1.7.10.4
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 9161
:
13728
|
13729
|
13731
|
14208
|
14914
|
14997
|
15207
|
18362
|
18363