From aa0ed370348c37e3f3186f4b36d0a19db02cf888 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 8 Apr 2020 18:48:09 +0200 Subject: [PATCH] Add ejabberd version number to man pages --- src/ejabberd_doc.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ejabberd_doc.erl b/src/ejabberd_doc.erl index 9a3e57c68..854588802 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 =