Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009
    Posts
    25
    Plugin Contributions
    0

    Default changing @setlocale -- no affect

    Hello,

    I've got some troubles with the language date.

    The date in orderhistory and email, can't be changed to another language.

    Only english will shown, I use english and dutch

    When I test this localy it works great. But when i do this on a live server it shows only the english date.

    In a lot of threads, says it must be the @setlocale
    So I try this at local testmachine (where it works great). I'll pick the dutch.php (from my template) and change the @setlocale to
    Code:
    @setlocale(LC_TIME, 'en_US.ISO_8859-1');
    because locally works, so now for the dutch and english, the date should be in english. But not.....still english and dutch (long date)

    What do I have to alter to get this work.

    On the live server (where I am missing the dutch date) I've tried to get the dutch date
    Code:
    @setlocale(LC_TIME, 'nl_NL.ISO_8859-1');
    @setlocale(LC_TIME, 'nl_NL');
    @setlocale(LC_TIME, 'Dutch');
    @setlocale(LC_TIME, 'dutch');
    @setlocale(LC_TIME, 'nl');
    @setlocale(LC_TIME, 'nl_NL.utf8');
    Or is this an admin-switch or do I need to change another file?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: changing @setlocale -- no affect

    Code:
      @setlocale(LC_TIME, 'Dutch');
      define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
      define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
      define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
      define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
    Try this and set other formats as required
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2009
    Posts
    25
    Plugin Contributions
    0

    Default Re: changing @setlocale -- no affect

    Thnks for your reply,

    But that was one of the options I tried and 5 others...so that didn't work.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: changing @setlocale -- no affect

    Back to basics then...
    Post the information requested when one creates a post
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Apr 2009
    Posts
    25
    Plugin Contributions
    0

    Default Re: changing @setlocale -- no affect

    after 20 edits, this was the solution
    Code:
    setlocale(LC_TIME, 'nl_NL.ISO8859-1');

 

 

Similar Threads

  1. v150 Will changing attributes on a product affect prior purchases?
    By treblesand in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Apr 2013, 01:44 PM
  2. setlocale error
    By Bexley in forum General Questions
    Replies: 2
    Last Post: 11 May 2010, 02:05 AM
  3. How will changing these dates affect functionality?
    By JollyJim in forum General Questions
    Replies: 2
    Last Post: 24 Nov 2009, 12:17 AM
  4. Does changing default currency affect previous orders? coupons? super orders?
    By apemusic in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 21 Apr 2007, 01:53 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR