11 Install templates for given language codes.
15 ./install-code fr-FR en-ES
17 creates templates for languages: fr-FR and en-ES
25 opendir(PO_DIR, "po") or die "Unable to open po directory";
26 my @po_files = grep { /^$code-i-opac|^$code-i-staff/ } readdir PO_DIR;
29 foreach ( @po_files ) {
30 my ($interface) = /(staff|opac)/;
31 $interface =~ s/staff/intranet/;
32 mkdir "../../koha-tmpl/$interface-tmpl/prog/$code";
33 print $_, " : ", $interface, "\n";
34 my $cmd = "./tmpl_process3.pl install -r " .
35 "-i ../../koha-tmpl/$interface-tmpl/prog/en/ " .
36 "-o ../../koha-tmpl/$interface-tmpl/prog/$code/ " .
45 install_code ( $_ ) foreach ( @ARGV );