BUG-13604 Day and month are not translated

Day and month are not translated when the country is not used inside the po file header
This commit is contained in:
norahmollo
2013-12-16 12:15:41 -04:00
parent 915217a20e
commit 552a4265a3
5 changed files with 169 additions and 146 deletions

View File

@@ -556,7 +556,6 @@ class Configurations // extends Configuration
$creationDateMask = str_replace(' \\d\\e ', ' [xx] ', $creationDateMask);
}
for ($i = 0; $i < strlen($creationDateMask); $i++) {
if ($creationDateMask[$i] != ' ' && isset($maskTime[$creationDateMask[$i]])) {
$newCreation .= $maskTime[$creationDateMask[$i]];
@@ -566,11 +565,19 @@ class Configurations // extends Configuration
}
$langLocate = SYS_LANG;
require_once 'model/Language.php';
$language = new language();
$location = $language->findLocationByLanId(SYS_LANG);
$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) {
$langLocate = SYS_LANG.'_'.$location;
} else {
$langLocate = 'en_US';
}