Property | Type | Description | |
---|---|---|---|
$encoding | string | variable holds the current encoding | |
$locale | string | variable holds the current locale |
Method | Description | |
---|---|---|
__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 | ||
return | string |
public createFolder ( string $path ) : |
||
$path | string | |
return |
public getEncoding ( ) : string | ||
return | string |
public getLocaleAndEncoding ( ) : string | ||
return | string |
public hasEncoding ( ) : boolean | ||
return | boolean |
public setEncoding ( string $encoding ) : |
||
$encoding | string | |
return |
public setTextDomain ( string $textdomain, string $path ) : |
||
$textdomain | string | |
$path | string | |
return |
protected string $encoding | ||
return | string |
protected string $locale | ||
return | string |