VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: WWG on February 13, 2014, 14:01:53 PM

Title: Shop in Polish, invoice in German
Post by: WWG on February 13, 2014, 14:01:53 PM
Hi, Could You tell me where can I find Language file for invoices? I have shop in polish but invoices I need in German. Wchich file should I replace from german language pack? If it is not possible, tell me wchich file or files schould I translate manulay.

Bart
Title: Re: Shop in Polish, invoice in German
Post by: StefanSTS on February 13, 2014, 16:25:26 PM
Hi,

if you want only the invoice in German, you need to put the German strings into your pl-PL.com_virtuemart.ini file.
Search a copy of the downloaded and unpacked virtuemart files for the file name. There are two files, you need the one from the /frontend/, not sure, if you need the file from /admin/ too.

To find out which strings to replace, you can go through the files
\components\com_virtuemart\views\invoice\tmpl\*.php

You find something like COM_VIRTUEMART_MAIL_SHOPPER_YOUR_ORDER.
Replace the Polish strings with the ones from de-DE.com_virtuemart.ini.
COM_VIRTUEMART_MAIL_SHOPPER_YOUR_ORDER="Ihre Bestellnummer: "

If still something is missing, search a polish text with a text search function of a file manager in all virtuemart files. I use Total Commander for that.

Quite a task to find all.

Hope it helps
Stefan