프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$encoding | string | variable holds the current encoding | |
$locale | string | variable holds the current locale |
메소드 | 설명 | |
---|---|---|
__construct ( ) | constructor method accepts an optional $locale, otherwise the default will be used | |
__toString ( ) : string | method to dump the current locale/encoding settings to string | |
createFolder ( string $path ) : |
method which auto creates the LC_MESSAGES folder for each set locale, if they do not exist yet | |
getEncoding ( ) : string | method to fetch the set encoding | |
getLocale ( ) : string | method to fetch the set locale | |
getLocaleAndEncoding ( ) : string | method to merge the locale and encoding into a single string | |
hasEncoding ( ) : boolean | method to check if an encoding has been set | |
hasLocale ( ) : boolean | method to check if a locale has been set | |
setEncoding ( string $encoding ) : |
method to set the encoding | |
setLocale ( string $locale ) : |
method to set the locale | |
setTextDomain ( string $textdomain, string $path ) : |
method to set the text domain |
public __construct ( ) |
public __toString ( ) : string | ||
리턴 | string |
public createFolder ( string $path ) : |
||
$path | string | |
리턴 |
public getLocaleAndEncoding ( ) : string | ||
리턴 | string |
public hasEncoding ( ) : boolean | ||
리턴 | boolean |
public setEncoding ( string $encoding ) : |
||
$encoding | string | |
리턴 |
public setTextDomain ( string $textdomain, string $path ) : |
||
$textdomain | string | |
$path | string | |
리턴 |