News:

Looking for documentation? Take a look on our wiki

Main Menu

Quote problem

Started by Pisu, October 25, 2011, 22:17:54 PM

Previous topic - Next topic

Pisu

In the file it-IT.com_virtuemart.ini, we have this line:

COM_VIRTUEMART_MINICART_ERROR="c' è stato un errore nell' aggiornamento del tuo carrello."


But with this code, the "add to cart" button does not work. I see the Javascript error "missing ; before statement".

So I have fixed with this line (single backslashes are not enough):

COM_VIRTUEMART_MINICART_ERROR="c\\' è stato un errore nell\\' aggiornamento del tuo carrello."


Is it correct? I think that this should not be a translator problem, VirtueMart should escape the string when using inside Javascript.
Pisu - Team VMItalia (Supporto Italiano VirtueMart)
www.stefanobagnatica.it | [url="//www.vmitalia.net"]www.vmitalia.net[/url]

jjk

This seems to be something for the "Virtuemart 2 Development and bug reports" section. (I can't move it) Using your orginal string, the minicart popup doesn't work and the cart remains empty.
Non-English Shops: Are your language files up to date?
[url="http://virtuemart.net/community/translations"]http://virtuemart.net/community/translations[/url]

Pisu

Thanks, I've posted to "Development and bug report section".

http://forum.virtuemart.net/index.php?topic=92442.0
Pisu - Team VMItalia (Supporto Italiano VirtueMart)
www.stefanobagnatica.it | [url="//www.vmitalia.net"]www.vmitalia.net[/url]