VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Pisu on October 25, 2011, 22:17:54 PM

Title: Quote problem
Post by: Pisu on October 25, 2011, 22:17:54 PM
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.
Title: Re: Quote problem
Post by: jjk on October 26, 2011, 07:30:34 AM
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.
Title: Re: Quote problem
Post by: Pisu on October 26, 2011, 11:33:04 AM
Thanks, I've posted to "Development and bug report section".

http://forum.virtuemart.net/index.php?topic=92442.0