-
-
Notifications
You must be signed in to change notification settings - Fork 10
Language manager
Alexanderius edited this page Jun 7, 2024
·
3 revisions
LanguageManager
is the 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 a next requests and will set user request language; -
SetCurrentLanguage("en")
- sets language only for the current request.
On begin request:
- Set language from cookie if
AcceptCookieLanguage
settings is set totrue
; - If there is no cookie language and Simplify.Web configuration
AcceptHeaderLanguage
is set totrue
then HTTP request header language will be used; - If header language usage is disabled, then the default language from Simplify.Web configuration will be used instead.
- If there is an error setting default language then invariant language 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
- Dynamic environment
- Language manager
- Redirector
- HTML