Support > Language
Hotels 2.0 error language
datahell:
@openita Please send me a personal message with access details for your site administration section to see the problem by myself.
openita:
Ok!
I sent access details
datahell:
I did the check on your site, you are right. "Terms and conditions" is not multilingual. I fixed it and I will soon release an updated version of IOSR Hotels. I have no access to your site FTP so follow my instructions below to fix it.
Fix multilingual terms and conditions in IOSR Hotels 2.0/2.2
Open file components/com_reservations/ext/hotels/controllers/hotels.php
Go to lines 965-970:
$row = $this->model->fetchHotel($hid);
if (!$row) {
$this->sendHeaders('text/plain');
echo '<div class="elx_error">'.$eLang->get('HOTEL_NOTFOUND').'</div>';
exit;
}
Add below:
if ($this->translate) {
$translations = $this->model->elementTrans($row->hid, $this->lng);
if ($translations) {
foreach ($translations as $element => $translation) {
switch($element) {
case 'hottitle': $row->title = $translation; break;
case 'hotdesc': $row->description = $translation; break;
case 'hotterms': $row->terms = $translation; break;
default: break;
}
}
}
unset($translations);
}
Thank for reporting this issue and sorry for the trouble.
openita:
Thanks to you for solving the problem ;)
Navigation
[0] Message Index
[*] Previous page
Go to full version