Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Language manager

Alexanderius edited this page Jun 30, 2019 · 3 revisions

Language manager

LanguageManager is a class which provides current language info, functionality to change current request/user language.

Properties and methods

  • 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.

Logic of setting language by framework

On begin request:

  1. Set language from cookie;
  2. If there is no cookie language and Simplify.Web configuration AcceptBrowserLanguage is true then browser language will be used;
  3. If browser language usage is disabled, then the default language from Simplify.Web configuration will be used instead.

<< Previous page Next page >>

Clone this wiki locally