VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: aeffe68 on July 06, 2015, 12:38:33 PM

Title: Translate the string "Customfield Cart Variant"
Post by: aeffe68 on July 06, 2015, 12:38:33 PM
Hi, I wonder if anyone knows how to translate in Italian the string "Customfield Cart Variant", I can not find in any language files. Could you help me?
thanks
Title: Re: Translate the string "Customfield Cart Variant"
Post by: jjk on July 06, 2015, 20:06:53 PM
I suppose that language string is supplied by your template. As far as I know it's not part of any original VM language file.
Title: Re: Translate the string "Customfield Cart Variant"
Post by: aeffe68 on July 07, 2015, 11:30:55 AM
But I think it depends on virtuemart as the string is also displayed in the backend product page...
Title: Re: Translate the string "Customfield Cart Variant"
Post by: jenkinhill on July 07, 2015, 13:24:56 PM
You appear to be using VM3.0.4 which is known to be insecure. You should be using at least VM3.0.8, and current release version is 3.9.4   http://virtuemart.net/news/latest-news/469-security-release-vm3-0-8

The text Customfield Cart Variant does not appear in current versions, but may have been used 6 months ago when 3.0.4 was released. There have been a lot of changes & bug fixes since then.
Title: Re: Translate the string "Customfield Cart Variant"
Post by: jjk on July 07, 2015, 13:42:10 PM
Ok, it's your custom field title that is displayed. If you want to translate custom fields, see here: http://forum.virtuemart.net/index.php?topic=96758.0
I've written that long time ago, but it still works like this in latest VM versions.
Title: Re: Translate the string "Customfield Cart Variant"
Post by: aeffe68 on July 07, 2015, 14:12:01 PM
I tried to put in override
COM_VIRTUEMART_CUSTOM_CART_VARIANT
COM_VIRTUEMART_CUSTOM_CLASS_NAME
but nothing, even to include it in the file of Italian language, but did not enter anything.
the problem is that I really find the string in the file of the original language.
Title: Re: Translate the string "Customfield Cart Variant"
Post by: jjk on July 07, 2015, 19:22:33 PM
Quote from: aeffe68 on July 07, 2015, 14:12:01 PM
I tried to put in override
COM_VIRTUEMART_CUSTOM_CART_VARIANT
COM_VIRTUEMART_CUSTOM_CLASS_NAME
That's wrong. These keys are used by VM in other views. You should open your 'Custom Fields' List. Somewhere in that list you should have 'Customfield Cart Variant' as a title. Looks to me like an old custom field title from the sample data. If you want to have a title in more than one language, you have to invent your own language key and enter that instead of the plain language title. For example COM_VIRTUEMART_CUSTOM_CART_MYVARIANT. Afterwards you can add something like:
COM_VIRTUEMART_CUSTOM_CART_MYVARIANT="Colore: " as a language override into the italian language override file.

If your site uses Italian only, you could also simply exchange the "Customfield Cart Variant" title with for example "Colore".
Title: Re: Translate the string "Customfield Cart Variant"
Post by: aeffe68 on July 08, 2015, 10:45:10 AM

I tried to enter into the italian language override file
COM_VIRTUEMART_CUSTOM_CART_MYVARIANT = "colore:
but nothing happens
Title: Re: Translate the string "Customfield Cart Variant"
Post by: aeffe68 on July 08, 2015, 11:45:03 AM
I solved it by directly editing the database.
Thank you all for availability