News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Language problem with product variant

Started by multistud, December 08, 2017, 14:26:49 PM

Previous topic - Next topic

multistud

Hello,
since the update of Virtuemart 3.2.6 then 3.2.8
I have a small problem of language, with the variants product: the text "com_vm_customfield_variant_price" appears.
This string does not appear anywhere in the language files ???
See screenshot.

jenkinhill

It is present in components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini  but maybe not in your language file.

The entry is COM_VM_CUSTOMFIELD_VARIANT_PRICE="%1$s%2$s"  so you can add that as an override, looks like it does not need translating.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

multistud

Thank you,
I could see where the code found,
but why the function "% 1 $ s% 2 $ s" does not work then?
Because when one seeks on Google "COM_VM_CUSTOMFIELD_VARIANT_PRICE",
there is apparently a lot of web-site which one the same error!
it shows the text and not the result of the function ???

Studio 42

I think the site dont paid attention, Core dev add new feature that change some value and if you don't show it, you can have unwanted display.
For eg price added on the image input from one release to other.
Most translation have not this COM_VM_CUSTOMFIELD_VARIANT_PRICE key, so many sites have now this key displayed and and do not know it.

multistud

 ;) Ok and thank you Studio 42,
so I added in the substitution langague (en fr for me),
and now it works, it displays  + and the surplus price, (see screenshot).
François