Quote Originally Posted by Vik View Post
I've run into the same problem recently...
So, You may fix it as follows:

$month_number=date('m');
switch($month_number)
{
case '01': $temp='January in Hungarian';break;
case '02': $temp='February in Hungarian';break;
...
...
case '12': $temp='December in Hungarian';break;
}

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For '. $temp);

It should be done in /includes/languages/your_templates/hungarian.php

It works for me (I need Bulgarian on my site).
Hope that helps.
Thanks for the help Vik.

My server doesn't have spanish locale, I checked with:

[FONT="Courier New"]# locale -a
C
en_US.utf8
POSIX
[/FONT]
So I had to manually type the month names.

Example for Spanish:

In includes/languages/spanish.php

// 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);
I put it just under the DATE section:

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