Class IAM_BabelFish_Translate

Description

IAM_BabelFish_Translate

  • author: Ivan Melgrati
  • version: 1.0
  • copyright: 2008
  • access: public

Located in /IAM_BabelFish_Translate.class.php (line 32)


	
			
Method Summary
IAM_BabelFish_Translate IAM_BabelFish_Translate ([String $source = 'en'], [String $destination = 'es'])
String getSourceLanguage ()
String getText ()
String getURL ()
void setDestinationLanguage (String $destination)
void setSourceLanguage (String $source)
void setText (String $text)
void setURL ( $url, String $text)
String translateText ([String $text = ''])
String translateURL ([String $url = ''])
Methods
Constructor IAM_BabelFish_Translate (line 71)

Class Constructor

  • access: public
IAM_BabelFish_Translate IAM_BabelFish_Translate ([String $source = 'en'], [String $destination = 'es'])
  • String $source: Translation Source Language
  • String $destination: Translation Destination Language
getDestinationLanguage (line 136)

Get the Current translation destination language

  • return: Current translation destination language
  • access: public
String getDestinationLanguage ()
getSourceLanguage (line 116)

Get the Current translation source language

  • return: Current translation source language
  • access: public
String getSourceLanguage ()
getText (line 157)

Get Current text to be translated

  • return: Current text to be translated
  • access: public
String getText ()
getURL (line 176)

Get Current url to be translated

  • return: Current text to be translated
  • access: public
String getURL ()
setDestinationLanguage (line 147)

Set the Current translation destination language

  • access: public
void setDestinationLanguage (String $destination)
  • String $destination: Translation destination language
setSourceLanguage (line 126)

Set the Current translation source language

  • access: public
void setSourceLanguage (String $source)
  • String $source: Translation source language
setText (line 166)

Set text to be translated

  • access: public
void setText (String $text)
  • String $text: text to be translated
setURL (line 185)

Set text to be translated

  • access: public
void setURL ( $url, String $text)
  • String $text: text to be translated
  • $url
translateText (line 227)

Translate text using BabelFish's translation engine and return the translated string. If no text is provided, it uses the text stored in the $text attribute

  • return: Translated Text
  • access: public
String translateText ([String $text = ''])
  • String $text: Text to be translated
translateURL (line 264)

Translate a URL using BabelFish's translation engine and return the translated page. If no URL is provided, it uses the one stored in the $url attribute

  • return: Translated URL
  • access: public
String translateURL ([String $url = ''])
  • String $url: URL to be translated

Documentation generated on Fri, 01 Aug 2008 17:10:26 -0300 by phpDocumentor 1.4.1