Метод |
Описание |
|
getCurrentPathInLocale ( string $locale = null ) : string |
Returns the current path prefixed with language code. |
|
getDefaultLocale ( ) : string |
Returns the default locale as set by the application. |
|
getLocale ( boolean $fromSession = false ) : string |
Returns the active locale set by this instance. |
|
getPathInLocale ( string $path, string $locale = null ) : string |
Returns the path prefixed with language code. |
|
init ( ) : void |
Initialize the singleton |
|
isConfigured ( ) : boolean |
Check if this plugin is installed and the database is available,
stores the result in the session for efficiency. |
|
loadLocaleFromRequest ( ) : boolean |
Sets the locale based on the first URI segment. |
|
loadLocaleFromSession ( ) : boolean |
Looks at the session storage to find a locale. |
|
setLocale ( string $locale, boolean $remember = true ) : boolean |
Changes the locale in the application and optionally stores it in the session. |
|