Свойство | Type | Description | |
---|---|---|---|
$encoding | string | variable holds the current encoding | |
$locale | string | variable holds the current locale |
Méthode | 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 | ||
Résultat | string |
public createFolder ( string $path ) : |
||
$path | string | |
Résultat |
public getEncoding ( ) : string | ||
Résultat | string |
public getLocaleAndEncoding ( ) : string | ||
Résultat | string |
public hasEncoding ( ) : boolean | ||
Résultat | boolean |
public setEncoding ( string $encoding ) : |
||
$encoding | string | |
Résultat |
public setTextDomain ( string $textdomain, string $path ) : |
||
$textdomain | string | |
$path | string | |
Résultat |
protected string $encoding | ||
Résultat | string |
protected string $locale | ||
Résultat | string |