I have the following site in Wordpress where I have doctors' records with the days in English and I want to change them to Spanish: link I tried the crazy Translate, I tried editing the .po files directly and even went to review the php files of the theme and I could not find the solution. I translated as much as I could and now I have it there as you see it now: "from MONDAY to THRUSDAY". I found in the achivos template of the theme one called practice.php which is where the html of these doctor's files is generated and I have something like this:
$days = '';
if ($object->get('days')) {
$days = $object->get('days');
if (count($days) > 1) {
$last = array_pop($days);
}
And in another file of the "core" folder of the theme called timetable.php I find this function at the beginning:
public function getDays() {
if (!isset(self::$cache['days'])) {
$days = array();
foreach ($this->get('calendar.period') as $time) {
$object = new VTCore_Wordpress_Objects_Array(array(
'id' => strtolower($time->format('l')),
'timestamp' => $time->getTimeStamp(),
'formatted' => $time->format($this->get('calendar.format')),
'iso' => $time->format('Y-m-d\TH:i:sO'),
'label' => $this->get('days.' . strtolower($time->format('l'))),
));
$days[] = $object;
}
self::$cache['days'] = $days;
}
return self::$cache['days'];
}
From there I think it generates the days and we have to add something so that they come out Spanish. Am I ok or did I go to look where I should not?