From 3e72ec4acc9ffe44a24371f869ba4038a72c60b4 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 24 Mar 2013 19:08:11 +1300 Subject: [PATCH] Bug 8200 - removing misc/translator/update.pl - deprecated file Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Patch removes unused file. Signed-off-by: Jared Camins-Esakov --- 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 6f31ffbfa1..0000000000 --- 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 -- 2.39.5