Thanks for the help Vik.
My server doesn't have spanish locale, I checked with:
So I had to manually type the month names.[FONT="Courier New"]# locale -a
C
en_US.utf8
POSIX
[/FONT]
Example for Spanish:
In includes/languages/spanish.php
I put it just under the DATE section:// Nombre de meses a capón, porque el servidor no los tiene
$month_number=date('m');
switch($month_number)
{
case '01': $temp='Enero';break;
case '02': $temp='Febrero';break;
case '03': $temp='Marzo';break;
case '04': $temp='Abril';break;
case '05': $temp='Mayo';break;
case '06': $temp='Junio';break;
case '07': $temp='Julio';break;
case '08': $temp='Agosto';break;
case '09': $temp='Septiembre';break;
case '10': $temp='Octubre';break;
case '11': $temp='Noviembre';break;
case '12': $temp='Diciembre';break;
}
define('TABLE_HEADING_NEW_PRODUCTS', 'Nuevos productos de '. $temp);
// look in your $PATH_LOCALE/locale directory for available locales..
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'es_ES.UTF8');//unix, was @setlocale(LC_TIME, 'en_US.ISO_8859-1');
@setlocale(LC_TIME, 'Spanish_Spain.1252');//windows
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');



Reply With Quote
