Post by albsim81 » Sun Mar 11, 2012 7:08 am

Sorry, I'm very unskilled. You said language file isn't current for the version of OpenCart I am using.
What do you mean? Where Have I to correct it? Can you explain better to me? Thank you

Sigaretta elettronica Opencart 1.5.4.1 italian translation


New member

Posts

Joined
Wed Jan 26, 2011 5:14 am
Location - Italy

Post by rph » Sun Mar 11, 2012 11:22 am

The Italian language files you're using are for an earlier version of OpenCart and need to be upgraded to 1.5.1.3. That or you're using a mod which needs changes made to non-English language files to accommodate it. The easiest place to start is by installing an Italian language translation that is verified for 1.5.1.3.

http://www.opencart.com/index.php?route ... order=DESC

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by gregy1403 » Wed Jun 19, 2013 4:07 pm

Hi guys

Bringing back the old topic :) The magic of "too few arguments" :)

Info:
OC 1.5.4.1
Installed Slovenian language where success.php language file says
<?php
// Heading
$_['heading_title'] = 'Naročilo je oddano!';
$_['heading_title_customer'] = 'Naročilo (#%s) je oddano!';

// Text
$_['text_customer'] = '<p>Vaše naročilo (<a href="%s">#%s</a>) je bilo oddano v nadaljno obdelavo.</p><p>Zgodovino in status naročil lahko kadarkoli spremljate v <a href="%s">Moj račun</a>, s klikom na <a href="%s">Zgodovina</a>.</p>Če vaš nakup vključuje tudi pretok podatkov, lahko to naredite na strani <a href="%s">Prenosi</a>.</p><p>Če imate kakršnokoli vprašanje, pišite na naš <a href="%s">e-mail naslov</a>.</p><p>Hvala za vaše naročilo!</p>';
$_['text_guest'] = '<p>Vaše naročilo je bilo oddano v nadaljno obdelavo.</p><p>Če imate kakršnokoli vprašanje, pišite na naš <a href="%s">e-mail naslov</a>.</p><p>Hvala za vaše naročilo!</p>';
$_['text_basket'] = 'Košarica';
$_['text_checkout'] = 'Na blagajno';
$_['text_success'] = 'Sprejeto';
?>
so, language file is up and runing :)

No additional payment module ..

Shipping
- Flat Rate
Payment
- Cash on Delivery

Error says:
Warning: sprintf(): Too few arguments in /domains/mydomain.si/public_html/catalog/controller/checkout/success.php on line 60

where line 60 says

Code: Select all

  		$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
Order is done, is accepted .. i can see it.

Really no idea where else to look. Please help me .. i turned this forum and Google around .. no luck ... must be something i don't see :(

Thank you

Newbie

Posts

Joined
Fri Mar 15, 2013 4:47 pm

Post by asdrubal » Thu Aug 15, 2013 2:20 am

Its is a simple problem:
"Warning: sprintf(): Too few arguments in"
its meaning that more "%s" is request on the language file that the parameters of the code:
in that case:

Code: Select all

		if ($this->customer->isLogged()) {
    		$this->data['text_message'] = sprintf($this->language->get('text_customer'),
    		$this->url->link('account/account', '', 'SSL'),
    		$this->url->link('account/order', '', 'SSL'),
    		$this->url->link('account/download', '', 'SSL'),
    		$this->url->link('information/contact'));
		}
we have 4 solicitations.
So, check $_['text_customer'] in your language file :)

Newbie

Posts

Joined
Tue Nov 08, 2011 12:55 am

Post by loroverde » Tue Sep 03, 2013 10:55 pm

asdrubal wrote:Its is a simple problem:
"Warning: sprintf(): Too few arguments in"
its meaning that more "%s" is request on the language file that the parameters of the code:
in that case:

Code: Select all

		if ($this->customer->isLogged()) {
    		$this->data['text_message'] = sprintf($this->language->get('text_customer'),
    		$this->url->link('account/account', '', 'SSL'),
    		$this->url->link('account/order', '', 'SSL'),
    		$this->url->link('account/download', '', 'SSL'),
    		$this->url->link('information/contact'));
		}
we have 4 solicitations.
So, check $_['text_customer'] in your language file :)
Thank you for your help!

I had the same problem and your advice has be very helpful to solve it. The reason was a mistake in translating /catalog/language/english/checkout/success.php to my mother tongue.

I only had to open the original file and my bad translated file at the same time and compare them to discover the mistake. Fixing it was pretty easy.

