Bugzilla – Attachment 17254 Details for
Bug 8200
/home/chris/git/koha.git in /usr/share/koha/misc/translator/update.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 8200 - removing misc/translator/update.pl - deprecated file
PASSED-QA-Bug-8200---removing-misctranslatorupdate.patch (text/plain), 2.18 KB, created by
Katrin Fischer
on 2013-04-07 12:18:14 UTC
(
hide
)
Description:
[PASSED QA] Bug 8200 - removing misc/translator/update.pl - deprecated file
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-04-07 12:18:14 UTC
Size:
2.18 KB
patch
obsolete
>From c6af9e913147f74ef51ad5c2c8282800787b5827 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chris@bigballofwax.co.nz> >Date: Sun, 24 Mar 2013 19:08:11 +1300 >Subject: [PATCH] [PASSED QA] Bug 8200 - removing misc/translator/update.pl - > deprecated file > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Patch removes unused file. >--- > misc/translator/update.pl | 52 --------------------------------------------- > 1 file changed, 52 deletions(-) > delete mode 100755 misc/translator/update.pl > >diff --git a/misc/translator/update.pl b/misc/translator/update.pl >deleted file mode 100755 >index 6f31ffb..0000000 >--- a/misc/translator/update.pl >+++ /dev/null >@@ -1,52 +0,0 @@ >-#!/usr/bin/perl >-# script to update all translations >-use strict; >-use warnings; >-use lib '/home/chris/git/koha.git'; >-use C4::Languages; >-# Go through the theme/module combinations we need to update. >-my $dir = "po"; >-my $po; >-opendir (DIR,$dir); >-while (defined($po = readdir(DIR))) { >- next if $po =~ /^\.\.?$/; >- print "processing $po...\n"; >- my $interface = 'intranet'; >- if ($po =~ /opac/) { >- $interface = 'opac'; >- } >- system("./tmpl_process3.pl update -i ../../koha-tmpl/$interface-tmpl/prog/en/ -s po/$po -r"); >- print "Finished\n"; >-} >-closedir DIR; >- >-=head1 EXAMPLE >- >- my($theme, $module) = @$spec; >- my $pid = fork; >- die "fork: $!\n" unless defined $pid; >- if (!$pid) { >- >- # If current directory is translator/po instead of translator, >- # then go back to the parent >- if ($chdir_needed_p) { >- chdir('..') || die "..: cd: $!\n"; >- } >- >- # Now call tmpl_process3.pl to do the real work >- # >- # Traditionally, the pot file should be named PACKAGE.pot >- # (for Koha probably something like koha_intranet_css.pot), >- # but this is not Koha's convention. >- # >- my $target = "po/${theme}_${module}" . ($pot_p? ".pot": "_$lang.po"); >- rename($target, "$target~") if $pot_p; >- exec('./tmpl_process3.pl', ($pot_p? 'create': 'update'), >- '-i', "../../koha-tmpl/$module-tmpl/$theme/en/", >- '-s', $target, '-r'); >- >- die "tmpl_process3.pl: exec: $!\n"; >- } >- wait; >- } >-=cut >-- >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 8200
:
16829
|
17129
| 17254 |
17255