osCmax v2.5 User Manual
Results 1 to 3 of 3

How to change the "date" and "months" na

This is a discussion on How to change the "date" and "months" na within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I need to change the standard date/month name format into my local language. I think the standard (english) format is ...

      
  1. #1
    New Member
    Join Date
    Aug 2006
    Posts
    11
    Rep Power
    0


    Default How to change the "date" and "months" na

    I need to change the standard date/month name format into my local language. I think the standard (english) format is defined in index.php (perhaps in more places?):

    @setlocale(LC_TIME, 'en_US.ISO_8859-1');

    Is this the line that needs to be modified?

    Thanks, oling

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default RE: How to change the "date" and "months"

    Close - look further own the file.
    Code:
    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');
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    New Member
    Join Date
    Aug 2006
    Posts
    11
    Rep Power
    0


    Default RE: How to change the "date" and "months"

    This is the portion in my languague file:

    @setlocale(LC_TIME, 'ISO_8859-1');

    define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT', 'd.m.Y'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

    It still shows date and months in english (January, February...). I need these (dates and months) to appear in my own languague (translated). Any further suggestions would be greatly appreciated.

Similar Threads

  1. Remove "QTPRO" for "Option Type Feature"
    By adam71o in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 01-10-2007, 09:32 AM
  2. Remove "This product was added" date
    By kenlyle in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 11-14-2005, 10:48 AM
  3. "Price" and "Add to Cart" button inside
    By midwestwebsites in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 11-14-2005, 04:13 AM
  4. Change Create Order Text "Réduction" and "Li
    By kelly34 in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 08-03-2005, 10:55 AM
  5. "Product Expected" date incorrect by EZPopulate
    By bjrafferty in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 09-14-2004, 02:10 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
  •