Bugzilla – Attachment 14997 Details for
Bug 9161
Translate only specific files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9161: Allow to specificy a complete relpath instead of a filename
Bug-9161-Allow-to-specificy-a-complete-relpath-ins.patch (text/plain), 1.25 KB, created by
Jonathan Druart
on 2013-02-01 10:00:49 UTC
(
hide
)
Description:
Bug 9161: Allow to specificy a complete relpath instead of a filename
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-02-01 10:00:49 UTC
Size:
1.25 KB
patch
obsolete
>From dfeb198815ebfa1c6f0f0ad550b5c69ee02fea2d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 29 Jan 2013 15:53:10 +0100 >Subject: [PATCH] Bug 9161: Allow to specificy a complete relpath instead of a > filename > >Now you can call the translate script with a -f parameter containing a >complete relpath >(koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt or >admin/preferences.tt for e.g.) >--- > 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 13d9cc7..6aa10e3 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 { $path =~ /$_/ } @$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