25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Fix doc content in mod_admin_extra so it can be extracted by make translations

This commit is contained in:
Badlop 2020-04-17 17:13:14 +02:00
parent 101f7a6d63
commit 0355e15a42

View File

@ -1599,41 +1599,40 @@ mod_doc() ->
[?T("This module provides additional administrative commands."), "", [?T("This module provides additional administrative commands."), "",
?T("Details for some commands:"), "", ?T("Details for some commands:"), "",
?T("- 'ban-acount':"), ?T("- 'ban-acount':"),
?T("This command kicks all the connected sessions of the ?T("This command kicks all the connected sessions of the account "
account from the server. It also changes their password to "from the server. It also changes their password to a randomly "
a randomly generated one, so they can't login anymore "generated one, so they can't login anymore unless a server "
unless a server administrator changes their password "administrator changes their password again. It is possible to "
again. It is possible to define the reason of the ban. The "define the reason of the ban. The new password also includes "
new password also includes the reason and the date and time "the reason and the date and time of the ban. For example, if "
of the ban. For example, if this command is called: "this command is called: "
'ejabberdctl vhost example.org ban-account boby \"Spammed "'ejabberdctl vhost example.org ban-account boby \"Spammed rooms\"', "
rooms\"', then the sessions of the local account which JID "then the sessions of the local account which JID is "
is boby@example.org will be kicked, and its password will "boby@example.org will be kicked, and its password will be set "
be set to something like this: "to something like this: "
'BANNED_ACCOUNT--20080425T21:45:07--2176635--Spammed_rooms'"), "'BANNED_ACCOUNT--20080425T21:45:07--2176635--Spammed_rooms'"),
?T("- 'pushroster' (and 'pushroster-all'):"), ?T("- 'pushroster' (and 'pushroster-all'):"),
?T("The roster file must be placed, if using Windows, on ?T("The roster file must be placed, if using Windows, on the "
the directory where you installed ejabberd: C:/Program "directory where you installed ejabberd: "
Files/ejabberd or similar. If you use other Operating "C:/Program Files/ejabberd or similar. If you use other "
System, place the file on the same directory where the "Operating System, place the file on the same directory where "
.beam files are installed. See below an example roster "the .beam files are installed. See below an example roster file."),
file."),
?T("- 'srg-create':"), ?T("- 'srg-create':"),
?T("If you want to put a group Name with blankspaces, use ?T("If you want to put a group Name with blankspaces, use the "
the characters \"\' and \\'\" to define when the Name "characters \"\' and \'\" to define when the Name starts and "
starts and ends. For example: 'ejabberdctl srg-create g1 "ends. For example: "
example.org \"\'Group number 1\\'\" this_is_g1 g1'")], "'ejabberdctl srg-create g1 example.org \"\'Group number 1\'\" this_is_g1 g1'")],
opts => opts =>
[{module_resource, [{module_resource,
#{value => ?T("Resource"), #{value => ?T("Resource"),
desc => desc =>
?T("Indicate the resource that the XMPP stanzas must ?T("Indicate the resource that the XMPP stanzas must use "
use in the FROM or TO JIDs. This is only useful in "in the FROM or TO JIDs. This is only useful in the "
the 'get_vcard*' and 'set_vcard*' commands. The "'get_vcard*' and 'set_vcard*' commands. The default "
default value is 'mod_admin_extra'.")}}], "value is 'mod_admin_extra'.")}}],
example => example =>
[{?T("With this configuration, vCards can only be modified [{?T("With this configuration, vCards can only be modified with "
with mod_admin_extra commands:"), "mod_admin_extra commands:"),
["acl:", ["acl:",
" adminextraresource:", " adminextraresource:",
" - resource: \"modadminextraf8x,31ad\"", " - resource: \"modadminextraf8x,31ad\"",