Hello there,
I'm not sure if here is the right place for my post. If necessary please move to another place.
I'm working on Bulgarian language pack now using ZenCart-1.5.5d. I'm not familiar with php! In /includes/languages/bulgarian.php (a copy of the original /includes/languages/english.php) there are some lines that I am not sure how to change.
Is there someone who could give me a piece of advice with this?
PHP Code:
// look in your $PATH_LOCALE/locale directory for available locales..
$locales = array('bg_BG', 'bg_BG.utf8', 'bg', 'Bulgarian_Bulgaria.1251');
@setlocale(LC_TIME, $locales);
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
if (!function_exists('zen_date_raw')) {
function zen_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', 'BGN');
// Global entries for the <html> tag
define('HTML_PARAMS','dir="ltr" lang="bg"');
Should I make changes to those:
PHP Code:
define('HTML_PARAMS','dir="ltr"
and
PHP Code:
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);
It needs to be in this formats: DDMMYYYY and bg_BG.utf8
I hope that I am clear enough.
Thank you in advance!
Bookmarks