If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Language Packs / Months in english!! "New products" and "Monthly specials"

Months in english!! "New products" and "Monthly specials"

Locked

Started by sharemind on 17 Jul 2006, 11:40 AM · Views: 4,135

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Jul 2006, 11:40 AM
#1
sharemind avatar

sharemind

New Zenner

Join Date:
May 2006
Location:
italy
Posts:
14
Plugin Contributions:
0

Months in english!! "New products" and "Monthly specials"

Hello all !

I have chosen the the language of my shop as italian..... everything is fine,
but the "New products" and the "Monthly specials" headline on the first page, it gives me some problems. :mellow:

It will display the headline in italian, but the name of the month will be in english!

How can I change the month to italian?

this is the web site........
http://www.situationwear.it/catalogo/index.php

thanks

Sharemind

17 Jul 2006, 1:13 PM
#2
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

Re: Months in english!! "New products" and "Monthly specials"

Admin>tools>developers tool kit

Search for the month that is being displayed, this will then tell you every file that has this text in, and it should be pretty easy to work out what to change from there.

Same for any other text/code you see in your site.
Its clever :)

18 Jul 2006, 1:46 AM
#3
joanorsky avatar

joanorsky

New Zenner

Join Date:
Jul 2006
Posts:
25
Plugin Contributions:
0

Re: Months in english!! "New products" and "Monthly specials"

Well.. depending on what results you want .. here is a tip!

It sounds like that the server is in English default .. so all server side info will be in English. well... what you need to do.. is to say to the server something like this : "hey you stupid soda machine.. me and my visitors are not English.. we're Italian.. got it ?"

How do you do that? :smartass:

Well... here is an example for Portuguese server side info..

Just insert the next code on your default page :

if(!setlocale (LC_ALL,'pt_PT.ISO8859-1')){
    setlocale(LC_ALL,'portuguese');
}

So.. just change this code for ITalian and it should do the job...

This works ok.. if your shop is only in Italian. but if it has a few other languages.. a small tweek must be done in order to acheive this as well.

6 Nov 2006, 8:37 AM
#4
webefendi avatar

webefendi

New Zenner

Join Date:
Nov 2006
Posts:
9
Plugin Contributions:
0

Re: Months in english!! "New products" and "Monthly specials"

I changed the code in language file as you described;
if(!setlocale (LC_ALL,'iso-8859-9')){
setlocale(LC_ALL,'turkish');
}
in zencart forum page to solve the "months in english" problem but then an error occured when a customer confirms his order. The error is like this;
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '000000 where products_id = '2'' at line 1
in:
[update elmamproducts set products_ordered = products_ordered + 2,000000 where products_id = '2']
Can you help me?

6 Nov 2006, 9:15 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Months in english!! "New products" and "Monthly specials"

LC_ALL
should be
LC_TIME

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Nov 2006, 10:03 AM
#6
pasi avatar

pasi

Zen Follower

Join Date:
Mar 2004
Location:
Finland
Posts:
435
Plugin Contributions:
1

Re: Months in english!! "New products" and "Monthly specials"

Note that the server has to have the selected locale installed ... or else the LC_* stuff won't work

Working with Zen Cart since 2003 :: www.prr.fi
Author of the original Finnish language pack for Zen Cart since 2004

6 Nov 2006, 11:36 AM
#7
webefendi avatar

webefendi

New Zenner

Join Date:
Nov 2006
Posts:
9
Plugin Contributions:
0

Re: Months in english!! "New products" and "Monthly specials"

DrByte:

LC_ALL
should be
LC_TIME
It works with a small problem. For example our month name for November is "Kasım" (without dot in i), but now it writes "Kasim". But the customer can confirm his order now.
Thanks

7 Nov 2006, 9:00 AM
#8
pasi avatar

pasi

Zen Follower

Join Date:
Mar 2004
Location:
Finland
Posts:
435
Plugin Contributions:
1

Re: Months in english!! "New products" and "Monthly specials"

webefendi:

It works with a small problem. For example our month name for November is "Kasım" (without dot in i), but now it writes "Kasim".
Thanks

That is a PHP related problem me thinks...

Working with Zen Cart since 2003 :: www.prr.fi
Author of the original Finnish language pack for Zen Cart since 2004