Guest Posted October 19, 2005 Share Posted October 19, 2005 Hi. I try to translate oscommerce to Norwegian, but there is some line's i can't find. Where do i translate Days and mont's???? They are present in the counter line at a live shop. Sorry about the bad english. In front. THANKS. JOH Link to comment Share on other sites More sharing options...
wheeloftime Posted October 19, 2005 Share Posted October 19, 2005 Hi.I try to translate oscommerce to Norwegian, but there is some line's i can't find. Where do i translate Days and mont's???? They are present in the counter line at a live shop. Sorry about the bad english. In front. THANKS. JOH Those are based on your settings in the main language file (like (catalog)/includes/languages/english.php) For english you have @setlocale(LC_TIME, 'en_US.ISO_8859-1'); 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'); //// // 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, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 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', 'USD'); for my Dutch part i have (in (catalog)/includes/languages/dutch.php) @setlocale(LC_TIME, 'nl_NL.ISO_8859-1' , 'Dutch'); 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'); For Norwegian you will have change these entries and osC will then pick that up. And if you have/want your Admin in Norwegian the same procedure applies there also. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.