메소드 | 설명 | |
---|---|---|
__construct ( |
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 |
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 ) : mixed | ||
$singular | ||
$plural | ||
$count | ||
리턴 | mixed |