I hope your advice will be useful for more OpenCartians!

Newbie

Posts

Joined
Tue Sep 03, 2013 10:49 pm

Post by e-slap » Fri Jan 10, 2014 6:08 pm

Hi friends,

I need help, this is the error:
Warning: sprintf() [function.sprintf]: Too few arguments in /home/classic/public_html/catalog/model/account/customer.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/classic/public_html/index.php:108) in /home/classic/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/classic/public_html/index.php:108) in /home/classic/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 29
I have installed 4 languages ​​(English, Spanish, French and Portuguese)
but it is only generated with Portuguese.

I thought I was the "multi payment fee" module but not with the developer and Portuguese work.

The error appeared in v1.5.6, after migrating local to remote, in local mode works very well.

Thank!

¡OpenCart es la llave de ignición para su tienda online!

Escoge tu Traducción - Instalación GRATIS!
----------------------------------------------------------------------------------------------------------
Español/Castellano v1.5.6.4 - Español/Castellano v1.5.6.4 (+Extras) - Español/Castellano v2.x
Português/Portugal v1.5.6.4


User avatar
Active Member

Posts

Joined
Fri Jul 22, 2011 12:22 am
Location - Portugal - Argentina

Post by IP_CAM » Thu Feb 26, 2015 11:38 pm

Just to explain, how I solved my Problem,just realized today, with this:

1. Checking out with the Default english Language, everything worked well.

Code: Select all

<p>Your order has just been successfully processed...
2. In the German Language File, I have, for some reason, this HREF-Link and the Number of the Order ??, I assume, but NEITHER ENTRY is tolerated by the Script:

Code: Select all

<p>Ihr Auftrag <a href="%s">#%s</a> wurde soeben erfolgreich verarbeitet... (default)
nor:
<p>Ihr Auftrag #%s wurde soeben erfolgreich verarbeitet...  (test1)
nor:
<p>Ihr Auftrag <a href="%s">   </a> wurde soeben erfolgreich verarbeitet...  (test2)
and it produced:

Code: Select all

Warning: sprintf() [function.sprintf.php]: Too few arguments in /home/jacob/www/bigmax/shop/catalog/controller/checkout/success.php on line 54
3. So, in the German language File, I just removed this <a href="%s">#%s</a> Stuff in the Line, to make it look like the english Version, without a HREF Link in between:

Code: Select all

<p>Ihr Auftrag wurde soeben erfolgreich verarbeitet...
and it all worked well.

Conclusion: Since I, so far, never found out, how this Kind of href="%s" stuff works in the first place, I just had to resign from trying more, especially, since all other HREF-Links on this Page, like:
<a href="%s">Mein Konto</a>
<a href="%s">Historie</a>
<a href="%s">Downloads</a>
work flawless, beeing WRITTEN exactly the same way...

But possibly, someone could tell us, why the first ['text_consumer'] link does screw up the 'following' information after the ['heading_title'], that it even produced an error. The ['heading_title_consumer'] itself works.

My final solution to this:

Code: Select all

$_['heading_title'] = 'Ihr Auftrag wurde erfolgreich verarbeitet!';
$_['heading_title_customer'] = 'Ihr Auftrag wurde erfolgreich verarbeitet!';

// Text
$_['text_customer'] = '<p>Ihr Auftrag wurde soeben erfolgreich verarbeitet!</p><p>Sie können die Auftragshistorie abrufen, indem Sie die Seite <a href="%s">Mein Konto</a> aufrufen und auf <a href="%s">Historie</a> klicken.</p>Wenn Ihr Einkauf ein Download war, können Sie die Seite <a href="%s">Downloads</a> aufrufen, um sie anzuzeigen.</p><p>Richten Sie bitte alle Fragen an den <a href="%s">Shop Inhaber</a>.</p><p>Vielen Dank für Ihren Einkauf bei uns.</p>';

$_['text_guest']    = '<p>Ihr Auftrag wurde soeben erfolgreich verarbeitet!</p><p>Richten Sie bitte alle Fragen an den <a href="%s">Shop Inhaber</a>.</p><p>Vielen Dank für Ihren Einkauf bei uns.</p>';
It possibly the german language file only, not containing all 'references' required, I imagine anyway...

Ernie
bigmax.ch/shop/

I'm rarely active at the OC Forum lately. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in real Action here: http://www.jti.li/shop/
---
1'200+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 48 guests