Software /
code /
prosody
Comparison
plugins/muc/language.lib.lua @ 9034:1c709e3d2e5e
MUC: Improve labels of all config form items
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 13 Jul 2018 13:22:40 +0100 |
parent | 8833:9c90cd2fc4c3 |
child | 9035:173c0e16e704 |
comparison
equal
deleted
inserted
replaced
9033:f1b6efd5b379 | 9034:1c709e3d2e5e |
---|---|
27 end | 27 end |
28 | 28 |
29 local function add_form_option(event) | 29 local function add_form_option(event) |
30 table.insert(event.form, { | 30 table.insert(event.form, { |
31 name = "muc#roomconfig_lang"; | 31 name = "muc#roomconfig_lang"; |
32 label = "Language tag for Room (e.g. 'en', 'de', 'fr' etc.)"; | 32 label = "Language tag for room (e.g. 'en', 'de', 'fr' etc.)"; |
33 type = "text-single"; | 33 type = "text-single"; |
34 desc = "Indicate the primary language spoken in this room"; | |
34 value = get_language(event.room) or ""; | 35 value = get_language(event.room) or ""; |
35 }); | 36 }); |
36 end | 37 end |
37 | 38 |
38 module:hook("muc-disco#info", add_disco_form); | 39 module:hook("muc-disco#info", add_disco_form); |