Results 1 to 8 of 8
  1. #1
    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.

    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

  2. #2
    Join Date
    Mar 2005
    Posts
    561
    Plugin Contributions
    4

    Default 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 :)

  3. #3
    Join Date
    Jul 2006
    Posts
    25
    Plugin Contributions
    0

    Default 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?

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

    Just insert the next code on your default page :


    PHP Code:
    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.

  4. #4
    Join Date
    Nov 2006
    Posts
    9
    Plugin Contributions
    0

    Default 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?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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. #6
    Join Date
    Mar 2004
    Location
    Finland
    Posts
    488
    Plugin Contributions
    3

    Default 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

  7. #7
    Join Date
    Nov 2006
    Posts
    9
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    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

  8. #8
    Join Date
    Mar 2004
    Location
    Finland
    Posts
    488
    Plugin Contributions
    3

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

    Quote Originally Posted by webefendi View Post
    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

 

 

Similar Threads

  1. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  2. Trouble with "New Products" and "Specials" pages
    By hgws in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jun 2009, 05:27 AM
  3. Customize "New products" and "specials" pages
    By oakboston in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Oct 2008, 04:03 PM
  4. Keeping "New products" and "monthly special" only on homepage ?
    By Corinne in forum Basic Configuration
    Replies: 2
    Last Post: 10 Jun 2007, 10:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg