프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$domain | text domain | ||
$locale | string | Locale | |
$path | path to text domain files |
메소드 | 설명 | |
---|---|---|
addTextDomain ( string $domain, string $path ) : self | Add text domain for gettext | |
setDomain ( string $domain ) : self | Set domain | |
setLocale ( string $locale ) : self | Set locale | |
setPath ( string $path ) : self | Set path to l10n | |
translate ( string $message, $text ) : string | Translate message | |
translatePlural ( string $singular, string $plural, integer $number, $text ) : string | Translate plural form |
메소드 | 설명 | |
---|---|---|
initOptions ( ) : void | Initialization |
public addTextDomain ( string $domain, string $path ) : self | ||
$domain | string | of text for gettext setup |
$path | string | on filesystem |
리턴 | self |