Метод | Описание | |
---|---|---|
__construct ( SimpleSAML_Configuration $configuration ) | Constructor | |
addDomain ( $localeDir, $domain ) | * Add a new translation domain (We're assuming that each domain only exists in one place) | |
addModuleDomain ( $module, $localeDir = null ) | * Add a new translation domain from a module (We're assuming that each domain only exists in one place) | |
getDomainLocaleDir ( string $domain ) | Get the default locale dir for a specific module aka. domain | |
getLangPath ( $domain = self::DEFAULT_DOMAIN ) | * Get and check path of localization file | |
getLocaleDir ( ) | Dump the default locale directory | |
getRegisteredDomains ( ) | Show which domains are registered | |
isI18NBackendDefault ( ) | Test to check if backend is set to default |
Метод | Описание | |
---|---|---|
loadGettextGettextFromPO ( string $domain = self::DEFAULT_DOMAIN, boolean $catchException = true ) | Load translation domain from Gettext/Gettext using .po | |
setupL10N ( ) | Set up L18N if configured or fallback to old system | |
setupTranslator ( ) | Setup the translator |
public __construct ( SimpleSAML_Configuration $configuration ) | ||
$configuration | SimpleSAML_Configuration | Configuration object |
public addDomain ( $localeDir, $domain ) | ||
$localeDir | Location of translations | |
$domain | Domain at location |
public addModuleDomain ( $module, $localeDir = null ) | ||
$module | Module name | |
$localeDir | Absolute path if the module is housed elsewhere |
public getDomainLocaleDir ( string $domain ) | ||
$domain | string | Name of module/domain |
public getLangPath ( $domain = self::DEFAULT_DOMAIN ) | ||
$domain | Name of localization domain |
public getRegisteredDomains ( ) |
public isI18NBackendDefault ( ) |