From 949649e3a9e699f61feef195ef7290705c31c310 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 27 Jun 2024 17:20:50 +0200 Subject: [PATCH] Fix typos (thanks to Jerome Sautret) --- src/mod_admin_extra.erl | 12 ++++++------ src/mod_mam.erl | 2 +- src/mod_muc.erl | 2 +- src/mod_offline.erl | 4 ++-- src/mod_push.erl | 2 +- src/mod_stream_mgmt.erl | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 7a592462c..ca99b120e 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -2389,7 +2389,7 @@ mod_doc() -> #{desc => [?T("This module provides additional administrative commands."), "", ?T("Details for some commands:"), "", - ?T("- 'ban-acount':"), + ?T("- 'ban_account':"), ?T("This command kicks all the connected sessions of the account " "from the server. It also changes their password to a randomly " "generated one, so they can't login anymore unless a server " @@ -2402,8 +2402,8 @@ mod_doc() -> "`C:/Program Files/ejabberd` or similar. If you use other " "Operating System, place the file on the same directory where " "the .beam files are installed. See below an example roster file."), - ?T("- 'srg-create':"), - ?T("If you want to put a group Name with blankspaces, use the " + ?T("- 'srg_create':"), + ?T("If you want to put a group Name with blank spaces, use the " "characters \"\' and \'\" to define when the Name starts and " "ends. See an example below.")], example => @@ -2427,6 +2427,6 @@ mod_doc() -> "boby@example.org will be kicked, and its password will be set " "to something like " "'BANNED_ACCOUNT--20080425T21:45:07--2176635--Spammed_rooms'"), - ["ejabberdctl vhost example.org ban-account boby \"Spammed rooms\""]}, - {?T("Call to srg-create using double-quotes and single-quotes:"), - ["ejabberdctl srg-create g1 example.org \"\'Group number 1\'\" this_is_g1 g1"]}]}. + ["ejabberdctl vhost example.org ban_account boby \"Spammed rooms\""]}, + {?T("Call to srg_create using double-quotes and single-quotes:"), + ["ejabberdctl srg_create g1 example.org \"\'Group number 1\'\" this_is_g1 g1"]}]}. diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 77baecac3..ea53dfc85 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -1678,7 +1678,7 @@ mod_doc() -> #{value => "true | false", desc => ?T("When this option is disabled, for each individual " - "subscriber a separa mucsub message is stored. With this " + "subscriber a separate mucsub message is stored. With this " "option enabled, when a user fetches archive virtual " "mucsub, messages are generated from muc archives. " "The default value is 'false'.")}}]}. diff --git a/src/mod_muc.erl b/src/mod_muc.erl index e297d866f..adc80921e 100644 --- a/src/mod_muc.erl +++ b/src/mod_muc.erl @@ -1582,7 +1582,7 @@ mod_doc() -> desc => ?T("This option defines after how many users in the room, " "it is considered overcrowded. When a MUC room is considered " - "overcrowed, presence broadcasts are limited to reduce load, " + "overcrowded, presence broadcasts are limited to reduce load, " "traffic and excessive presence \"storm\" received by participants. " "The default value is '1000'.")}}, {min_message_interval, diff --git a/src/mod_offline.erl b/src/mod_offline.erl index e8c8c52bf..516b3ba4a 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -1225,7 +1225,7 @@ mod_doc() -> {bounce_groupchat, #{value => "true | false", desc => - ?T("This option is use the disable an optimisation that " + ?T("This option is use the disable an optimization that " "avoids bouncing error messages when groupchat messages " "could not be stored as offline. It will reduce chat " "room load, without any drawback in standard use cases. " @@ -1235,7 +1235,7 @@ mod_doc() -> "but the bounce is much more likely to happen in the context " "of MucSub, so it is even more important to have it on " "large MucSub services. The default value is 'false', meaning " - "the optimisation is enabled.")}}, + "the optimization is enabled.")}}, {db_type, #{value => "mnesia | sql", desc => diff --git a/src/mod_push.erl b/src/mod_push.erl index 815539803..f893ed777 100644 --- a/src/mod_push.erl +++ b/src/mod_push.erl @@ -176,7 +176,7 @@ mod_doc() -> "\"app servers\" operated by third-party vendors of " "mobile apps. Those app servers will usually trigger " "notification delivery to the user's mobile device using " - "platform-dependant backend services such as FCM or APNS."), + "platform-dependent backend services such as FCM or APNS."), opts => [{notify_on, #{value => "messages | all", diff --git a/src/mod_stream_mgmt.erl b/src/mod_stream_mgmt.erl index 339eec55b..b125b9e4d 100644 --- a/src/mod_stream_mgmt.erl +++ b/src/mod_stream_mgmt.erl @@ -950,7 +950,7 @@ mod_doc() -> "https://xmpp.org/extensions/xep-0198.html" "[XEP-0198: Stream Management]. This protocol allows " "active management of an XML stream between two XMPP " - "entities, including features for stanza acknowledgements " + "entities, including features for stanza acknowledgments " "and stream resumption."), opts => [{max_ack_queue, @@ -992,7 +992,7 @@ mod_doc() -> {ack_timeout, #{value => "timeout()", desc => - ?T("A time to wait for stanza acknowledgements. " + ?T("A time to wait for stanza acknowledgments. " "Setting it to 'infinity' effectively disables the timeout. " "The default value is '1' minute.")}}, {resend_on_timeout,