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)
committerGalen Charlton <gmc@esilibrary.com>
Sat, 17 Aug 2013 16:05:04 +0000 (16:05 +0000)
commita7fe13a52f320e6aded1f3313f721bd7fd73fb52
tree1705a01878d1861e81bb2f98030a699a4ec8c641
parente94e37969825633116093a24dc7fc0afb5975648
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>
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]