QUOTE (Rui Ganga @ Nov 26 2006, 06:25 PM)

Hi
I have a complicated situation with a a very simple solution ( I hope so!).
My site is in Portuguese. The only language that is used in my store is Portugueses BUT the dates are shown in English like: Este artigo foi introduzido em Thursday 16 November, 2006. (this is the part that says your product was added... (date)...
So what i need is to know what file can I translate so the Months and the days of the week can be in Portuguese.
If there is someone that can solve this complicate and at the same time simple situation pelase advise me!
Regards.
Hello, I think you don't need to translate any language, I had this problem one year ago when I start , and the solution is in the file portuguese.php . in the first part . Look for example the spanish and french. Revise only in this part your file portuguese.php. I am not sure, but tried.
<?php
/*
$Id: espanol.php,v 1.107 2003/07/09 18:13:39 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com Copyright © 2003 osCommerce
Released under the GNU General Public License
*/
// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'es_ES'
// on FreeBSD try 'es_ES.ISO_8859-1'
// on Windows try 'sp', or 'Spanish'
@setlocale(LC_TIME, 'es_ES.ISO_8859-1');
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');
////
// 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', 'EUR');
// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="es"');
********************************************************
and german:
<?php
/*
$Id: german.php,v 1.124 2003/07/11 09:03:49 jan0815 Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com Copyright © 2003 osCommerce
Released under the GNU General Public License
*/
// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'de_DE'
// on FreeBSD try 'de_DE.ISO_8859-1'
// on Windows try 'de' or 'German'
@setlocale(LC_TIME, 'de_DE.ISO_8859-1');
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 strftime()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// 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', 'EUR');
// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="de"');
Regards, Nelson