zeberrun Posted August 27, 2011 Posted August 27, 2011 hello, when create a new account, datapicker is in english. i left blank and tried below the same result is english. @setlocale(LC_TIME, 'tr_TR.ISO_8859-9'); define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%d %B %Y, %A'); // 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'); define('JQUERY_DATEPICKER_I18N_CODE', 'jquery.ui.datepicker-tr.js'); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization define('JQUERY_DATEPICKER_FORMAT', 'dd/mm/yy'); // see http://docs.jquery.com/UI/Datepicker/formatDate //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'TRL'); // Global entries for the <html> tag define('HTML_PARAMS', 'dir="LTR" lang="tr"'); // charset for web pages and emails define('CHARSET', 'iso-8859-9');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.