VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: servlet on April 14, 2016, 16:32:07 PM

Title: [BUG] Translation of ASK A QUESTION button
Post by: servlet on April 14, 2016, 16:32:07 PM
Hello
I found a bug. VM ...16 J! 3.5.1
Checked...
There is COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL in administrator and forntend language folders.
You cannot translate/override FE (frontend) language of this string. Everytime it get translation from administration section in English if you dont have translation of VM in BE in your language. I dont know why FE get translations of BE with priority. Why bypass override FE...
The same is with Description in product view.
So... everything is translated without Description and Ask a question about this product

I will hack BE EN language with translation of this string to solve my problem but many live shops will not
Title: Re: [BUG] Translation of ASK A QUESTION button
Post by: servlet on April 14, 2016, 17:29:12 PM
Just find more... Base price... Price... Sale prices in product view are not translated too

Maybe all in product view is not translated correctly.
Title: Re: [BUG] Translation of ASK A QUESTION button
Post by: servlet on October 25, 2016, 21:28:39 PM
No way
More then 120 days without fix of bug!!!
I will notify once again.
The bug still exist after update form VM 16 to 18.
Title: Re: [BUG] Translation of ASK A QUESTION button
Post by: Milbo on October 26, 2016, 02:34:53 AM
Do you talk about the emails?
Title: Re: [BUG] Translation of ASK A QUESTION button
Post by: servlet on October 26, 2016, 08:15:56 AM
No. Just for translation of the button "Ask a question about product"
COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL
I have to translate administrator/components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini to fix the problem. English is not the language by default
Overrides doesnt work.
In translated website only this button is in English.
Title: Re: [BUG] Translation of ASK A QUESTION button
Post by: Jörgen on October 26, 2016, 09:36:21 AM
Hello

I have done some testing VM 3.0.18
I do not understand this result but using overrides the "correct" way through front end seems to work.
Adding the correct language string to the back end com_virtuemart.ini file should also work.

regards

Jörgen @ Kreativ Fotografi
Title: Re: [BUG] Translation of ASK A QUESTION button
Post by: servlet on October 26, 2016, 10:49:10 AM
BE gb_GB with constant COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL override FE in fr_FR - it is displayed in English not in French
BE and FE overrides via Joomla overrides dont work for VM in this case.

I have to translate the string English com_virtuemart.ini to work in French... there is no logic! English ini file override French file but only one string. I think override and other strings...

I think there is a mistake in codding and I dont understand why translation files are in VM folder not in JOOMLA LANGUAGE FOLDER. Is it possible the problem comes from this?
Title: Re: [BUG] Translation of ASK A QUESTION button
Post by: Milbo on October 26, 2016, 18:37:55 PM
as far as I can see, the language string is just doubled. I just deleted it from the BE file.

The language file is in the component directory is correct and the new way also in joomla itself. BTW https://docs.virtuemart.net/manual/general-concepts/214-multilanguage-and-multlingual.html

"THE KEY FOR THE OVERRIDE CANNOT BE FOUND IN THE JOOMLA LANGUAGE SYSTEM
look in the administrator language files or vice versa"

The reason is that we load sometimes the BE lang file in the FE and viceversa.