VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: deadmeiker on November 28, 2011, 08:02:30 AM

Title: function.sprintf.php error
Post by: deadmeiker on November 28, 2011, 08:02:30 AM
Hello

Can anyone help me to fix this error in the e-mail from VM???

Warning : sprintf() [ function.sprintf.php ]: Too few arguments in /home/thechose/public_html/Joomla1.7/libraries/joomla/methods.php on line 268


Thanks


[attachment cleanup by admin]
Title: Re: function.sprintf.php error
Post by: Namit on December 20, 2011, 20:39:11 PM
This is a problem with the language file for Joomla. Apparently the solution is to add the parameter $s somewhere in the language file. I also have this problem but I do not know how to solve it.
Title: Re: function.sprintf.php error
Post by: Milbo on December 21, 2011, 00:20:59 AM
Which language? I think this is a topic for the language board
Title: Re: function.sprintf.php error
Post by: jjk on December 21, 2011, 09:56:00 AM
Please try the updated german language file(s) for Joomla & VM2. Could be a problem with one of the "%s" in the previous version.
Title: Re: function.sprintf.php error
Post by: Namit on December 21, 2011, 15:10:40 PM
polish language file for joomla 1.7.3
Title: Re: function.sprintf.php error
Post by: jjk on December 21, 2011, 15:48:01 PM
ok - I was refering to the screenshot in the first post of this thread. Which exact version of VM2 are we talking about?
Title: Re: function.sprintf.php error
Post by: yota on December 29, 2011, 18:22:35 PM
@Namit

Plik: /strona/language/pl-PL/.pl-PL.com_virtuemart.ini

Linijka około 42:
To:
COM_VIRTUEMART_CART_MAIL_SHOPPER_SUMMARY="otrzymalismy od Ciebie potwierdzenie zakupu %1$s przez %2$s."

Zamień na:
COM_VIRTUEMART_CART_MAIL_SHOPPER_SUMMARY="otrzymalismy od Ciebie potwierdzenie zakupu %s."

Tadam!!