Author Topic: Translate the string "Customfield Cart Variant"  (Read 2818 times)

aeffe68

  • Beginner
  • *
  • Posts: 13
  • A beginner
Translate the string "Customfield Cart Variant"
« 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

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3700
  • using Matomo instead of Google Analytics
Re: Translate the string "Customfield Cart Variant"
« Reply #1 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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

aeffe68

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: Translate the string "Customfield Cart Variant"
« Reply #2 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...

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27942
  • Always on vacation
    • Jenkin Hill Internet
Re: Translate the string "Customfield Cart Variant"
« Reply #3 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.7 10374 on Joomla 3.9.23 PHP 7.4.12

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3700
  • using Matomo instead of Google Analytics
Re: Translate the string "Customfield Cart Variant"
« Reply #4 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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

aeffe68

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: Translate the string "Customfield Cart Variant"
« Reply #5 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.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3700
  • using Matomo instead of Google Analytics
Re: Translate the string "Customfield Cart Variant"
« Reply #6 on: July 07, 2015, 19:22:33 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".
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

aeffe68

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: Translate the string "Customfield Cart Variant"
« Reply #7 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

aeffe68

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: Translate the string "Customfield Cart Variant"
« Reply #8 on: July 08, 2015, 11:45:03 am »
I solved it by directly editing the database.
Thank you all for availability