]> git.koha-community.org Git - koha.git/commit
Bug 10573: French translation for printing a basketgroup
authorChristophe Croullebois <christophe.croullebois@biblibre.com>
Wed, 10 Jul 2013 14:57:12 +0000 (16:57 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 13 Sep 2013 13:52:23 +0000 (10:52 -0300)
commit5d3f5023019f0d09688ebb44d35259fd2ec9990a
tree14d8f20997ac0a5301b486f5a984fbcbaf9c056e
parent27f96f606c90f85756b290e1a832377f5465bf40
Bug 10573: French translation for printing a basketgroup

If you want to print a basketgroup with pdf format, it will be in
English.  The pdf is done with layout2pages.pm or layout3pages.pm,
which call layout2pages.pdf or layout3pages.pdf.

This patch adds layout3pagesfr.pm in src/acqui/pdfformat/ which
calls layout3pagesfr.pdf.

And adds in basketgroup.pl the check for layout3pagesfr
To use it you have to change the systempreferences to  pdfformat::layout3pagesfr

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Work as described, koha-qa reports some tab errors.
Corrected in a followup.

Please, always add a test plan, it's easier to test.

Test:
1) apply the patch
2) change syspref OrderPdfFormat to pdfformat::layout3pagesfr
3) select a vendor
4) create a basket group (empty works)
5) close basket group
6) print basket group
7) PDF is in french

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
This works nicely, although it would be better if we could
find a more general solution to make the templates editable
and translatable.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit a7fe13a52f320e6aded1f3313f721bd7fd73fb52)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
I don't like the approach, but I wouldn't hold this one until a proper solution comes up.
acqui/basketgroup.pl
acqui/pdfformat/layout3pagesfr.pm [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/pdf/layout3pagesfr.odt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/pdf/layout3pagesfr.pdf [new file with mode: 0644]