VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: multistud on December 08, 2017, 14:26:49 PM

Title: Language problem with product variant
Post by: multistud on December 08, 2017, 14:26:49 PM
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.
Title: Re: Language problem with product variant
Post by: jenkinhill on December 08, 2017, 15:01:13 PM
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.
Title: Re: Language problem with product variant
Post by: multistud on December 08, 2017, 15:21:38 PM
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 ???
Title: Re: Language problem with product variant
Post by: Studio 42 on December 10, 2017, 09:20:22 AM
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.
Title: Re: Language problem with product variant
Post by: multistud on December 10, 2017, 12:01:39 PM
 ;) 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