From da6d8b9cbc61b8087075cb50970030f791862192 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 20 Jul 2022 12:04:40 +0530 Subject: [PATCH 01/18] Text changes on General Settings page --- .../AdminHotelGeneralSettingsController.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/hotelreservationsystem/controllers/admin/AdminHotelGeneralSettingsController.php b/modules/hotelreservationsystem/controllers/admin/AdminHotelGeneralSettingsController.php index 3da417831..912c16681 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminHotelGeneralSettingsController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminHotelGeneralSettingsController.php @@ -123,7 +123,7 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController 'lang' => true, 'required' => true, 'validation' => 'isGenericName', - 'hint' => $this->l('Enter Hotel name in case of single hotel or enter your hotels chain name in case of multiple hotels'), + 'hint' => $this->l('Enter Hotel name in case of single hotel or enter your hotels chain name in case of multiple hotels.'), ), 'WK_HTL_TAG_LINE' => array( 'title' => $this->l('Hotel Tag Line'), @@ -134,7 +134,7 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController 'hint' => $this->l('This will display hotel tag line in hotel page.'), ), 'WK_HTL_SHORT_DESC' => array( - 'title' => $this->l('Hotel Sort Description'), + 'title' => $this->l('Hotel Short Description'), 'type' => 'textareaLang', 'lang' => true, 'required' => true, @@ -202,15 +202,15 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController 'submit' => array('title' => $this->l('Save')), ), 'googleMap' => array( - 'title' => $this->l('Google Map Setting'), + 'title' => $this->l('Google Maps Settings'), 'fields' => array( 'PS_API_KEY' => array( - 'title' => $this->l('Google API Key'), - 'hint' => $this->l('Unique API key for Google map.'), + 'title' => $this->l('Google Maps API Key'), + 'hint' => $this->l('Unique API key for Google Maps.'), 'type' => 'text', ), 'WK_GOOGLE_ACTIVE_MAP' => array( - 'title' => $this->l('Display Google Map For Hotel Location'), + 'title' => $this->l('Display Google Maps For Hotel Location'), 'cast' => 'intval', 'type' => 'bool', 'default' => '1', @@ -224,10 +224,10 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController 'value' => 0, ), ), - 'hint' => $this->l('If set to No, Google Map will not be displayed for hotel location. You need to set hotels location from edit hotel page to display location on the map at contact-us page.'), + 'hint' => $this->l('If set to No, Google Maps will not be displayed for hotel location. You need to set hotels location from edit hotel page to display location on the map at contact-us page.'), ), 'WK_MAP_HOTEL_ACTIVE_ONLY' => array( - 'title' => $this->l('Display Only Active Hotels'), + 'title' => $this->l('Display Active Hotels Only'), 'cast' => 'intval', 'type' => 'bool', 'default' => '1', @@ -241,7 +241,7 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController 'value' => 0, ), ), - 'hint' => $this->l('If yes, only active hotels will be display on map'), + 'hint' => $this->l('If yes, only active hotels will be displayed on map.'), ), ), From 25a0eb448924c029f654fa77271c37c5911bd4a4 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 21 Jul 2022 15:54:01 +0530 Subject: [PATCH 02/18] Text change on Orders > View page at back office --- .../default/template/controllers/orders/helpers/view/view.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl index 6922cff6d..37ae0e261 100644 --- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -662,11 +662,11 @@
{if ($customer->isGuest())} - {l s='This order has been placed by a guest.'} +

{l s='This order has been placed by a guest.'}

{if (!Customer::customerExists($customer->email))}
- +

{l s='This feature will generate a random password and send an email to the customer.'}

