Google_LanguagesServiceResource

The "languages" collection of methods.

Defined (1)

The class is defined in the following location(s).

/inc/google-api-php-client/src/contrib/Google_TranslateService.php  
  1. class Google_LanguagesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List the source/target languages supported by the API (languages.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string target the language and collation in which the localized results should be returned 
  8. * @return Google_LanguagesListResponse 
  9. */ 
  10. public function listLanguages($optParams = array()) { 
  11. $params = array(); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('list', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_LanguagesListResponse($data); 
  16. } else { 
  17. return $data;