summaryrefslogtreecommitdiff
path: root/src/ejabberd_doc.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2020-04-08 18:48:09 +0200
committerBadlop <badlop@process-one.net>2020-04-08 18:48:09 +0200
commitaa0ed370348c37e3f3186f4b36d0a19db02cf888 (patch)
tree4122ef08b108b1ec70406240fd6e492cf1209c15 /src/ejabberd_doc.erl
parentIndicate which ejabberd version is used to produce the page (diff)
Add ejabberd version number to man pages
Diffstat (limited to 'src/ejabberd_doc.erl')
-rw-r--r--src/ejabberd_doc.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ejabberd_doc.erl b/src/ejabberd_doc.erl
index 9a3e57c6..85458880 100644
--- a/src/ejabberd_doc.erl
+++ b/src/ejabberd_doc.erl
@@ -69,10 +69,11 @@ man(Lang) ->
catch _:undef -> []
end
end, ejabberd_config:callback_modules(all)),
+ Version = binary_to_list(ejabberd_option:version()),
Options =
["TOP LEVEL OPTIONS",
"-----------------",
- tr(Lang, ?T("This section describes top level options of ejabberd.")),
+ "This section describes top level options of ejabberd "++Version,
io_lib:nl()] ++
lists:flatmap(
fun(Opt) ->
@@ -92,7 +93,7 @@ man(Lang) ->
"MODULES",
"-------",
"[[modules]]",
- tr(Lang, ?T("This section describes options of all ejabberd modules.")),
+ "This section describes options of all modules in ejabberd "++Version,
io_lib:nl()] ++
lists:flatmap(
fun({M, Descr, DocOpts, Backends, Example}) ->
@@ -111,7 +112,7 @@ man(Lang) ->
"LISTENERS",
"-------",
"[[listeners]]",
- tr(Lang, ?T("This section describes options of all ejabberd listeners.")),
+ "This section describes options of all listeners in ejabberd "++Version,
io_lib:nl(),
"TODO"],
AsciiData =