프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$adapter | Framework adapter | ||
$categories | Locale categories | ||
$configuration | Config container | ||
$domain | String | ||
$encoding | Current encoding | ||
$fileSystem | File system helper | ||
$locale | Current locale |
메소드 | 설명 | |
---|---|---|
__construct ( |
Initializes the gettext module translator | |
__toString ( ) : mixed | Return the current locale | |
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 | |
translate ( $message ) | Translates a message with gettext | |
translatePlural ( $singular, $plural, $count ) : string | Translates a plural message with gettext |
public __construct ( |
||
$config | ||
$adapter | Xinax\LaravelGettext\Adapters\AdapterInterface | |
$fileSystem |
public getLocale ( ) : String | ||
리턴 | String |
public isLocaleSupported ( $locale ) : boolean | ||
리턴 | boolean |
public setDomain ( String $domain ) : self | ||
$domain | String | |
리턴 | self |
public setEncoding ( mixed $encoding ) : self | ||
$encoding | mixed | the encoding |
리턴 | self |
public translatePlural ( $singular, $plural, $count ) : string | ||
$singular | ||
$plural | ||
$count | ||
리턴 | string |
protected FileSystem,Xinax\LaravelGettext $fileSystem | ||
리턴 |