Documentation

I18nManager
in package

Table of Contents

Methods

findLocale()  : null|I18nLanguage
Trys to find a language by its fqn in the installed pool. If that doesn't exists it looks for similar ones in main language and other region dialects
getLocales()  : null|array<string|int, mixed>
Gets all installed Locales in a directory
__loadLanguage()  : I18nLanguage|null

Methods

findLocale()

Trys to find a language by its fqn in the installed pool. If that doesn't exists it looks for similar ones in main language and other region dialects

public static findLocale(mixed $fqn, mixed $localeDir[, mixed $null = null ]) : null|I18nLanguage
Parameters
$fqn : mixed

Full Qualified Name of the Locale

$localeDir : mixed

Installation Directory for all Locales

$null : mixed = null
Return values
null|I18nLanguage

Returns null if nothing matching got found

getLocales()

Gets all installed Locales in a directory

public static getLocales(mixed $localeDir[, bool $toLower = false ]) : null|array<string|int, mixed>
Parameters
$localeDir : mixed

Locale save location

$toLower : bool = false

shall the fqn become lowercased?

Return values
null|array<string|int, mixed>

__loadLanguage()

private static __loadLanguage(mixed $fileName[, mixed $format = "auto" ]) : I18nLanguage|null
Parameters
$fileName : mixed
$format : mixed = "auto"
Return values
I18nLanguage|null

        
On this page

Search results