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:
norahmollo
2013-12-18 10:22:36 -04:00
parent 517aa69716
commit 0cfd4c3524
7 changed files with 224 additions and 164 deletions

View File

@@ -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';