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

Language manager

Alexanderius edited this page Feb 14, 2016 · 3 revisions

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

On begin request:

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

<< Previous page Next page >>

Clone this wiki locally