PHP 인터페이스 Xinax\LaravelGettext\Translators\TranslatorInterface

파일 보기 프로젝트 열기: xinax/laravel-gettext 0 사용 예제들

공개 메소드들

메소드 설명
__construct ( Config $config, Xinax\LaravelGettext\Adapters\AdapterInterface $adapter, FileSystem $fileSystem ) TranslatorInterface constructor.
__toString ( ) : mixed Return the current locale
getDomain ( ) : String Returns the current domain
getEncoding ( ) : mixed Gets the Current encoding.
getLocale ( ) : String Returns the current locale string identifier
isLocaleSupported ( $locale ) : boolean Returns a boolean that indicates if $locale is supported by configuration
setDomain ( String $domain ) : self Sets the current domain and updates gettext domain application
setEncoding ( mixed $encoding ) : self Sets the Current encoding.
setLocale ( $locale ) Sets the current locale code
supportedLocales ( ) : array Returns supported locales
translate ( $message ) : string Translates a single message
translatePlural ( $singular, $plural, $count ) : mixed Translates a plural string

메소드 상세

__construct() 공개 메소드

TranslatorInterface constructor.
public __construct ( Config $config, Xinax\LaravelGettext\Adapters\AdapterInterface $adapter, FileSystem $fileSystem )
$config Xinax\LaravelGettext\Config\Models\Config
$adapter Xinax\LaravelGettext\Adapters\AdapterInterface
$fileSystem Xinax\LaravelGettext\FileSystem

__toString() 공개 메소드

Return the current locale
public __toString ( ) : mixed
리턴 mixed

getDomain() 공개 메소드

Returns the current domain
public getDomain ( ) : String
리턴 String

getEncoding() 공개 메소드

Gets the Current encoding.
public getEncoding ( ) : mixed
리턴 mixed

getLocale() 공개 메소드

Returns the current locale string identifier
public getLocale ( ) : String
리턴 String

isLocaleSupported() 공개 메소드

Returns a boolean that indicates if $locale is supported by configuration
public isLocaleSupported ( $locale ) : boolean
리턴 boolean

setDomain() 공개 메소드

Sets the current domain and updates gettext domain application
public setDomain ( String $domain ) : self
$domain String
리턴 self

setEncoding() 공개 메소드

Sets the Current encoding.
public setEncoding ( mixed $encoding ) : self
$encoding mixed the encoding
리턴 self

setLocale() 공개 메소드

Sets the current locale code
public setLocale ( $locale )

supportedLocales() 공개 메소드

Returns supported locales
public supportedLocales ( ) : array
리턴 array

translate() 공개 메소드

Translates a single message
public translate ( $message ) : string
$message
리턴 string

translatePlural() 공개 메소드

Translates a plural string
public translatePlural ( $singular, $plural, $count ) : mixed
$singular
$plural
$count
리턴 mixed