BUG-13604 Day and Month are not translated
Day and Month are not translated when the country is not defined inside the po file header
This commit is contained in:
@@ -566,15 +566,15 @@ class Configurations // extends Configuration
|
||||
|
||||
require_once 'model/Language.php';
|
||||
$language = new language();
|
||||
$location = $language->findLocationByLanId(SYS_LANG);
|
||||
$location = $location['LAN_LOCATION'];
|
||||
$lanLocation = $language->findLocationByLanId(SYS_LANG);
|
||||
$location = $location['LAN_LOCATION']?$location['LAN_LOCATION']:'';
|
||||
|
||||
if (G::toLower(PHP_OS) == 'linux' || G::toLower(PHP_OS) == 'darwin') {
|
||||
if (SYS_LANG == 'es') {
|
||||
$langLocate = 'es_ES';
|
||||
} else if (strlen(SYS_LANG) > 2) {
|
||||
$langLocate = str_replace('-', '_', SYS_LANG);
|
||||
} else if ($location) {
|
||||
} else if ($location != '') {
|
||||
$langLocate = SYS_LANG.'_'.$location;
|
||||
} else {
|
||||
$langLocate = 'en_US';
|
||||
|
||||
Reference in New Issue
Block a user