eZPublishCommunityProject  2013.4
eZ\Publish\API\Repository\TranslationService Interface Reference

Public Member Functions

 translate (Translation $translation, $locale)
 Translate. More...
 
 translateString ($translation, $locale)
 Translate string. More...
 

Member Function Documentation

eZ\Publish\API\Repository\TranslationService::translate ( Translation  $translation,
  $locale 
)

Translate.

Translate a Translation value object.

Parameters
Translation$translation
string$locale
Returns
string
eZ\Publish\API\Repository\TranslationService::translateString (   $translation,
  $locale 
)

Translate string.

Translate a string. Strings could be useful for the simplest cases. Usually you will always use Translation value objects for this.

Parameters
string$translation
string$locale
Returns
string

The documentation for this interface was generated from the following file: