Create Invoice (FPDF) in other language than GUI

Hello,

my GUI/main language is english (system language). I have created an invoice template by copying “pdf_crabe.modules.php”. Anyway, I would like that my template uses another template language.

At the beginning of “pdf_crabe.modules.php” I see $langs->load("main"); and $langs->load("bills"); - how can I change $langs to use other locale than “en_US” just for that specific FPDF template? It should, of course, not have any influence on the systems language, but only on the invoice template.

Thanks.

Best regards,
Ronny

Hello

I’m not sure of a ‘correct’ way to do it but personally, I would copy all the fields needed into a new lang file and call it [tt]translated.lang[/tt] and then only call that in the pdf file. Save the lang file in the lang folder of your setup.