Zen Cart Logo
Forums / General Questions / advanced search

advanced search

Views: 702

Results 1 to 5 of 5
28 Jan 2014, 2:10 PM
#1
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

advanced search

Why my advanced search page works for english language and don't works for italian? I'm explain better: if in english language I write the date of start and end in mm/dd/yyyy all works fine; instead in italian language in any format (suggested dd/mm/yyyy or mm/dd/yyyy) show me always error for date format.
Where is the problem?

29 Jan 2014, 6:02 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: advanced search

What do you have for the following in your italian.php file??
Date

 * @version $Id: english.php 19690 2011-10-04 16:41:45Z drbyte $

Format

// look in your $PATH_LOCALE/locale directory for available locales..
  @setlocale(LC_TIME, 'en_US');
  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');
29 Jan 2014, 6:17 PM
#3
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: advanced search

 * @version $Id: italian.php 7440 2012-01-18 21:51:35Z LaVale $

and

  @setlocale(LC_TIME, 'it_IT.UTF-8');

  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');

Please try on http://www.100asa.it/index.php?main_page=advanced_search

31 Jan 2014, 1:13 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: advanced search

Suggest that you compare your english.php file to your italian.php file

31 Jan 2014, 6:25 AM
#5
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: advanced search

the difference is in date format, so in italian file used the EU format dd/mm/yyyy
but this file is in the official italina translate