Merge pull request #823 from abhishek-webkul/text-changes-2

Text changes
This commit is contained in:
Rohit Jain
2024-03-18 13:41:52 +05:30
committed by GitHub
16 changed files with 33 additions and 38 deletions

View File

@@ -88,8 +88,8 @@ class AdminOrderPreferencesControllerCore extends AdminController
'icon' => 'icon-cogs',
'fields' => array(
'MAX_GLOBAL_BOOKING_DATE' => array(
'title' => $this->l('Maximum Global Date to book a room'),
'hint' => $this->l('Maximum date by which rooms of your hotels can be booked.'),
'title' => $this->l('Maximum Global Check-out Date to book a room'),
'hint' => $this->l('Maximum date of check-out for which rooms of your hotels can be booked.'),
'type' => 'text',
'id' => 'max_global_book_date',
'class' => 'fixed-width-xxl readonly',
@@ -188,8 +188,8 @@ class AdminOrderPreferencesControllerCore extends AdminController
),
'PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN' => array(
'title' => $this->l('Show room price breakdown'),
'hint' => $this->l('Show a summary for prices of the auto added service add with room on shopping cart list.'),
'desc' => $this->l('This breakdown is always visible on room that have cart rule applied for that specific room.'),
'hint' => $this->l('Show price breakdown for rooms with auto added services on checkout page.'),
'desc' => $this->l('This room price breakdown will be shown if cart rule for specific room type is applied on that room.'),
'cast' => 'intval',
'type' => 'bool'
),
@@ -318,11 +318,11 @@ class AdminOrderPreferencesControllerCore extends AdminController
$maxGlobalBookingDateFormatted = date('Y-m-d', strtotime($maxGlobalBookingDate));
if ($maxGlobalBookingDate == '') {
$this->errors[] = Tools::displayError('Field \'Maximum Global Date to book a room\' can not be empty.');
$this->errors[] = Tools::displayError('Field \'Maximum Global Check-out Date to book a room\' can not be empty.');
} elseif (!Validate::isDate($maxGlobalBookingDateFormatted)) {
$this->errors[] = Tools::displayError('Field \'Maximum Global Date to book a room\' is invalid.');
$this->errors[] = Tools::displayError('Field \'Maximum Global Check-out Date to book a room\' is invalid.');
} elseif (strtotime($maxGlobalBookingDateFormatted) < strtotime(date('Y-m-d'))) {
$this->errors[] = Tools::displayError('Field \'Maximum Global Date to book a room\' can not be a past date. Please use a future date.');
$this->errors[] = Tools::displayError('Field \'Maximum Global Check-out Date to book a room\' can not be a past date. Please use a future date.');
}
if ($globalPreparationTime === '') {