diff --git a/controllers/admin/AdminGuestRegistrationController.php b/controllers/admin/AdminGuestRegistrationController.php index f221b0bfd..e7347a620 100644 --- a/controllers/admin/AdminGuestRegistrationController.php +++ b/controllers/admin/AdminGuestRegistrationController.php @@ -62,7 +62,7 @@ class AdminGuestRegistrationControllerCore extends AdminController $fieldSelected = $allSelected || in_array($fieldId, $sectionFields); $fieldNodes[] = array( 'value' => $fieldId, - 'name' => $this->l($fieldName), + 'name' => $fieldName, 'input_name' => 'grc_field_'.$sectionId, 'selected' => $fieldSelected, ); @@ -70,7 +70,7 @@ class AdminGuestRegistrationControllerCore extends AdminController $fieldsSelected = $allSelected || !empty(array_filter($fieldNodes, function ($n) { return $n['selected']; })); $nodes[] = array( 'value' => $sectionId, - 'name' => $this->l($section['name']), + 'name' => $section['name'], 'input_name' => 'grc_section', 'selected' => $fieldsSelected, 'children' => $fieldNodes, diff --git a/modules/hotelreservationsystem/classes/HotelBookingDetail.php b/modules/hotelreservationsystem/classes/HotelBookingDetail.php index e73aa981b..ec08e3788 100644 --- a/modules/hotelreservationsystem/classes/HotelBookingDetail.php +++ b/modules/hotelreservationsystem/classes/HotelBookingDetail.php @@ -3903,100 +3903,100 @@ class HotelBookingDetail extends ObjectModel { $guestRegCardInfo = array( self::GRC_SECTION_GUEST_INFO => array( - 'name' => $this->moduleInstance->l('Guest Information'), + 'name' => $this->moduleInstance->l('Guest Information', 'hotelreservationsystem'), 'fields' => array( - self::GRC_GUEST_TITLE => $this->moduleInstance->l('Title'), - self::GRC_GUEST_FULL_NAME => $this->moduleInstance->l('Full Name (As per ID)'), - self::GRC_GUEST_PHONE => $this->moduleInstance->l('Phone / Mobile'), - self::GRC_GUEST_EMAIL => $this->moduleInstance->l('Email'), - self::GRC_GUEST_DOB => $this->moduleInstance->l('Date of Birth'), - self::GRC_GUEST_NATIONALITY => $this->moduleInstance->l('Nationality'), - self::GRC_GUEST_CITY_COUNTRY => $this->moduleInstance->l('City / Country'), - self::GRC_GUEST_POSTAL_CODE => $this->moduleInstance->l('Postal Code'), - self::GRC_GUEST_ADDRESS => $this->moduleInstance->l('Address'), + self::GRC_GUEST_TITLE => $this->moduleInstance->l('Title', 'hotelreservationsystem'), + self::GRC_GUEST_FULL_NAME => $this->moduleInstance->l('Full Name (As per ID)', 'hotelreservationsystem'), + self::GRC_GUEST_PHONE => $this->moduleInstance->l('Phone / Mobile', 'hotelreservationsystem'), + self::GRC_GUEST_EMAIL => $this->moduleInstance->l('Email', 'hotelreservationsystem'), + self::GRC_GUEST_DOB => $this->moduleInstance->l('Date of Birth', 'hotelreservationsystem'), + self::GRC_GUEST_NATIONALITY => $this->moduleInstance->l('Nationality', 'hotelreservationsystem'), + self::GRC_GUEST_CITY_COUNTRY => $this->moduleInstance->l('City / Country', 'hotelreservationsystem'), + self::GRC_GUEST_POSTAL_CODE => $this->moduleInstance->l('Postal Code', 'hotelreservationsystem'), + self::GRC_GUEST_ADDRESS => $this->moduleInstance->l('Address', 'hotelreservationsystem'), ), ), self::GRC_SECTION_TRAVEL_INFO => array( - 'name' => $this->moduleInstance->l('Travel Information'), + 'name' => $this->moduleInstance->l('Travel Information', 'hotelreservationsystem'), 'fields' => array( - self::GRC_TRAVEL_ARRIVED_FROM => $this->moduleInstance->l('Arrived From'), - self::GRC_TRAVEL_NEXT_DESTINATION => $this->moduleInstance->l('Next Destination'), - self::GRC_TRAVEL_FLIGHT_TRAIN => $this->moduleInstance->l('Flight / Train Number'), - self::GRC_TRAVEL_VEHICLE_REG => $this->moduleInstance->l('Vehicle Reg. No.'), - self::GRC_TRAVEL_PURPOSE_OF_VISIT => $this->moduleInstance->l('Purpose of Visit'), + self::GRC_TRAVEL_ARRIVED_FROM => $this->moduleInstance->l('Arrived From', 'hotelreservationsystem'), + self::GRC_TRAVEL_NEXT_DESTINATION => $this->moduleInstance->l('Next Destination', 'hotelreservationsystem'), + self::GRC_TRAVEL_FLIGHT_TRAIN => $this->moduleInstance->l('Flight / Train Number', 'hotelreservationsystem'), + self::GRC_TRAVEL_VEHICLE_REG => $this->moduleInstance->l('Vehicle Reg. No.', 'hotelreservationsystem'), + self::GRC_TRAVEL_PURPOSE_OF_VISIT => $this->moduleInstance->l('Purpose of Visit', 'hotelreservationsystem'), ), ), self::GRC_SECTION_BOOKING_INFO => array( - 'name' => $this->moduleInstance->l('Booking Information'), + 'name' => $this->moduleInstance->l('Booking Information', 'hotelreservationsystem'), 'fields' => array( - self::GRC_BOOKING_REFERENCE => $this->moduleInstance->l('Booking Reference No.'), - self::GRC_BOOKING_RATE_PER_NIGHT => $this->moduleInstance->l('Rate per Night'), - self::GRC_BOOKING_ARRIVAL => $this->moduleInstance->l('Arrival Date & Time'), - self::GRC_BOOKING_DEPARTURE => $this->moduleInstance->l('Departure Date & Time'), - self::GRC_BOOKING_ROOM_TYPE => $this->moduleInstance->l('Room Type'), - self::GRC_BOOKING_ROOM_NUMBER => $this->moduleInstance->l('Room Number'), - self::GRC_BOOKING_NUM_GUESTS => $this->moduleInstance->l('Number of Guests'), + self::GRC_BOOKING_REFERENCE => $this->moduleInstance->l('Booking Reference No.', 'hotelreservationsystem'), + self::GRC_BOOKING_RATE_PER_NIGHT => $this->moduleInstance->l('Rate per Night', 'hotelreservationsystem'), + self::GRC_BOOKING_ARRIVAL => $this->moduleInstance->l('Arrival Date & Time', 'hotelreservationsystem'), + self::GRC_BOOKING_DEPARTURE => $this->moduleInstance->l('Departure Date & Time', 'hotelreservationsystem'), + self::GRC_BOOKING_ROOM_TYPE => $this->moduleInstance->l('Room Type', 'hotelreservationsystem'), + self::GRC_BOOKING_ROOM_NUMBER => $this->moduleInstance->l('Room Number', 'hotelreservationsystem'), + self::GRC_BOOKING_NUM_GUESTS => $this->moduleInstance->l('Number of Guests', 'hotelreservationsystem'), ), ), self::GRC_SECTION_IDENTIFICATION => array( - 'name' => $this->moduleInstance->l('Identification Document'), + 'name' => $this->moduleInstance->l('Identification Document', 'hotelreservationsystem'), 'fields' => array( - self::GRC_ID_IDENTITY_PROOF => $this->moduleInstance->l('Identity Proof'), - self::GRC_ID_NUMBER => $this->moduleInstance->l('ID Number'), - self::GRC_ID_PASSPORT_NO => $this->moduleInstance->l('Passport No.'), - self::GRC_ID_PLACE_OF_ISSUE => $this->moduleInstance->l('Place of Issue'), - self::GRC_ID_DATE_OF_ISSUE => $this->moduleInstance->l('Date of Issue'), - self::GRC_ID_DATE_OF_EXPIRY => $this->moduleInstance->l('Date of Expiry'), - self::GRC_ID_VISA_NUMBER => $this->moduleInstance->l('Visa Number'), - self::GRC_ID_VALID_UNTIL => $this->moduleInstance->l('Valid Until'), - self::GRC_ID_ARRIVAL_DATE_IN_COUNTRY => $this->moduleInstance->l('Arrival Date in Country'), + self::GRC_ID_IDENTITY_PROOF => $this->moduleInstance->l('Identity Proof', 'hotelreservationsystem'), + self::GRC_ID_NUMBER => $this->moduleInstance->l('ID Number', 'hotelreservationsystem'), + self::GRC_ID_PASSPORT_NO => $this->moduleInstance->l('Passport No.', 'hotelreservationsystem'), + self::GRC_ID_PLACE_OF_ISSUE => $this->moduleInstance->l('Place of Issue', 'hotelreservationsystem'), + self::GRC_ID_DATE_OF_ISSUE => $this->moduleInstance->l('Date of Issue', 'hotelreservationsystem'), + self::GRC_ID_DATE_OF_EXPIRY => $this->moduleInstance->l('Date of Expiry', 'hotelreservationsystem'), + self::GRC_ID_VISA_NUMBER => $this->moduleInstance->l('Visa Number', 'hotelreservationsystem'), + self::GRC_ID_VALID_UNTIL => $this->moduleInstance->l('Valid Until', 'hotelreservationsystem'), + self::GRC_ID_ARRIVAL_DATE_IN_COUNTRY => $this->moduleInstance->l('Arrival Date in Country', 'hotelreservationsystem'), ), ), self::GRC_SECTION_ADDITIONAL_GUESTS => array( - 'name' => $this->moduleInstance->l('Additional Guests'), + 'name' => $this->moduleInstance->l('Additional Guests', 'hotelreservationsystem'), 'fields' => array( - self::GRC_ADD_GUEST_NAME => $this->moduleInstance->l('Guest Name'), - self::GRC_ADD_GUEST_ID_TYPE => $this->moduleInstance->l('ID Type'), - self::GRC_ADD_GUEST_ID_NUMBER => $this->moduleInstance->l('ID Number'), - self::GRC_ADD_GUEST_NATIONALITY => $this->moduleInstance->l('Nationality'), + self::GRC_ADD_GUEST_NAME => $this->moduleInstance->l('Guest Name', 'hotelreservationsystem'), + self::GRC_ADD_GUEST_ID_TYPE => $this->moduleInstance->l('ID Type', 'hotelreservationsystem'), + self::GRC_ADD_GUEST_ID_NUMBER => $this->moduleInstance->l('ID Number', 'hotelreservationsystem'), + self::GRC_ADD_GUEST_NATIONALITY => $this->moduleInstance->l('Nationality', 'hotelreservationsystem'), ), ), self::GRC_SECTION_BILLING_CORPORATE => array( - 'name' => $this->moduleInstance->l('Billing & Corporate Details'), + 'name' => $this->moduleInstance->l('Billing & Corporate Details', 'hotelreservationsystem'), 'fields' => array( - self::GRC_BILLING_COMPANY => $this->moduleInstance->l('Company / Agent'), - self::GRC_BILLING_TAX_ID => $this->moduleInstance->l('Tax ID / VAT No.'), + self::GRC_BILLING_COMPANY => $this->moduleInstance->l('Company / Agent', 'hotelreservationsystem'), + self::GRC_BILLING_TAX_ID => $this->moduleInstance->l('Tax ID / VAT No.', 'hotelreservationsystem'), ), ), self::GRC_SECTION_PAYMENT_DEPOSIT => array( - 'name' => $this->moduleInstance->l('Payment & Deposit'), + 'name' => $this->moduleInstance->l('Payment & Deposit', 'hotelreservationsystem'), 'fields' => array( - self::GRC_PAYMENT_METHOD => $this->moduleInstance->l('Payment Method'), - self::GRC_PAYMENT_CARD_NUMBER => $this->moduleInstance->l('Credit Card Number'), - self::GRC_PAYMENT_SECURITY_DEPOSIT => $this->moduleInstance->l('Security Deposit'), + self::GRC_PAYMENT_METHOD => $this->moduleInstance->l('Payment Method', 'hotelreservationsystem'), + self::GRC_PAYMENT_CARD_NUMBER => $this->moduleInstance->l('Credit Card Number', 'hotelreservationsystem'), + self::GRC_PAYMENT_SECURITY_DEPOSIT => $this->moduleInstance->l('Security Deposit', 'hotelreservationsystem'), ), ), self::GRC_SECTION_GUEST_SIGNATURE => array( - 'name' => $this->moduleInstance->l('Guest Signature'), + 'name' => $this->moduleInstance->l('Guest Signature', 'hotelreservationsystem'), 'fields' => array( - self::GRC_SIG_SIGNATURE => $this->moduleInstance->l('Signature'), - self::GRC_SIG_DATE => $this->moduleInstance->l('Date'), + self::GRC_SIG_SIGNATURE => $this->moduleInstance->l('Signature', 'hotelreservationsystem'), + self::GRC_SIG_DATE => $this->moduleInstance->l('Date', 'hotelreservationsystem'), ), ), self::GRC_SECTION_PROPERTY_REGS => array( - 'name' => $this->moduleInstance->l('Property Regulations'), + 'name' => $this->moduleInstance->l('Property Regulations', 'hotelreservationsystem'), 'fields' => array( - self::GRC_PROP_CHECKIN_CHECKOUT_TIME => $this->moduleInstance->l('Check-in / Check-out Time'), - self::GRC_PROP_HOTEL_POLICIES => $this->moduleInstance->l('Hotel Policies'), + self::GRC_PROP_CHECKIN_CHECKOUT_TIME => $this->moduleInstance->l('Check-in / Check-out Time', 'hotelreservationsystem'), + self::GRC_PROP_HOTEL_POLICIES => $this->moduleInstance->l('Hotel Policies', 'hotelreservationsystem'), ), ), self::GRC_SECTION_OFFICE_USE_ONLY => array( - 'name' => $this->moduleInstance->l('For Office Use Only'), + 'name' => $this->moduleInstance->l('For Office Use Only', 'hotelreservationsystem'), 'fields' => array( - self::GRC_OFFICE_STAFF_NAME => $this->moduleInstance->l('Staff Name'), - self::GRC_OFFICE_CHECKIN_TIME => $this->moduleInstance->l('Check-in Time'), - self::GRC_OFFICE_ID_VERIFIED => $this->moduleInstance->l('ID Verified'), - self::GRC_OFFICE_REG_NO => $this->moduleInstance->l('Registration No.'), + self::GRC_OFFICE_STAFF_NAME => $this->moduleInstance->l('Staff Name', 'hotelreservationsystem'), + self::GRC_OFFICE_CHECKIN_TIME => $this->moduleInstance->l('Check-in Time', 'hotelreservationsystem'), + self::GRC_OFFICE_ID_VERIFIED => $this->moduleInstance->l('ID Verified', 'hotelreservationsystem'), + self::GRC_OFFICE_REG_NO => $this->moduleInstance->l('Registration No.', 'hotelreservationsystem'), ), ), );