public function custom_text($location, $locale = "en")
 {
     $response = '';
     if (!$this->ts_id || !$this->ts_access_key) {
         return '';
     }
     //Sending Translation Service (ts_) id and access_key, as we are talking directly to the Translation Service
     //Todo: use project->id and project->access_key once this call is moved to TP
     $params = array('project_id' => $this->ts_id, 'accesskey' => $this->ts_access_key, 'location' => $location, 'lc' => $locale);
     if ($this->service->custom_text_url) {
         $response = TranslationProxy_Api::service_request($this->service->custom_text_url, $params, 'GET', false, true, true, true);
     }
     return $response;
 }
 public function custom_text($location, $locale = "en")
 {
     $response = '';
     if (!$this->ts_id || !$this->ts_access_key) {
         return '';
     }
     //Sending Translation Service (ts_) id and access_key, as we are talking directly to the Translation Service
     //Todo: use project->id and project->access_key once this call is moved to TP
     $params = array('project_id' => $this->ts_id, 'accesskey' => $this->ts_access_key, 'location' => $location, 'lc' => $locale);
     if ($this->service->custom_text_url) {
         try {
             $response = TranslationProxy_Api::service_request($this->service->custom_text_url, $params, 'GET', true, true, true);
         } catch (Exception $e) {
             throw new RuntimeException('error getting custom text from Translation Service: ' . serialize($params) . ' url: ' . $this->service->custom_text_url, 0, $e);
         }
     }
     return $response;
 }