VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Reissuli on February 09, 2014, 19:19:38 PM

Title: Virtuemart cart module how to translate texts
Post by: Reissuli on February 09, 2014, 19:19:38 PM
Once again, I faced a problem, that I can not solve myself.

I have published Virtuemart Cart module, and the texts appear in English.
I was somehow able to change the "total" text to Finnish, "Yhteensä".
Now, I would need to change the "Cart" text to "Ostoskori".

I have spent 2 hours trying to do this, but Can not figure this out.. Big thaks, if someone could please help me.
Title: Re: Virtuemart cart module how to translate texts
Post by: jjk on February 11, 2014, 19:38:36 PM
It should be in the file your-root-directory\language\fi-FI\fi-FI.com_virtuemart.ini
Depending on your VirtueMart version it's approximately in Line 98:
COM_VIRTUEMART_CART_TITLE="Ostoskori"

I suppose you have an outdated finnish language file pack. You can download the latest translation files here: http://virtuemart.net/community/translations
Title: Re: Virtuemart cart module how to translate texts
Post by: Reissuli on February 11, 2014, 20:12:46 PM
Yes, in the language file, there is in line 91, text:
COM_VIRTUEMART_CART_TITLE="Ostoskori"

But in the cart module, it still says "cart".

What to do?
I would suppose, that for some reason the cart module doesn't know how to get the right language.
Title: Re: Virtuemart cart module how to translate texts
Post by: jjk on February 11, 2014, 20:36:27 PM
Sorry, I overlooked that you mean the cart module. The displayed default title of the module (see your module settings) is 'VM - Shopping cart'. If you see just 'Cart' I assume that your template comes with a cart module customized by your template developer. So maybe you need to check the language files or the cart module title of your template. If your site is bilingual, you need to publish one cart module for each language, e.g. one assigned to fi-FI and one assigned to en-GB.
Title: Re: Virtuemart cart module how to translate texts
Post by: Reissuli on February 12, 2014, 19:54:31 PM
Thank you!
I had no idea, that the template used a customized cart module. I found the correct file, and edited the text to "ostoskori". Now everything is looking fine!