BUG-13604 Day and Month are not translated

Day and Month are not translated
This commit is contained in:
norahmollo
2013-12-19 15:49:06 -04:00
parent 59ab15aeaa
commit daf51f82d6
2 changed files with 7 additions and 8 deletions

View File

@@ -567,7 +567,7 @@ class Configurations // extends Configuration
require_once 'model/Language.php';
$language = new language();
$lanLocation = $language->findLocationByLanId(SYS_LANG);
$location = isset($location['LAN_LOCATION'])?$location['LAN_LOCATION']:'';
$location = isset($location['LAN_LOCATION']) ? $location['LAN_LOCATION'] : '';
if (G::toLower(PHP_OS) == 'linux' || G::toLower(PHP_OS) == 'darwin') {
if (SYS_LANG == 'es') {

View File

@@ -724,33 +724,32 @@ abstract class BaseLanguage extends BaseObject implements Persistent
}
if (array_key_exists($keys[1], $arr)) {
$this->setLanName($arr[$keys[1]]);
$this->setLanLocation($arr[$keys[1]]);
}
if (array_key_exists($keys[2], $arr)) {
$this->setLanNativeName($arr[$keys[2]]);
$this->setLanName($arr[$keys[2]]);
}
if (array_key_exists($keys[3], $arr)) {
$this->setLanDirection($arr[$keys[3]]);
$this->setLanNativeName($arr[$keys[3]]);
}
if (array_key_exists($keys[4], $arr)) {
$this->setLanWeight($arr[$keys[4]]);
$this->setLanDirection($arr[$keys[4]]);
}
if (array_key_exists($keys[5], $arr)) {
$this->setLanEnabled($arr[$keys[5]]);
$this->setLanWeight($arr[$keys[5]]);
}
if (array_key_exists($keys[6], $arr)) {
$this->setLanCalendar($arr[$keys[6]]);
$this->setLanEnabled($arr[$keys[6]]);
}
if (array_key_exists($keys[7], $arr)) {
$this->setLanCalendar($arr[$keys[7]]);
}
}
/**