메소드 |
설명 |
|
__run_loadfile_test ( $filename ) |
DO NOT USE THIS FUNCTION. |
|
__run_plural_test ( $header ) |
DO NOT USE THIS FUNCTION. |
|
_e ( ) |
Echo a version of the string translated into the current locale |
|
_n ( string $singular, string $plural, string $count, string $domain = 'habari' ) : string |
Return a singular or plural string translated into the current locale based on the count provided |
|
_ne ( string $singular, string $plural, string $count, string $domain = 'habari' ) |
Echo singular or plural version of the string, translated into the current locale, based on the count provided |
|
_t ( string $text, array $args = [], string $domain = 'habari' ) : string |
Return a version of the string translated into the current locale |
|
_u ( string $text, string $domain = 'habari' ) : string |
Given a string translated into the current locale, return the untranslated string. |
|
get ( ) : string |
Return the current locale |
|
get_messages ( string $domain = 'habari' ) : array |
Return the entire message catalog for a domain as an array |
|
list_all ( ) : array. |
function list_all
Retrieves an array of the Habari locales that are installed |
|
load_pluggable_domain ( string $domain, string $base_dir ) : boolean |
Load translations for a given domain and base directory for a pluggable object. |
|
set ( string $locale = null ) |
Sets the locale for Habari. |
|
set_system_locale ( ) : string |
Set system locale. |
|
translate_xml ( SimpleXMLElement $parent, SimpleXMLElement $child, string $ns = 'http://www.w3.org/XML/1998/namespace', null | string $locale = null ) |
Return a translated value of a SimpleXml object value based on the locale and namespace |
|