Author Topic: Quote problem  (Read 2170 times)

Pisu

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 451
  • ..still looking for..
    • Blog di Stefano Bagnatica
Quote problem
« on: October 25, 2011, 22:17:54 pm »
In the file it-IT.com_virtuemart.ini, we have this line:

Code: [Select]
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):

Code: [Select]
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 | www.vmitalia.net

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3602
  • using Matomo instead of Google Analytics
Re: Quote problem
« Reply #1 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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Pisu

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 451
  • ..still looking for..
    • Blog di Stefano Bagnatica
Re: Quote problem
« Reply #2 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
Pisu - Team VMItalia (Supporto Italiano VirtueMart)
www.stefanobagnatica.it | www.vmitalia.net