Method | Description | |
---|---|---|
getAvailableLanguages ( ) : array | Gets the system's available languages. | |
getContinents ( string $locale = null ) : array | Gets the continents list. | |
getCountries ( string $locale = null ) : array | Gets the countries list. | |
getFormats ( string $locale = null ) : array | null | Gets the locales formats data. | |
getLanguages ( string $locale = null ) : array | null | Gets the languages list. | |
getLocale ( ) : string | Gets the current locale id. | |
getLocaleTag ( ) : string | Gets the current locale tag. | |
getSubContinents ( string $locale = null ) : array | Gets the subcontinents list. | |
getTerritories ( string $locale = null ) : array | null | Gets the territories list. | |
loadLocale ( string $locale, Symfony\Component\Translation\TranslatorInterface $translator = null ) | Loads language files. | |
main ( Pagekit\Application $app ) | ||
setLocale ( string $locale ) | Sets the current locale id. |
Method | Description | |
---|---|---|
getData ( string $name, string | null $locale = null ) : array | null | ||
getGeneric ( string $name ) : array | null | ||
getTerritoryContainment ( $level = 1, $locale = null ) | ||
parse ( string $file ) : array | null |
public getAvailableLanguages ( ) : array | ||
return | array |
public getContinents ( string $locale = null ) : array | ||
$locale | string | |
return | array |
public getCountries ( string $locale = null ) : array | ||
$locale | string | |
return | array |
public getLocaleTag ( ) : string | ||
return | string |
public getSubContinents ( string $locale = null ) : array | ||
$locale | string | |
return | array |
protected getTerritoryContainment ( $level = 1, $locale = null ) |
public loadLocale ( string $locale, Symfony\Component\Translation\TranslatorInterface $translator = null ) | ||
$locale | string | |
$translator | Symfony\Component\Translation\TranslatorInterface |