[Koha-bugs] [Bug 9018] Po file for ccsr theme missing on translate.koha-community.org

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 23 10:59:52 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9018

--- Comment #13 from Paul Poulain <paul.poulain at biblibre.com> ---
Before releasing 3.10.0, I wrote the following small script, to generate
pre-filled ccsr.po:

#!/bin/perl

use File::Copy;

opendir(my $dh, 'po/');
@fichiers = grep { /(.*)-i-opac-t-prog-v-3006000\.po/ } readdir($dh);
foreach my $file (@fichiers) {
    $file =~ s/-i-opac-t-prog-v-3006000\.po//;
    print "==> $file\n";
   
copy("po/".$file."-i-opac-t-prog-v-3006000\.po","po/".$file."-opac-ccsr.po");
   system("./tmpl_process3.pl update -i
/home/paul/koha.dev/koha-community/koha-tmpl/opac-tmpl/ccsr/en/ -r -s
po/$file-opac-ccsr.po");
}

+
perl -i -ne 'print if ! /^#\~/' po/*.po
perl -i -00 -pe '' po/*.po

to remove blank/old&irrelevant lines

So, I've generated all ccsr translation files, that are 90% translated for
languages that are 100% translated.

The patch is a little bit large (Ruth, your first task as TM will will probably
to work on how translation are stored in our git repository... see
http://wiki.koha-community.org/wiki/Git_Splitting_and_Shrinking

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list