commit fd018b94a0ce3c63338f43e039e6eeb38e252edc
Author: Kapil Ropalekar <kapilro@cybage.com>
Date:   Tue Jul 11 18:40:52 2017 +0530

    Replaced t() with $this->t

diff --git a/nearby_places_search/nearby_places_search.install b/nearby_places_search/nearby_places_search.install
index e0542d4..91dc05a 100644
--- a/nearby_places_search/nearby_places_search.install
+++ b/nearby_places_search/nearby_places_search.install
@@ -32,17 +32,17 @@ function nearby_places_search_requirements($phase) {
 
     if (!$key_provided) {
       $requirements['nearby_places_search_map'] = array(
-        'title' => t('Nearby Places Search'),
+        'title' => $this->t('Nearby Places Search'),
         'severity' => REQUIREMENT_ERROR,
-        'description' => t('Google Maps API key or Client ID was not found. As of 2016/06/22, keyless access is no longer supported and it may impact rendering of maps. For more information visit: <a href="@link">@link</a>', array('@link' => 'http://googlegeodevelopers.blogspot.ca/2016/06/building-for-scale-updates-to-google.html')),
+        'description' => $this->t('Google Maps API key or Client ID was not found. As of 2016/06/22, keyless access is no longer supported and it may impact rendering of maps. For more information visit: <a href="@link">@link</a>', array('@link' => 'http://googlegeodevelopers.blogspot.ca/2016/06/building-for-scale-updates-to-google.html')),
       );
     }
 
     if (nearby_places_search_library_check()) {
       $requirements['Nearbyplaces_marker_library'] = array(
-        'title' => t('Nearby places marker library'),
+        'title' => $this->t('Nearby places marker library'),
         'severity' => REQUIREMENT_ERROR,
-        'description' => t('Nearby places search marker library could not be found. You need to download <a target="_blank" href="@library_exteranl_path">Marker library</a>, extract the archive and rename the folder as "nearby_places_search.markers". Place the marker library directory in the root folder\'s <b>/libraries</b> directory on your server.', array('@library_exteranl_path' => 'https://github.com/ashwinshaharkar/nearbyplace.markers.library')),
+        'description' => $this->t('Nearby places search marker library could not be found. You need to download <a target="_blank" href="@library_exteranl_path">Marker library</a>, extract the archive and rename the folder as "nearby_places_search.markers". Place the marker library directory in the root folder\'s <b>/libraries</b> directory on your server.', array('@library_exteranl_path' => 'https://github.com/ashwinshaharkar/nearbyplace.markers.library')),
       );
     }
   }
diff --git a/nearby_places_search/nearby_places_search.module b/nearby_places_search/nearby_places_search.module
index 2b3ec00..b2f2e35 100644
--- a/nearby_places_search/nearby_places_search.module
+++ b/nearby_places_search/nearby_places_search.module
@@ -117,14 +117,14 @@ function nearby_places_search_build_api_msg() {
     case 1:
       $key = $config->get('nearby_places_search_apikey') ?: '';
       if (empty($key)) {
-        $api_msg = t('Google Map API key was not found. Please configure or enter a valid API key from <a target="_blank" href="@config_path">configuration</a> page.', array('@config_path' => $nearby_places_search_config_url));
+        $api_msg = $this->t('Google Map API key was not found. Please configure or enter a valid API key from <a target="_blank" href="@config_path">configuration</a> page.', array('@config_path' => $nearby_places_search_config_url));
       }
       break;
 
     case 2:
       $client_id = $config->get('nearby_places_search_client_id') ?: '';
       if (empty($client_id)) {
-        $api_msg = t('Google Map client id was not found. Please configure or enter a valid client id from <a target="_blank" href="@config_path">configuration</a> page.', array('@config_path' => $nearby_places_search_config_url));
+        $api_msg = $this->t('Google Map client id was not found. Please configure or enter a valid client id from <a target="_blank" href="@config_path">configuration</a> page.', array('@config_path' => $nearby_places_search_config_url));
       }
       break;
   }
diff --git a/nearby_places_search/src/Form/NearbyPlacesSearchForm.php b/nearby_places_search/src/Form/NearbyPlacesSearchForm.php
index aec85bb..44a1f4e 100644
--- a/nearby_places_search/src/Form/NearbyPlacesSearchForm.php
+++ b/nearby_places_search/src/Form/NearbyPlacesSearchForm.php
@@ -130,7 +130,7 @@ class NearbyPlacesSearchForm extends ConfigFormBase {
     $form['#attached']['library'][] = 'nearby_places_search/nearby_places_search_admin';
 
     $form['nearby_places_search_types'] = array(
-      '#title' => t('Location Types:<br/><br/>'),
+      '#title' => $this->t('Location Types:<br/><br/>'),
       '#type' => 'checkboxes',
       '#options' => $types,
       '#default_value' => $get_default,
