Table of Contents

R39700-3 User - Set Default Language

Name Value
Code R39700-3
Entity Systems.Security.Users
Name SetDefaultLanguage
Attribute DefaultLanguage
Layer Back-End
Events Commit
Record State Insert
Priority Normal
Modify YES
Action On Insert
If User.DefaultLanguage != NULL
THEN Return,
ЕLSE
(If User.DefaultLanguage == NULL
AND Config(where KeyPath == "Default language" && IsActive == True && KeyValue != NULL && KeyValue != "0").Count() == 1
THEN set User.DefaultLanguage = Config.KeyValue
ELSE User.DefaultLanguage = {$language} // current Language)
Description The rule sets the Default Language equal to the value of the config key "Default Language".
If the key is NULL or not defined, the language is equal to the current language of the logged creation user
Message /-
Introduced v. 26.2
Revocable YES

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.