Thread: advanced search

Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

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

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

    Default Re: advanced search

    What do you have for the following in your italian.php file??
    Date
    Code:
     * @version $Id: english.php 19690 2011-10-04 16:41:45Z drbyte $
    Format
    Code:
    // 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');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: advanced search

    PHP Code:
     * @version $Iditalian.php 7440 2012-01-18 21:51:35Z LaVale 
    and
    PHP Code:
      @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_...dvanced_search

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

    Default Re: advanced search

    Suggest that you compare your english.php file to your italian.php file
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Can't find a way to search by Model in Advanced Search - could somebody help please?
    By Athens Collectibles in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Sep 2011, 12:14 PM
  2. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  3. Remove 'Search by Date Added' field from advanced search page?
    By gaffettape in forum General Questions
    Replies: 7
    Last Post: 24 Jan 2010, 03:34 PM
  4. Removing the 'Advanced Search' and changing basic search to title only
    By val-ent in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Aug 2008, 11:39 PM
  5. How to align search criteria boxes on advanced search page?
    By shinyadornments in forum Basic Configuration
    Replies: 1
    Last Post: 29 Jan 2008, 06:36 AM

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