1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 01:39:35 +02:00

Support for roomconfig_lang/roominfo_lang

Now room owners are able to set a preferred language
for the discussions in the room, so other users can
discover rooms based on the language they wish to talk.

TODO: the language format should conform to RFC 5646.
      This check should be implemented in 'xmpp' library.

Fixes #2436
This commit is contained in:
Evgeniy Khramtsov 2018-05-30 08:11:58 +03:00
parent 52b8226671
commit 0f9db50c8d
3 changed files with 15 additions and 4 deletions

View file

@ -66,7 +66,8 @@
vcard_xupdate = undefined :: undefined | external | binary(),
captcha_whitelist = (?SETS):empty() :: ?TGB_SET,
mam = false :: boolean(),
pubsub = <<"">> :: binary()
pubsub = <<"">> :: binary(),
lang = ?MYLANG :: binary()
}).
-type config() :: #config{}.