Zend Framework  3.0
Namespaces | Classes | Functions | Variables
Zend\I18n\Translator Namespace Reference

Zend Framework (http://framework.zend.com/) More...

Namespaces

namespace  Loader
 Zend Framework (http://framework.zend.com/)
 
namespace  Plural
 Zend Framework (http://framework.zend.com/)
 

Classes

class  LoaderPluginManager
 Plugin manager implementation for translation loaders. More...
 
class  LoaderPluginManagerFactory
 
class  TextDomain
 Text domain. More...
 
class  Translator
 Translator. More...
 
interface  TranslatorAwareInterface
 
interface  TranslatorInterface
 Translator interface. More...
 
class  TranslatorServiceFactory
 Translator. More...
 
class  Resources
 Provide paths and patterns for locating zend-i18n translation files. More...
 

Functions

 setTranslator (TranslatorInterface $translator=null, $textDomain=null)
 Sets translator to use in helper.
 
 getTranslator ()
 Returns translator used in object.
 
 hasTranslator ()
 Checks if the object has a translator.
 
 setTranslatorEnabled ($enabled=true)
 Sets whether translator is enabled and should be used.
 
 isTranslatorEnabled ()
 Returns whether translator is enabled and should be used.
 
 setTranslatorTextDomain ($textDomain= 'default')
 Set translation text domain.
 
 getTranslatorTextDomain ()
 Return the translation text domain.
 

Variables

trait TranslatorAwareTrait
 
 $translatorEnabled = true
 
 $translatorTextDomain = 'default'
 

Detailed Description

Zend Framework (http://framework.zend.com/)

for the canonical source repository Copyright (c) 2005-2016 Zend Technologies USA Inc. http://github.com/zendframework/zf2 for the canonical source repository Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License (http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License http://github.com/zendframework/zend-i18n-resources for the canonical source repository Copyright (c) 2015 Zend Technologies USA Inc. (http://www.zend.com) https://github.com/zendframework/zend-i18n-resources/blob/master/LICENSE.md New BSD License

Function Documentation

Zend\I18n\Translator\getTranslator ( )

Returns translator used in object.

Returns
TranslatorInterface
Zend\I18n\Translator\getTranslatorTextDomain ( )

Return the translation text domain.

Returns
string
Zend\I18n\Translator\hasTranslator ( )

Checks if the object has a translator.

Returns
bool
Zend\I18n\Translator\isTranslatorEnabled ( )

Returns whether translator is enabled and should be used.

Returns
bool
Zend\I18n\Translator\setTranslator ( TranslatorInterface  $translator = null,
  $textDomain = null 
)

Sets translator to use in helper.

Parameters
TranslatorInterface$translator
string$textDomain
Returns
mixed
Zend\I18n\Translator\setTranslatorEnabled (   $enabled = true)

Sets whether translator is enabled and should be used.

Parameters
bool$enabled
Returns
mixed
Zend\I18n\Translator\setTranslatorTextDomain (   $textDomain = 'default')

Set translation text domain.

Parameters
string$textDomain
Returns
mixed

Variable Documentation

$translatorEnabled = true
$translatorTextDomain = 'default'
trait TranslatorAwareTrait
Initial value:
{
protected $translator = null