{else} From 5f00be0b72fbc8f216771918ca3c8ccedf504547 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 27 Jul 2022 13:24:46 +0530 Subject: [PATCH 03/18] Text changes in profiling data display --- tools/profiling/Controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/profiling/Controller.php b/tools/profiling/Controller.php index 9524458d5..548bbcf0e 100644 --- a/tools/profiling/Controller.php +++ b/tools/profiling/Controller.php @@ -110,7 +110,7 @@ abstract class Controller extends ControllerCore private function getLoadTimeColor($n, $kikoo = false) { if ($n > 1.6) { - return ''.round($n * 1000).''.($kikoo ? ' ms - You\'d better run your shop on a toaster' : ''); + return ''.round($n * 1000).''.($kikoo ? ' ms - You\'d better run your website on a toaster' : ''); } elseif ($n > 0.8) { return ''.round($n * 1000).''.($kikoo ? ' ms - OK... for a shared hosting' : ''); } elseif ($n > 0) { @@ -454,7 +454,7 @@ abstract class Controller extends ControllerCore Queries'.$this->getNbQueriesColor(count($this->array_queries)).' Memory Peak Usage'.$this->getPeakMemoryColor($this->profiler[count($this->profiler) - 1]['peak_memory_usage']).' Mb Included Files'.count(get_included_files()).' files - '.$this->getMemoryColor($this->total_filesize).' Mb - PrestaShop Cache'.$this->getMemoryColor($this->total_cache_size).' Mb + QloApps Cache'.$this->getMemoryColor($this->total_cache_size).' Mb Global vars'.$this->getMemoryColor($this->total_global_var_size).' Mb'; foreach ($this->global_var_size as $global => $size) { echo '- global $'.$global.''.$size.'k'; @@ -469,7 +469,7 @@ abstract class Controller extends ControllerCore echo '
- + From 6159f9a88970625196f52376e3be8cca048b58a1 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 28 Jul 2022 13:41:05 +0530 Subject: [PATCH 04/18] Text change on Manage Hotel > Edit page --- .../views/templates/admin/add_hotel/helpers/form/form.tpl | 6 +++--- themes/hotel-reservation-theme/404.tpl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl b/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl index 2ac858b98..a9cadfaef 100644 --- a/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl @@ -44,7 +44,7 @@ {/foreach} -

{l s='Change language for updating information in multiple language.' mod='hotelreservationsystem'}

+

{l s='Change language here to update information in multiple languages.' mod='hotelreservationsystem'}


{/if} @@ -343,7 +343,7 @@ {else}
- {l s='Please save the hotel information before saving the hotel images.' mod='hotelreservationsystem'} + {l s='Please save hotel information before saving hotel images.' mod='hotelreservationsystem'}
{/if} @@ -429,7 +429,7 @@ {else}
- {l s='Please save the hotel information before saving the hotel images.' mod='hotelreservationsystem'} + {l s='Please save hotel information before saving refund policy options.' mod='hotelreservationsystem'}
{/if} diff --git a/themes/hotel-reservation-theme/404.tpl b/themes/hotel-reservation-theme/404.tpl index cb924d817..c770d8a48 100644 --- a/themes/hotel-reservation-theme/404.tpl +++ b/themes/hotel-reservation-theme/404.tpl @@ -29,13 +29,13 @@ {l s='We\'re sorry, but the Web address you\'ve entered is no longer available.'}

-

{l s='To find a product, please type its name in the field below.'}

+

{l s='To find a room type, please type its name in the field below.'}

- + - +
From eaf632d4b536c4df94344e54a0bd454d7afbffaa Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 28 Jul 2022 17:09:34 +0530 Subject: [PATCH 05/18] Text change on logs and store contacts page --- classes/PrestaShopLogger.php | 2 +- controllers/admin/AdminLogsController.php | 2 +- controllers/admin/AdminStoresController.php | 10 +++++----- mails/en/lang.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/classes/PrestaShopLogger.php b/classes/PrestaShopLogger.php index 5c87d1008..5051005fc 100644 --- a/classes/PrestaShopLogger.php +++ b/classes/PrestaShopLogger.php @@ -85,7 +85,7 @@ class PrestaShopLoggerCore extends ObjectModel Mail::Send( (int)Configuration::get('PS_LANG_DEFAULT'), 'log_alert', - Mail::l('Log: You have a new alert from your shop', (int)Configuration::get('PS_LANG_DEFAULT')), + Mail::l('Log: You have a new alert from your website', (int)Configuration::get('PS_LANG_DEFAULT')), array(), Configuration::get('PS_SHOP_EMAIL') ); diff --git a/controllers/admin/AdminLogsController.php b/controllers/admin/AdminLogsController.php index c3c0bccf5..698a00a71 100644 --- a/controllers/admin/AdminLogsController.php +++ b/controllers/admin/AdminLogsController.php @@ -86,7 +86,7 @@ class AdminLogsControllerCore extends AdminController 'fields' => array( 'PS_LOGS_BY_EMAIL' => array( 'title' => $this->l('Minimum severity level'), - 'hint' => $this->l('Enter "5" if you do not want to receive any emails.').'
'.$this->l('Emails will be sent to the shop owner.'), + 'hint' => $this->l('Enter "5" if you do not want to receive any emails.').'
'.$this->l('Emails will be sent to the website owner.'), 'cast' => 'intval', 'type' => 'text' ) diff --git a/controllers/admin/AdminStoresController.php b/controllers/admin/AdminStoresController.php index a148d9634..6e56fee02 100644 --- a/controllers/admin/AdminStoresController.php +++ b/controllers/admin/AdminStoresController.php @@ -449,14 +449,14 @@ class AdminStoresControllerCore extends AdminController $formFields = array( 'PS_SHOP_NAME' => array( - 'title' => $this->l('Shop name'), + 'title' => $this->l('Website name'), 'hint' => $this->l('Displayed in emails and page titles.'), 'validation' => 'isGenericName', 'required' => true, 'type' => 'text', 'no_escape' => true, ), - 'PS_SHOP_EMAIL' => array('title' => $this->l('Shop email'), + 'PS_SHOP_EMAIL' => array('title' => $this->l('Website email'), 'hint' => $this->l('Displayed in emails sent to customers.'), 'validation' => 'isEmail', 'required' => true, @@ -464,19 +464,19 @@ class AdminStoresControllerCore extends AdminController ), 'PS_SHOP_DETAILS' => array( 'title' => $this->l('Registration number'), - 'hint' => $this->l('Shop registration information (e.g. SIRET or RCS).'), + 'hint' => $this->l('Website registration information (e.g. SIRET or RCS).'), 'validation' => 'isGenericName', 'type' => 'textarea', 'cols' => 30, 'rows' => 5 ), 'PS_SHOP_ADDR1' => array( - 'title' => $this->l('Shop address line 1'), + 'title' => $this->l('Address line 1'), 'validation' => 'isAddress', 'type' => 'text' ), 'PS_SHOP_ADDR2' => array( - 'title' => $this->l('Shop address line 2'), + 'title' => $this->l('Address line 2'), 'validation' => 'isAddress', 'type' => 'text' ), diff --git a/mails/en/lang.php b/mails/en/lang.php index c3bfdd976..6c2cc0714 100644 --- a/mails/en/lang.php +++ b/mails/en/lang.php @@ -7,7 +7,7 @@ $_LANGMAIL['Your guest account has been transformed into a customer account'] = $_LANGMAIL['The virtual product that you bought is available for download'] = 'The virtual product that you bought is available for download'; $_LANGMAIL['New voucher for your order %s'] = 'New voucher for your order %s'; $_LANGMAIL['Order confirmation'] = 'Order confirmation'; -$_LANGMAIL['Log: You have a new alert from your shop'] = 'Log: You have a new alert from your shop'; +$_LANGMAIL['Log: You have a new alert from your website'] = 'Log: You have a new alert from your website'; $_LANGMAIL['Fwd: Customer message'] = 'Fwd: Customer message'; $_LANGMAIL['An answer to your message is available #ct%1$s #tc%2$s'] = 'An answer to your message is available #ct%1$s #tc%2$s'; $_LANGMAIL['Your new password'] = 'Your new password'; From 6c6a3a9d907c221bdca3c0ae2bf0bae3d2cc782d Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 1 Aug 2022 10:51:40 +0530 Subject: [PATCH 06/18] Text changes on Preferences > Room Types page --- .../admin/AdminPPreferencesController.php | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/controllers/admin/AdminPPreferencesController.php b/controllers/admin/AdminPPreferencesController.php index 1dc360f64..e0d39b43a 100644 --- a/controllers/admin/AdminPPreferencesController.php +++ b/controllers/admin/AdminPPreferencesController.php @@ -43,7 +43,7 @@ class AdminPPreferencesControllerCore extends AdminController $this->fields_options = array( 'products' => array( - 'title' => $this->l('Products (general)'), + 'title' => $this->l('Room Types (General)'), 'fields' => array( 'PS_CATALOG_MODE' => array( 'title' => $this->l('Catalog mode'), @@ -62,7 +62,8 @@ class AdminPPreferencesControllerCore extends AdminController // 'type' => 'text' // ), 'PS_NB_DAYS_NEW_PRODUCT' => array( - 'title' => $this->l('Number of days for which the product is considered \'new\''), + 'title' => $this->l('Number of days for which a room type is considered \'new\''), + 'hint' => $this->l('The counting of days starts from room type creation date.'), 'validation' => 'isUnsignedInt', 'cast' => 'intval', 'type' => 'text' @@ -82,7 +83,7 @@ class AdminPPreferencesControllerCore extends AdminController ),*/ 'PS_PRODUCT_SHORT_DESC_LIMIT' => array( 'title' => $this->l('Max size of short description'), - 'hint' => $this->l('Set the maximum size of product short description (in characters).'), + 'hint' => $this->l('Set the maximum size of room type short description (in characters).'), 'validation' => 'isInt', 'cast' => 'intval', 'type' => 'text', @@ -116,31 +117,31 @@ class AdminPPreferencesControllerCore extends AdminController 'title' => $this->l('Pagination'), 'fields' => array( 'PS_PRODUCTS_PER_PAGE' => array( - 'title' => $this->l('Products per page'), - 'hint' => $this->l('Number of products displayed per page. Default is 10.'), + 'title' => $this->l('Room types per page'), + 'hint' => $this->l('Number of room types displayed per page. Default is 10.'), 'validation' => 'isUnsignedInt', 'cast' => 'intval', 'type' => 'text' ), 'PS_PRODUCTS_ORDER_BY' => array( 'title' => $this->l('Default order by'), - 'hint' => $this->l('The order in which products are displayed in the product list.'), + 'hint' => $this->l('The order in which room types are displayed in the room type list.'), 'type' => 'select', 'list' => array( - array('id' => '0', 'name' => $this->l('Product name')), - array('id' => '1', 'name' => $this->l('Product price')), - array('id' => '2', 'name' => $this->l('Product add date')), - array('id' => '3', 'name' => $this->l('Product modified date')), - array('id' => '4', 'name' => $this->l('Position inside category')), - array('id' => '5', 'name' => $this->l('Manufacturer')), - array('id' => '6', 'name' => $this->l('Product quantity')), - array('id' => '7', 'name' => $this->l('Product reference')) + array('id' => '0', 'name' => $this->l('Room type name')), + array('id' => '1', 'name' => $this->l('Room type price')), + array('id' => '2', 'name' => $this->l('Room type add date')), + array('id' => '3', 'name' => $this->l('Room type modified date')), + // array('id' => '4', 'name' => $this->l('Position inside category')), + // array('id' => '5', 'name' => $this->l('Manufacturer')), + // array('id' => '6', 'name' => $this->l('Product quantity')), + // array('id' => '7', 'name' => $this->l('Product reference')) ), 'identifier' => 'id' ), 'PS_PRODUCTS_ORDER_WAY' => array( 'title' => $this->l('Default order method'), - 'hint' => $this->l('Default order method for product list.'), + 'hint' => $this->l('Default order method for room type list.'), 'type' => 'select', 'list' => array( array( @@ -158,7 +159,7 @@ class AdminPPreferencesControllerCore extends AdminController 'submit' => array('title' => $this->l('Save')) ), 'fo_product_page' => array( - 'title' => $this->l('Product page'), + 'title' => $this->l('Room type page'), 'fields' => array( /* 'PS_DISPLAY_QTIES' => array( 'title' => $this->l('Display available quantities on the product page'), @@ -176,7 +177,7 @@ class AdminPPreferencesControllerCore extends AdminController 'type' => 'text' ),*/ 'PS_DISPLAY_JQZOOM' => array( - 'title' => $this->l('Enable JqZoom instead of Fancybox on the product page'), + 'title' => $this->l('Enable JqZoom instead of Fancybox on room type page'), 'validation' => 'isBool', 'cast' => 'intval', 'required' => false, From 17b435a01e7344089bef837d676cb01aaefcdc40 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 3 Aug 2022 12:25:12 +0530 Subject: [PATCH 07/18] Text change on order detail page at front office --- themes/hotel-reservation-theme/order-detail.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl index f125fafc8..c5ba8f959 100644 --- a/themes/hotel-reservation-theme/order-detail.tpl +++ b/themes/hotel-reservation-theme/order-detail.tpl @@ -414,7 +414,7 @@ {if $refund_allowed && $non_requested_rooms}
- {l s='Select rooms which bookings you want to cancel. Attached additional facilities with the room will be cancelled with room cancellation.'} + {l s='Select rooms for which you want to cancel bookings. Additional facilities for cancelled rooms will be cancelled automatically.'}
{if !$hasCompletelyRefunded}
From 0322e6caa0404c271bba20bd0162bfd632ef7621 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 3 Aug 2022 17:01:02 +0530 Subject: [PATCH 08/18] Minor design issue on order view page at back office --- .../default/template/controllers/orders/_product_line.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/controllers/orders/_product_line.tpl b/admin/themes/default/template/controllers/orders/_product_line.tpl index be6cdb1d3..4bfab915e 100644 --- a/admin/themes/default/template/controllers/orders/_product_line.tpl +++ b/admin/themes/default/template/controllers/orders/_product_line.tpl @@ -152,7 +152,7 @@
PrestaShop Version'._PS_VERSION_.'
QloApps Version'._QLOAPPS_VERSION_.'
PHP Version'.$this->getPhpVersionColor(phpversion()).'
MySQL Version'.$this->getMySQLVersionColor(Db::getInstance()->getVersion()).'
Memory Limit'.ini_get('memory_limit').'
{* edit/delete controls *} -
+