-
-
Notifications
You must be signed in to change notification settings - Fork 10
Language manager
Alexanderius edited this page Jul 3, 2025
·
4 revisions
LanguageManager
is a class that provides current language information and functionality to change the current request or user language.
-
Language
- current request language -
SetCookieLanguage("en")
- creates a cookie language variable, which will be used on the next requests and will set the user request language -
SetCurrentLanguage("en")
- sets language only for the current request
On begin request:
- Set language from cookie if the
AcceptCookieLanguage
setting is set totrue
. - If there is no cookie language and Simplify.Web configuration
AcceptHeaderLanguage
is set totrue
, then the 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 the default language, then the 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