Bugzilla – Attachment 13896 Details for
Bug 9216
Make table headings translatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9216 : Adding copy of columns.def.{lang} (if it exists) into {lang} directory tree during translation process
Bug-9216--Adding-copy-of-columnsdeflang-if-it-exis.patch (text/plain), 1.40 KB, created by
Sophie MEYNIEUX
on 2012-12-05 12:59:26 UTC
(
hide
)
Description:
Bug 9216 : Adding copy of columns.def.{lang} (if it exists) into {lang} directory tree during translation process
Filename:
MIME Type:
Creator:
Sophie MEYNIEUX
Created:
2012-12-05 12:59:26 UTC
Size:
1.40 KB
patch
obsolete
>From 71b08b0b9014f5b20d759e4eb1b334aa3e301636 Mon Sep 17 00:00:00 2001 >From: Sophie Meynieux <sophie.meynieux@biblibre.com> >Date: Wed, 5 Dec 2012 12:14:20 +0100 >Subject: [PATCH] Bug 9216 : Adding copy of columns.def.{lang} (if it exists) > into {lang} directory tree during translation process > >--- > misc/translator/translate | 15 ++++++++++++++- > 1 files changed, 14 insertions(+), 1 deletions(-) > >diff --git a/misc/translator/translate b/misc/translator/translate >index f0c12c9..8824c41 100755 >--- a/misc/translator/translate >+++ b/misc/translator/translate >@@ -25,7 +25,7 @@ use warnings; > use LangInstaller; > use Getopt::Long; > use Pod::Usage; >- >+use File::Copy; > > my $verbose = 0; > my $pref = 0; >@@ -68,6 +68,19 @@ else { > usage(); > } > >+# Copy of the translated columns.def >+# name expected (for example with fr-FR): columns.def.fr-FR >+my $filetobecopied = C4::Context->config('intrahtdocs') . "/prog/en/columns.def.$lang"; >+my $newfile = C4::Context->config('intrahtdocs') . "/prog/$lang/columns.def"; >+print "Looking for the following column.def file : " . $filetobecopied . "\n"; >+if (-e $filetobecopied) { >+ print "Language specific column.def file found.\n"; >+ print "Copying to destination : " . $newfile . "\n"; >+ copy($filetobecopied, $newfile) or die "ERROR: File cannot be copied.\n"; >+} >+else { >+ print "Language specific column.def file NOT found.\n"; >+} > > > =head1 NAME >-- >1.7.5.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 9216
:
13895
|
13896
|
22521
|
26989
|
27007
|
27308
|
27309