This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Language manager
Alexanderius edited this page Jun 30, 2019
·
3 revisions
LanguageManager
is a class which provides current language info, functionality to change current request/user language.
-
Language
- current request language; -
SetCookieLanguage("en")
- creates cookie language variable, which will be used on next requests and will set user request language; -
SetCurrentLanguage("en")
- sets language only for current request.
On begin request:
- Set language from cookie;
- If there is no cookie language and Simplify.Web configuration AcceptBrowserLanguage is true then browser language will be used;
- If browser language usage is disabled, then the default language from Simplify.Web configuration will be used instead.
- Getting Started
- Main Simplify.Web principles
- Simplify.Web controllers
- Simplify.Web views
- Simplify.Web templates
- Simplify.Web configuration
- Templates variables
- Static content
- Template factory
- Data collector
- String table
- File reader
- Web context
- Environment
- Language manager
- Redirector
- HTML