Description: Man pages split for weechat-headless
Author: Sébastien Helleu <flashcode@flashtux.org>
Origin: upstream, https://github.com/weechat/weechat/commit/fc584316dab9118ffae43be6a44a96eb19445254
Forwarded: not-needed
Last-Update: 2018-03-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/doc/cs/CMakeLists.txt
+++ b/doc/cs/CMakeLists.txt
@@ -18,29 +18,34 @@
 #
 
 if(ENABLE_MAN)
-  # man page
+  # man page: weechat
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
     COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.adoc
     DEPENDS
     ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.cs.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.cs.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.cs.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.cs.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Building weechat.1 (cs)"
   )
   add_custom_target(doc-man-weechat-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/cs/man1)
 
-  # symbolic link weechat-headless.1 -> weechat.1
+  # man page: weechat-headless
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
-    COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
-    COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+    COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc
     DEPENDS
-    ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.cs.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.cs.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.cs.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.cs.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Creating symbolic link weechat-headless.1 (cs)"
+    COMMENT "Building weechat-headless.1 (cs)"
   )
   add_custom_target(doc-man-weechat-headless-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/cs/man1)
--- /dev/null
+++ b/doc/cs/man_copyright.cs.adoc
@@ -0,0 +1,13 @@
+WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v
+souboru AUTHORS.adoc).
+
+Copyright (C) 2003-2018 {author}
+
+WeeChat is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+Prosím přečtěte si soubor COPYING pro více informací.
+
+Web: https://weechat.org/
--- /dev/null
+++ b/doc/cs/man_files.cs.adoc
@@ -0,0 +1,74 @@
+$HOME/.weechat/weechat.conf::
+    hlavní konfigurační soubor WeeChatu
+
+$HOME/.weechat/plugins.conf::
+    soubor konfigurace pluginů
+
+$HOME/.weechat/sec.conf::
+    konfigurační soubor s chráněnými daty
+
+$HOME/.weechat/alias.conf::
+    configurační soubor pro _alias_ plugin
+
+$HOME/.weechat/aspell.conf::
+    konfigurační soubor pro _aspell_ plugin
+
+$HOME/.weechat/buflist.conf::
+    konfigurační soubor pro _buflist_ plugin
+
+$HOME/.weechat/charset.conf::
+    konfigurační soubor pro _charset_ plugin
+
+$HOME/.weechat/exec.conf::
+    konfigurační soubor pro _exec_ plugin
+
+$HOME/.weechat/fifo.conf::
+    konfigurační soubor pro _fifo_ plugin
+
+$HOME/.weechat/fset.conf::
+    konfigurační soubor pro _fset_ plugin
+
+$HOME/.weechat/guile.conf::
+    konfigurační soubor pro _guile_ plugin
+
+$HOME/.weechat/irc.conf::
+    konfigurační soubor pro _irc_ plugin
+
+$HOME/.weechat/javascript.conf::
+    konfigurační soubor pro _javascript_ plugin
+
+$HOME/.weechat/logger.conf::
+    konfigurační soubor pro _logger_ plugin
+
+$HOME/.weechat/lua.conf::
+    konfigurační soubor pro _lua_ plugin
+
+$HOME/.weechat/perl.conf::
+    konfigurační soubor pro _perl_ plugin
+
+$HOME/.weechat/php.conf::
+    konfigurační soubor pro _php_ plugin
+
+$HOME/.weechat/python.conf::
+    konfigurační soubor pro _python_ plugin
+
+$HOME/.weechat/relay.conf::
+    konfigurační soubor pro _relay_ plugin
+
+$HOME/.weechat/ruby.conf::
+    konfigurační soubor pro _ruby_ plugin
+
+$HOME/.weechat/script.conf::
+    konfigurační soubor pro _script_ plugin
+
+$HOME/.weechat/tcl.conf::
+    konfigurační soubor pro _tcl_ plugin
+
+$HOME/.weechat/trigger.conf::
+    konfigurační soubor pro _trigger_ plugin
+
+$HOME/.weechat/xfer.conf::
+    konfigurační soubor pro _xfer_ plugin
+
+$HOME/.weechat/weechat.log::
+    soubor záznamů WeeChatu
--- /dev/null
+++ b/doc/cs/man_plugin_options.cs.adoc
@@ -0,0 +1,14 @@
+Pro kompletní dokumentaci nastavení pluginů a jejich volby podívejte se na
+https://weechat.org/doc[WeeChat user's guide].
+
+S irc pluginem se můžete doččasně připojit na server s URL jako:
+
+    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
+
+K připojení na IRC kanál Weechatu pro podporu s přezdívkou "mynick":
+
+    irc://mynick@chat.freenode.net/#weechat
+
+IPv6 adresa může být uzavřena do hranatých závorek k přidání portu, například:
+
+    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
--- /dev/null
+++ b/doc/cs/weechat-headless.1.cs.adoc
@@ -0,0 +1,63 @@
+// TRANSLATION MISSING
+= weechat-headless(1)
+:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
+:lang: cs
+// TRANSLATION MISSING
+:man manual: WeeChat Manual
+:man source: WeeChat {revnumber}
+
+== JMÉNO
+
+weechat-headless - the extensible chat client (headless version)
+
+== PŘEHLED
+
+[verse]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+*weechat-headless* [-c|--colors]
+*weechat-headless* [-h|--help]
+*weechat-headless* [-l|--license]
+*weechat-headless* [-v|--version]
+
+== POPIS
+
+WeeChat (Wee Enhanced Environment for Chat) je svobodný chatovací klient.
+Je lehký, plně konfigurovatelný a lehce rozšiřitelný pomocí pluginů a scriptů
+v obvyklých sciptovacích jazycích.
+
+// TRANSLATION MISSING
+The command *weechat-headless* runs WeeChat in a headless mode (no interface).
+It can be used for tests or to daemonize WeeChat with the option "--daemon".
+
+
+== VOLBY
+
+include::cmdline_options.cs.adoc[]
+
+== VOLBY PLUGINŮ
+
+include::man_plugin_options.cs.adoc[]
+
+== SOUBORY
+
+include::man_files.cs.adoc[]
+
+// TRANSLATION MISSING
+== SEE ALSO
+
+*weechat*(1)
+
+== AUTOŘI
+
+Tato manuálová stránka byla napsána {author}.
+Tato manuálová stránka byla přeložena Ondřejem Súkupem.
+
+== COPYRIGHT
+
+include::man_copyright.cs.adoc[]
+
+== PODPORA / HLÁŠENÍ CHYB
+
+Pro pomoc nebo hlášení chyb https://weechat.org/dev/support
--- a/doc/cs/weechat.1.cs.adoc
+++ b/doc/cs/weechat.1.cs.adoc
@@ -20,116 +20,28 @@
 *weechat* [-l|--license]
 *weechat* [-v|--version]
 
-*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
-
 == POPIS
 
 WeeChat (Wee Enhanced Environment for Chat) je svobodný chatovací klient.
 Je lehký, plně konfigurovatelný a lehce rozšiřitelný pomocí pluginů a scriptů
 v obvyklých sciptovacích jazycích.
 
-// TRANSLATION MISSING
-The command *weechat-headless* runs WeeChat in a headless mode (no interface).
-It can be used for tests or to daemonize WeeChat with the option "--daemon".
-
-
 == VOLBY
 
 include::cmdline_options.cs.adoc[]
 
 == VOLBY PLUGINŮ
 
-Pro kompletní dokumentaci nastavení pluginů a jejich volby podívejte se na
-https://weechat.org/doc[WeeChat user's guide].
-
-S irc pluginem se můžete doččasně připojit na server s URL jako:
-
-    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
-
-K připojení na IRC kanál Weechatu pro podporu s přezdívkou "mynick":
-
-    irc://mynick@chat.freenode.net/#weechat
-
-IPv6 adresa může být uzavřena do hranatých závorek k přidání portu, například:
-
-    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
+include::man_plugin_options.cs.adoc[]
 
 == SOUBORY
 
-$HOME/.weechat/weechat.conf::
-    hlavní konfigurační soubor WeeChatu
-
-$HOME/.weechat/plugins.conf::
-    soubor konfigurace pluginů
-
-$HOME/.weechat/sec.conf::
-    konfigurační soubor s chráněnými daty
-
-$HOME/.weechat/alias.conf::
-    configurační soubor pro _alias_ plugin
-
-$HOME/.weechat/aspell.conf::
-    konfigurační soubor pro _aspell_ plugin
-
-$HOME/.weechat/buflist.conf::
-    konfigurační soubor pro _buflist_ plugin
-
-$HOME/.weechat/charset.conf::
-    konfigurační soubor pro _charset_ plugin
-
-$HOME/.weechat/exec.conf::
-    konfigurační soubor pro _exec_ plugin
-
-$HOME/.weechat/fifo.conf::
-    konfigurační soubor pro _fifo_ plugin
-
-$HOME/.weechat/fset.conf::
-    konfigurační soubor pro _fset_ plugin
+include::man_files.cs.adoc[]
 
-$HOME/.weechat/guile.conf::
-    konfigurační soubor pro _guile_ plugin
-
-$HOME/.weechat/irc.conf::
-    konfigurační soubor pro _irc_ plugin
-
-$HOME/.weechat/javascript.conf::
-    konfigurační soubor pro _javascript_ plugin
-
-$HOME/.weechat/logger.conf::
-    konfigurační soubor pro _logger_ plugin
-
-$HOME/.weechat/lua.conf::
-    konfigurační soubor pro _lua_ plugin
-
-$HOME/.weechat/perl.conf::
-    konfigurační soubor pro _perl_ plugin
-
-$HOME/.weechat/php.conf::
-    konfigurační soubor pro _php_ plugin
-
-$HOME/.weechat/python.conf::
-    konfigurační soubor pro _python_ plugin
-
-$HOME/.weechat/relay.conf::
-    konfigurační soubor pro _relay_ plugin
-
-$HOME/.weechat/ruby.conf::
-    konfigurační soubor pro _ruby_ plugin
-
-$HOME/.weechat/script.conf::
-    konfigurační soubor pro _script_ plugin
-
-$HOME/.weechat/tcl.conf::
-    konfigurační soubor pro _tcl_ plugin
-
-$HOME/.weechat/trigger.conf::
-    konfigurační soubor pro _trigger_ plugin
-
-$HOME/.weechat/xfer.conf::
-    konfigurační soubor pro _xfer_ plugin
+// TRANSLATION MISSING
+== SEE ALSO
 
-$HOME/.weechat/weechat.log::
-    soubor záznamů WeeChatu
+*weechat-headless*(1)
 
 == AUTOŘI
 
@@ -138,19 +50,7 @@
 
 == COPYRIGHT
 
-WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v
-souboru AUTHORS.adoc).
-
-Copyright (C) 2003-2018 {author}
-
-WeeChat is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
-(at your option) any later version.
-
-Prosím přečtěte si soubor COPYING pro více informací.
-
-Web: https://weechat.org/
+include::man_copyright.cs.adoc[]
 
 == PODPORA / HLÁŠENÍ CHYB
 
--- a/doc/de/CMakeLists.txt
+++ b/doc/de/CMakeLists.txt
@@ -18,29 +18,34 @@
 #
 
 if(ENABLE_MAN)
-  # man page
+  # man page: weechat
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
     COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.adoc
     DEPENDS
     ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.de.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.de.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.de.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.de.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Building weechat.1 (de)"
   )
   add_custom_target(doc-man-weechat-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/de/man1)
 
-  # symbolic link weechat-headless.1 -> weechat.1
+  # man page: weechat-headless
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
-    COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
-    COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+    COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc
     DEPENDS
-    ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.de.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.de.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.de.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.de.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Creating symbolic link weechat-headless.1 (de)"
+    COMMENT "Building weechat-headless.1 (de)"
   )
   add_custom_target(doc-man-weechat-headless-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/de/man1)
--- /dev/null
+++ b/doc/de/man_copyright.de.adoc
@@ -0,0 +1,13 @@
+WeeChat wird programmiert von Sébastien Helleu und weiteren Beteiligten (eine vollständige Auflistung
+findet man in der AUTHORS.adoc Datei).
+
+Copyright (C) 2003-2018 {author}
+
+WeeChat is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+Please read the COPYING file for more information.
+
+Web: https://weechat.org/
--- /dev/null
+++ b/doc/de/man_files.de.adoc
@@ -0,0 +1,74 @@
+$HOME/.weechat/weechat.conf::
+    WeeChats Konfigurationsdatei
+
+$HOME/.weechat/plugins.conf::
+    Konfigurationsdatei für Erweiterungen
+
+$HOME/.weechat/sec.conf::
+    Konfigurationsdatei mit schutzwürdigen Daten
+
+$HOME/.weechat/alias.conf::
+    Konfigurationsdatei für _alias_ Erweiterung
+
+$HOME/.weechat/aspell.conf::
+    Konfigurationsdatei für _aspell_ Erweiterung
+
+$HOME/.weechat/buflist.conf::
+    Konfigurationsdatei für _buflist_ Erweiterung
+
+$HOME/.weechat/charset.conf::
+    Konfigurationsdatei für _charset_ Erweiterung
+
+$HOME/.weechat/exec.conf::
+    Konfigurationsdatei für _exec_ Erweiterung
+
+$HOME/.weechat/fifo.conf::
+    Konfigurationsdatei für _fifo_ Erweiterung
+
+$HOME/.weechat/fset.conf::
+    Konfigurationsdatei für _fset_ Erweiterung
+
+$HOME/.weechat/guile.conf::
+    Konfigurationsdatei für _guile_ Erweiterung
+
+$HOME/.weechat/irc.conf::
+    Konfigurationsdatei für _irc_ Erweiterung
+
+$HOME/.weechat/javascript.conf::
+    Konfigurationsdatei für _javascript_ Erweiterung
+
+$HOME/.weechat/logger.conf::
+    Konfigurationsdatei für _logger_ Erweiterung
+
+$HOME/.weechat/lua.conf::
+    Konfigurationsdatei für _lua_ Erweiterung
+
+$HOME/.weechat/perl.conf::
+    Konfigurationsdatei für _perl_ Erweiterung
+
+$HOME/.weechat/php.conf::
+    Konfigurationsdatei für _php_ Erweiterung
+
+$HOME/.weechat/python.conf::
+    Konfigurationsdatei für _python_ Erweiterung
+
+$HOME/.weechat/relay.conf::
+    Konfigurationsdatei für _relay_ Erweiterung
+
+$HOME/.weechat/ruby.conf::
+    Konfigurationsdatei für _ruby_ Erweiterung
+
+$HOME/.weechat/script.conf::
+    Konfigurationsdatei für _script_ Erweiterung
+
+$HOME/.weechat/tcl.conf::
+    Konfigurationsdatei für _tcl_ Erweiterung
+
+$HOME/.weechat/trigger.conf::
+    Konfigurationsdatei für _trigger_ Erweiterung
+
+$HOME/.weechat/xfer.conf::
+    Konfigurationsdatei für _xfer_ Erweiterung
+
+$HOME/.weechat/weechat.log::
+    WeeChat Protokolldatei
--- /dev/null
+++ b/doc/de/man_plugin_options.de.adoc
@@ -0,0 +1,15 @@
+Um eine vollständige Dokumentation der Optionen zu erhalten, siehe
+https://weechat.org/doc[WeeChat user's guide].
+
+Mittels der IRC Erweiterung kann man sich zu einen temporären Server verbinden lassen,
+indem man eine URL verwendet:
+
+    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
+
+Um dem WeeChat IRC Support-Channel, mit dem Nick "mynick", beizutreten:
+
+    irc://mynick@chat.freenode.net/#weechat
+
+Um eine IPv6 Adresse zu nutzen, muss diese in eckige Klammern gesetzt werden:
+
+    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
--- /dev/null
+++ b/doc/de/weechat-headless.1.de.adoc
@@ -0,0 +1,62 @@
+// TRANSLATION MISSING
+= weechat-headless(1)
+:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
+:lang: de
+:man manual: WeeChat Manual
+:man source: WeeChat {revnumber}
+
+== NAME
+
+weechat-headless - der erweiterbare Chat Client (headless version)
+
+== SYNOPSIS
+
+[verse]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+*weechat-headless* [-c|--colors]
+*weechat-headless* [-h|--help]
+*weechat-headless* [-l|--license]
+*weechat-headless* [-v|--version]
+
+== BESCHREIBUNG
+
+WeeChat (Wee Enhanced Environment for Chat) ist ein freier, schneller und
+schlanker Chat-Client der für unterschiedliche Betriebssysteme entwickelt wird.
+Durch Skripten ist das Hauptprogramm äußerst flexibel und erweiterbar.
+
+Mit dem Befehl *weechat-headless* kann man WeeChat ohne Benutzeroberfläche ausführen.
+Dies kann zu Testzwecken oder dazu genutzt werden um WeeChat in einem Deamon-Modus
+zu starten. Dazu nutzt man die Option "--daemon".
+
+== OPTIONEN
+
+include::cmdline_options.de.adoc[]
+
+== OPTIONEN von ERWEITERUNGEN
+
+include::man_plugin_options.de.adoc[]
+
+== DATEIEN
+
+include::man_files.de.adoc[]
+
+// TRANSLATION MISSING
+== SEE ALSO
+
+*weechat*(1)
+
+== AUTOREN
+
+Diese manpage wurde von {author} geschrieben.
+
+Übersetzt von Nils Görs.
+
+== COPYRIGHT
+
+include::man_copyright.de.adoc[]
+
+== SUPPORT / FEHLER MELDEN
+
+für Hilfe oder um einen Fehler zu melden: https://weechat.org/dev/support
--- a/doc/de/weechat.1.de.adoc
+++ b/doc/de/weechat.1.de.adoc
@@ -19,116 +19,28 @@
 *weechat* [-l|--license]
 *weechat* [-v|--version]
 
-*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
-
 == BESCHREIBUNG
 
 WeeChat (Wee Enhanced Environment for Chat) ist ein freier, schneller und
 schlanker Chat-Client der für unterschiedliche Betriebssysteme entwickelt wird.
 Durch Skripten ist das Hauptprogramm äußerst flexibel und erweiterbar.
 
-Mit dem Befehl *weechat-headless* kann man WeeChat ohne Benutzeroberfläche ausführen.
-Dies kann zu Testzwecken oder dazu genutzt werden um WeeChat in einem Deamon-Modus
-zu starten. Dazu nutzt man die Option "--daemon".
-
 == OPTIONEN
 
 include::cmdline_options.de.adoc[]
 
 == OPTIONEN von ERWEITERUNGEN
 
-Um eine vollständige Dokumentation der Optionen zu erhalten, siehe
-https://weechat.org/doc[WeeChat user's guide].
-
-Mittels der IRC Erweiterung kann man sich zu einen temporären Server verbinden lassen,
-indem man eine URL verwendet:
-
-    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
-
-Um dem WeeChat IRC Support-Channel, mit dem Nick "mynick", beizutreten:
-
-    irc://mynick@chat.freenode.net/#weechat
-
-Um eine IPv6 Adresse zu nutzen, muss diese in eckige Klammern gesetzt werden:
-
-    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
+include::man_plugin_options.de.adoc[]
 
 == DATEIEN
 
-$HOME/.weechat/weechat.conf::
-    WeeChats Konfigurationsdatei
-
-$HOME/.weechat/plugins.conf::
-    Konfigurationsdatei für Erweiterungen
-
-$HOME/.weechat/sec.conf::
-    Konfigurationsdatei mit schutzwürdigen Daten
-
-$HOME/.weechat/alias.conf::
-    Konfigurationsdatei für _alias_ Erweiterung
-
-$HOME/.weechat/aspell.conf::
-    Konfigurationsdatei für _aspell_ Erweiterung
-
-$HOME/.weechat/buflist.conf::
-    Konfigurationsdatei für _buflist_ Erweiterung
-
-$HOME/.weechat/charset.conf::
-    Konfigurationsdatei für _charset_ Erweiterung
-
-$HOME/.weechat/exec.conf::
-    Konfigurationsdatei für _exec_ Erweiterung
-
-$HOME/.weechat/fifo.conf::
-    Konfigurationsdatei für _fifo_ Erweiterung
-
-$HOME/.weechat/fset.conf::
-    Konfigurationsdatei für _fset_ Erweiterung
+include::man_files.de.adoc[]
 
-$HOME/.weechat/guile.conf::
-    Konfigurationsdatei für _guile_ Erweiterung
+// TRANSLATION MISSING
+== SEE ALSO
 
-$HOME/.weechat/irc.conf::
-    Konfigurationsdatei für _irc_ Erweiterung
-
-$HOME/.weechat/javascript.conf::
-    Konfigurationsdatei für _javascript_ Erweiterung
-
-$HOME/.weechat/logger.conf::
-    Konfigurationsdatei für _logger_ Erweiterung
-
-$HOME/.weechat/lua.conf::
-    Konfigurationsdatei für _lua_ Erweiterung
-
-$HOME/.weechat/perl.conf::
-    Konfigurationsdatei für _perl_ Erweiterung
-
-$HOME/.weechat/php.conf::
-    Konfigurationsdatei für _php_ Erweiterung
-
-$HOME/.weechat/python.conf::
-    Konfigurationsdatei für _python_ Erweiterung
-
-$HOME/.weechat/relay.conf::
-    Konfigurationsdatei für _relay_ Erweiterung
-
-$HOME/.weechat/ruby.conf::
-    Konfigurationsdatei für _ruby_ Erweiterung
-
-$HOME/.weechat/script.conf::
-    Konfigurationsdatei für _script_ Erweiterung
-
-$HOME/.weechat/tcl.conf::
-    Konfigurationsdatei für _tcl_ Erweiterung
-
-$HOME/.weechat/trigger.conf::
-    Konfigurationsdatei für _trigger_ Erweiterung
-
-$HOME/.weechat/xfer.conf::
-    Konfigurationsdatei für _xfer_ Erweiterung
-
-$HOME/.weechat/weechat.log::
-    WeeChat Protokolldatei
+*weechat-headless*(1)
 
 == AUTOREN
 
@@ -138,19 +50,7 @@
 
 == COPYRIGHT
 
-WeeChat wird programmiert von Sébastien Helleu und weiteren Beteiligten (eine vollständige Auflistung
-findet man in der AUTHORS.adoc Datei).
-
-Copyright (C) 2003-2018 {author}
-
-WeeChat is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
-(at your option) any later version.
-
-Please read the COPYING file for more information.
-
-Web: https://weechat.org/
+include::man_copyright.de.adoc[]
 
 == SUPPORT / FEHLER MELDEN
 
--- a/doc/en/CMakeLists.txt
+++ b/doc/en/CMakeLists.txt
@@ -18,29 +18,34 @@
 #
 
 if(ENABLE_MAN)
-  # man page
+  # man page: weechat
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
     COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.en.adoc
     DEPENDS
     ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.en.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.en.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.en.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.en.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.en.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Building weechat.1 (en)"
   )
   add_custom_target(doc-man-weechat-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/man1)
 
-  # symbolic link weechat-headless.1 -> weechat.1
+  # man page: weechat-headless
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
-    COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
-    COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+    COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.en.adoc
     DEPENDS
-    ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.en.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.en.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.en.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.en.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.en.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.en.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Creating symbolic link weechat-headless.1 (en)"
+    COMMENT "Building weechat-headless.1 (en)"
   )
   add_custom_target(doc-man-weechat-headless-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/man1)
--- /dev/null
+++ b/doc/en/man_copyright.en.adoc
@@ -0,0 +1,13 @@
+WeeChat is written by Sébastien Helleu and contributors (complete list is in
+the AUTHORS.adoc file).
+
+Copyright (C) 2003-2018 {author}
+
+WeeChat is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+Please read the COPYING file for more information.
+
+Web: https://weechat.org/
--- /dev/null
+++ b/doc/en/man_files.en.adoc
@@ -0,0 +1,74 @@
+$HOME/.weechat/weechat.conf::
+    main WeeChat configuration file
+
+$HOME/.weechat/plugins.conf::
+    plugins configuration file
+
+$HOME/.weechat/sec.conf::
+    configuration file with secured data
+
+$HOME/.weechat/alias.conf::
+    configuration file for _alias_ plugin
+
+$HOME/.weechat/aspell.conf::
+    configuration file for _aspell_ plugin
+
+$HOME/.weechat/buflist.conf::
+    configuration file for _buflist_ plugin
+
+$HOME/.weechat/charset.conf::
+    configuration file for _charset_ plugin
+
+$HOME/.weechat/exec.conf::
+    configuration file for _exec_ plugin
+
+$HOME/.weechat/fifo.conf::
+    configuration file for _fifo_ plugin
+
+$HOME/.weechat/fset.conf::
+    configuration file for _fset_ plugin
+
+$HOME/.weechat/guile.conf::
+    configuration file for _guile_ plugin
+
+$HOME/.weechat/irc.conf::
+    configuration file for _irc_ plugin
+
+$HOME/.weechat/javascript.conf::
+    configuration file for _javascript_ plugin
+
+$HOME/.weechat/logger.conf::
+    configuration file for _logger_ plugin
+
+$HOME/.weechat/lua.conf::
+    configuration file for _lua_ plugin
+
+$HOME/.weechat/perl.conf::
+    configuration file for _perl_ plugin
+
+$HOME/.weechat/php.conf::
+    configuration file for _php_ plugin
+
+$HOME/.weechat/python.conf::
+    configuration file for _python_ plugin
+
+$HOME/.weechat/relay.conf::
+    configuration file for _relay_ plugin
+
+$HOME/.weechat/ruby.conf::
+    configuration file for _ruby_ plugin
+
+$HOME/.weechat/script.conf::
+    configuration file for _script_ plugin
+
+$HOME/.weechat/tcl.conf::
+    configuration file for _tcl_ plugin
+
+$HOME/.weechat/trigger.conf::
+    configuration file for _trigger_ plugin
+
+$HOME/.weechat/xfer.conf::
+    configuration file for _xfer_ plugin
+
+$HOME/.weechat/weechat.log::
+    WeeChat log file
--- /dev/null
+++ b/doc/en/man_plugin_options.en.adoc
@@ -0,0 +1,15 @@
+For complete doc on plugin options, please look at plugins documentation in
+https://weechat.org/doc[WeeChat user's guide].
+
+With irc plugin, you can connect to temporary server with an URL like:
+
+    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
+
+To join WeeChat IRC channel support with nick "mynick":
+
+    irc://mynick@chat.freenode.net/#weechat
+
+IPv6 address can be enclosed in brackets to add a port after address, for
+example:
+
+    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
--- /dev/null
+++ b/doc/en/weechat-headless.1.en.adoc
@@ -0,0 +1,57 @@
+= weechat-headless(1)
+:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
+:lang: en
+:man manual: WeeChat Manual
+:man source: WeeChat {revnumber}
+
+== NAME
+
+weechat-headless - the extensible chat client (headless version)
+
+== SYNOPSIS
+
+[verse]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+*weechat-headless* [-c|--colors]
+*weechat-headless* [-h|--help]
+*weechat-headless* [-l|--license]
+*weechat-headless* [-v|--version]
+
+== DESCRIPTION
+
+WeeChat (Wee Enhanced Environment for Chat) is a free chat client, fast and
+light, designed for many operating systems.
+It is highly customizable and extensible with scripts.
+
+The command *weechat-headless* runs WeeChat in a headless mode (no interface).
+It can be used for tests or to daemonize WeeChat with the option "--daemon".
+
+== OPTIONS
+
+include::cmdline_options.en.adoc[]
+
+== PLUGIN OPTIONS
+
+include::man_plugin_options.en.adoc[]
+
+== FILES
+
+include::man_files.en.adoc[]
+
+== SEE ALSO
+
+*weechat*(1)
+
+== AUTHORS
+
+This manpage was written by {author}.
+
+== COPYRIGHT
+
+include::man_copyright.en.adoc[]
+
+== SUPPORT / REPORTING BUGS
+
+For help or a bug report: https://weechat.org/dev/support
--- a/doc/en/weechat.1.en.adoc
+++ b/doc/en/weechat.1.en.adoc
@@ -19,115 +19,27 @@
 *weechat* [-l|--license]
 *weechat* [-v|--version]
 
-*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
-
 == DESCRIPTION
 
 WeeChat (Wee Enhanced Environment for Chat) is a free chat client, fast and
 light, designed for many operating systems.
 It is highly customizable and extensible with scripts.
 
-The command *weechat-headless* runs WeeChat in a headless mode (no interface).
-It can be used for tests or to daemonize WeeChat with the option "--daemon".
-
 == OPTIONS
 
 include::cmdline_options.en.adoc[]
 
 == PLUGIN OPTIONS
 
-For complete doc on plugin options, please look at plugins documentation in
-https://weechat.org/doc[WeeChat user's guide].
-
-With irc plugin, you can connect to temporary server with an URL like:
-
-    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
-
-To join WeeChat IRC channel support with nick "mynick":
-
-    irc://mynick@chat.freenode.net/#weechat
-
-IPv6 address can be enclosed in brackets to add a port after address, for
-example:
-
-    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
+include::man_plugin_options.en.adoc[]
 
 == FILES
 
-$HOME/.weechat/weechat.conf::
-    main WeeChat configuration file
-
-$HOME/.weechat/plugins.conf::
-    plugins configuration file
-
-$HOME/.weechat/sec.conf::
-    configuration file with secured data
-
-$HOME/.weechat/alias.conf::
-    configuration file for _alias_ plugin
-
-$HOME/.weechat/aspell.conf::
-    configuration file for _aspell_ plugin
-
-$HOME/.weechat/buflist.conf::
-    configuration file for _buflist_ plugin
-
-$HOME/.weechat/charset.conf::
-    configuration file for _charset_ plugin
-
-$HOME/.weechat/exec.conf::
-    configuration file for _exec_ plugin
-
-$HOME/.weechat/fifo.conf::
-    configuration file for _fifo_ plugin
-
-$HOME/.weechat/fset.conf::
-    configuration file for _fset_ plugin
+include::man_files.en.adoc[]
 
-$HOME/.weechat/guile.conf::
-    configuration file for _guile_ plugin
+== SEE ALSO
 
-$HOME/.weechat/irc.conf::
-    configuration file for _irc_ plugin
-
-$HOME/.weechat/javascript.conf::
-    configuration file for _javascript_ plugin
-
-$HOME/.weechat/logger.conf::
-    configuration file for _logger_ plugin
-
-$HOME/.weechat/lua.conf::
-    configuration file for _lua_ plugin
-
-$HOME/.weechat/perl.conf::
-    configuration file for _perl_ plugin
-
-$HOME/.weechat/php.conf::
-    configuration file for _php_ plugin
-
-$HOME/.weechat/python.conf::
-    configuration file for _python_ plugin
-
-$HOME/.weechat/relay.conf::
-    configuration file for _relay_ plugin
-
-$HOME/.weechat/ruby.conf::
-    configuration file for _ruby_ plugin
-
-$HOME/.weechat/script.conf::
-    configuration file for _script_ plugin
-
-$HOME/.weechat/tcl.conf::
-    configuration file for _tcl_ plugin
-
-$HOME/.weechat/trigger.conf::
-    configuration file for _trigger_ plugin
-
-$HOME/.weechat/xfer.conf::
-    configuration file for _xfer_ plugin
-
-$HOME/.weechat/weechat.log::
-    WeeChat log file
+*weechat-headless*(1)
 
 == AUTHORS
 
@@ -135,19 +47,7 @@
 
 == COPYRIGHT
 
-WeeChat is written by Sébastien Helleu and contributors (complete list is in
-the AUTHORS.adoc file).
-
-Copyright (C) 2003-2018 {author}
-
-WeeChat is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
-(at your option) any later version.
-
-Please read the COPYING file for more information.
-
-Web: https://weechat.org/
+include::man_copyright.en.adoc[]
 
 == SUPPORT / REPORTING BUGS
 
--- a/doc/fr/CMakeLists.txt
+++ b/doc/fr/CMakeLists.txt
@@ -18,29 +18,34 @@
 #
 
 if(ENABLE_MAN)
-  # man page
+  # man page: weechat
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
     COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.fr.adoc
     DEPENDS
     ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.fr.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.fr.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.fr.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.fr.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.fr.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Building weechat.1 (fr)"
   )
   add_custom_target(doc-man-weechat-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/fr/man1)
 
-  # symbolic link weechat-headless.1 -> weechat.1
+  # man page: weechat-headless
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
-    COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
-    COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+    COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc
     DEPENDS
-    ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.fr.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.fr.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.fr.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.fr.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.fr.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Creating symbolic link weechat-headless.1 (fr)"
+    COMMENT "Building weechat-headless.1 (fr)"
   )
   add_custom_target(doc-man-weechat-headless-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/fr/man1)
--- /dev/null
+++ b/doc/fr/man_copyright.fr.adoc
@@ -0,0 +1,13 @@
+WeeChat est écrit par Sébastien Helleu et des contributeurs (la liste complète
+est dans le fichier AUTHORS.adoc).
+
+Copyright (C) 2003-2018 {author}
+
+WeeChat est un logiciel libre; vous pouvez le redistribuer et/ou le modifier
+sous les termes de la GNU General Public License telle que publiée par la
+Free Software Foundation; soit la version 3 de la licence, ou (selon votre
+choix) toute version ultérieure.
+
+Merci de consulter le fichier COPYING pour plus d'informations.
+
+Site web : https://weechat.org/
--- /dev/null
+++ b/doc/fr/man_files.fr.adoc
@@ -0,0 +1,74 @@
+$HOME/.weechat/weechat.conf::
+    fichier de configuration principal de WeeChat
+
+$HOME/.weechat/plugins.conf::
+    fichier de configuration des extensions
+
+$HOME/.weechat/sec.conf::
+    fichier de configuration avec les données sécurisées
+
+$HOME/.weechat/alias.conf::
+    fichier de configuration pour l'extension _alias_
+
+$HOME/.weechat/aspell.conf::
+    fichier de configuration pour l'extension _aspell_
+
+$HOME/.weechat/buflist.conf::
+    fichier de configuration pour l'extension _buflist_
+
+$HOME/.weechat/charset.conf::
+    fichier de configuration pour l'extension _charset_
+
+$HOME/.weechat/exec.conf::
+    fichier de configuration pour l'extension _exec_
+
+$HOME/.weechat/fifo.conf::
+    fichier de configuration pour l'extension _fifo_
+
+$HOME/.weechat/fset.conf::
+    fichier de configuration pour l'extension _fset_
+
+$HOME/.weechat/guile.conf::
+    fichier de configuration pour l'extension _guile_
+
+$HOME/.weechat/irc.conf::
+    fichier de configuration pour l'extension _irc_
+
+$HOME/.weechat/javascript.conf::
+    fichier de configuration pour l'extension _javascript_
+
+$HOME/.weechat/logger.conf::
+    fichier de configuration pour l'extension _logger_
+
+$HOME/.weechat/lua.conf::
+    fichier de configuration pour l'extension _lua_
+
+$HOME/.weechat/perl.conf::
+    fichier de configuration pour l'extension _perl_
+
+$HOME/.weechat/php.conf::
+    fichier de configuration pour l'extension _php_
+
+$HOME/.weechat/python.conf::
+    fichier de configuration pour l'extension _python_
+
+$HOME/.weechat/relay.conf::
+    fichier de configuration pour l'extension _relay_
+
+$HOME/.weechat/ruby.conf::
+    fichier de configuration pour l'extension _ruby_
+
+$HOME/.weechat/script.conf::
+    fichier de configuration pour l'extension _script_
+
+$HOME/.weechat/tcl.conf::
+    fichier de configuration pour l'extension _tcl_
+
+$HOME/.weechat/trigger.conf::
+    fichier de configuration pour l'extension _trigger_
+
+$HOME/.weechat/xfer.conf::
+    fichier de configuration pour l'extension _xfer_
+
+$HOME/.weechat/weechat.log::
+    fichier de log de WeeChat
--- /dev/null
+++ b/doc/fr/man_plugin_options.fr.adoc
@@ -0,0 +1,17 @@
+Pour une documentation complète sur les options des extensions, merci de
+consulter la documentation des extensions dans le
+https://weechat.org/doc[guide utilisateur de WeeChat].
+
+Avec l'extension irc, vous pouvez vous connecter à un serveur de manière
+temporaire avec une URL, comme ceci :
+
+    irc[6][s]://[[pseudo][:motdepasse]@]serveur[:port][/#canal1[,#canal2...]]
+
+Pour rejoindre le canal IRC de support WeeChat avec le pseudo "monpseudo" :
+
+    irc://monpseudo@chat.freenode.net/#weechat
+
+Les adresses IPv6 peuvent être entourées par des crochets pour ajouter un port
+après, par exemple :
+
+    irc://monpseudo@[2001:db8:0:85a3::ac1f:8001]:6668/#test
--- /dev/null
+++ b/doc/fr/weechat-headless.1.fr.adoc
@@ -0,0 +1,58 @@
+= weechat-headless(1)
+:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
+:lang: fr
+:man manual: Manuel WeeChat
+:man source: WeeChat {revnumber}
+
+== NOM
+
+weechat-headless - le client de discussion extensible (version sans interface)
+
+== SYNOPSIS
+
+[verse]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+*weechat-headless* [-c|--colors]
+*weechat-headless* [-h|--help]
+*weechat-headless* [-l|--license]
+*weechat-headless* [-v|--version]
+
+== DESCRIPTION
+
+WeeChat (Wee Enhanced Environment for Chat) est un client de discussion libre,
+rapide et léger, conçu pour différents systèmes d'exploitation.
+Il est hautement paramétrable et extensible avec des scripts.
+
+La commande *weechat-headless* lance WeeChat en mode « headless » (sans interface).
+Elle peut être utilisée pour des tests ou lancer WeeChat en daemon
+avec l'option "--daemon".
+
+== OPTIONS
+
+include::cmdline_options.fr.adoc[]
+
+== OPTIONS D'EXTENSION
+
+include::man_plugin_options.fr.adoc[]
+
+== FICHIERS
+
+include::man_files.fr.adoc[]
+
+== VOIR AUSSI
+
+*weechat*(1)
+
+== AUTEURS
+
+Cette page de manuel a été écrite par {author}.
+
+== COPYRIGHT
+
+include::man_copyright.fr.adoc[]
+
+== SUPPORT / SIGNALER DES BUGS
+
+Pour de l'aide ou signaler un bug : https://weechat.org/dev/support
--- a/doc/fr/weechat.1.fr.adoc
+++ b/doc/fr/weechat.1.fr.adoc
@@ -19,118 +19,27 @@
 *weechat* [-l|--license]
 *weechat* [-v|--version]
 
-*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
-
 == DESCRIPTION
 
 WeeChat (Wee Enhanced Environment for Chat) est un client de discussion libre,
 rapide et léger, conçu pour différents systèmes d'exploitation.
 Il est hautement paramétrable et extensible avec des scripts.
 
-La commande *weechat-headless* lance WeeChat en mode « headless » (sans interface).
-Elle peut être utilisée pour des tests ou lancer WeeChat en daemon
-avec l'option "--daemon".
-
 == OPTIONS
 
 include::cmdline_options.fr.adoc[]
 
 == OPTIONS D'EXTENSION
 
-Pour une documentation complète sur les options des extensions, merci de
-consulter la documentation des extensions dans le
-https://weechat.org/doc[guide utilisateur de WeeChat].
-
-Avec l'extension irc, vous pouvez vous connecter à un serveur de manière
-temporaire avec une URL, comme ceci :
-
-    irc[6][s]://[[pseudo][:motdepasse]@]serveur[:port][/#canal1[,#canal2...]]
-
-Pour rejoindre le canal IRC de support WeeChat avec le pseudo "monpseudo" :
-
-    irc://monpseudo@chat.freenode.net/#weechat
-
-Les adresses IPv6 peuvent être entourées par des crochets pour ajouter un port
-après, par exemple :
-
-    irc://monpseudo@[2001:db8:0:85a3::ac1f:8001]:6668/#test
+include::man_plugin_options.fr.adoc[]
 
 == FICHIERS
 
-$HOME/.weechat/weechat.conf::
-    fichier de configuration principal de WeeChat
-
-$HOME/.weechat/plugins.conf::
-    fichier de configuration des extensions
-
-$HOME/.weechat/sec.conf::
-    fichier de configuration avec les données sécurisées
-
-$HOME/.weechat/alias.conf::
-    fichier de configuration pour l'extension _alias_
-
-$HOME/.weechat/aspell.conf::
-    fichier de configuration pour l'extension _aspell_
-
-$HOME/.weechat/buflist.conf::
-    fichier de configuration pour l'extension _buflist_
-
-$HOME/.weechat/charset.conf::
-    fichier de configuration pour l'extension _charset_
-
-$HOME/.weechat/exec.conf::
-    fichier de configuration pour l'extension _exec_
-
-$HOME/.weechat/fifo.conf::
-    fichier de configuration pour l'extension _fifo_
-
-$HOME/.weechat/fset.conf::
-    fichier de configuration pour l'extension _fset_
+include::man_files.fr.adoc[]
 
-$HOME/.weechat/guile.conf::
-    fichier de configuration pour l'extension _guile_
+== VOIR AUSSI
 
-$HOME/.weechat/irc.conf::
-    fichier de configuration pour l'extension _irc_
-
-$HOME/.weechat/javascript.conf::
-    fichier de configuration pour l'extension _javascript_
-
-$HOME/.weechat/logger.conf::
-    fichier de configuration pour l'extension _logger_
-
-$HOME/.weechat/lua.conf::
-    fichier de configuration pour l'extension _lua_
-
-$HOME/.weechat/perl.conf::
-    fichier de configuration pour l'extension _perl_
-
-$HOME/.weechat/php.conf::
-    fichier de configuration pour l'extension _php_
-
-$HOME/.weechat/python.conf::
-    fichier de configuration pour l'extension _python_
-
-$HOME/.weechat/relay.conf::
-    fichier de configuration pour l'extension _relay_
-
-$HOME/.weechat/ruby.conf::
-    fichier de configuration pour l'extension _ruby_
-
-$HOME/.weechat/script.conf::
-    fichier de configuration pour l'extension _script_
-
-$HOME/.weechat/tcl.conf::
-    fichier de configuration pour l'extension _tcl_
-
-$HOME/.weechat/trigger.conf::
-    fichier de configuration pour l'extension _trigger_
-
-$HOME/.weechat/xfer.conf::
-    fichier de configuration pour l'extension _xfer_
-
-$HOME/.weechat/weechat.log::
-    fichier de log de WeeChat
+*weechat-headless*(1)
 
 == AUTEURS
 
@@ -138,19 +47,7 @@
 
 == COPYRIGHT
 
-WeeChat est écrit par Sébastien Helleu et des contributeurs (la liste complète
-est dans le fichier AUTHORS.adoc).
-
-Copyright (C) 2003-2018 {author}
-
-WeeChat est un logiciel libre; vous pouvez le redistribuer et/ou le modifier
-sous les termes de la GNU General Public License telle que publiée par la
-Free Software Foundation; soit la version 3 de la licence, ou (selon votre
-choix) toute version ultérieure.
-
-Merci de consulter le fichier COPYING pour plus d'informations.
-
-Site web : https://weechat.org/
+include::man_copyright.fr.adoc[]
 
 == SUPPORT / SIGNALER DES BUGS
 
--- a/doc/it/CMakeLists.txt
+++ b/doc/it/CMakeLists.txt
@@ -18,29 +18,34 @@
 #
 
 if(ENABLE_MAN)
-  # man page
+  # man page: weechat
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
     COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.adoc
     DEPENDS
     ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.it.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.it.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.it.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Building weechat.1 (it)"
   )
   add_custom_target(doc-man-weechat-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/it/man1)
 
-  # symbolic link weechat-headless.1 -> weechat.1
+  # man page: weechat-headless
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
-    COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
-    COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+    COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.it.adoc
     DEPENDS
-    ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.it.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.it.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.it.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.it.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Creating symbolic link weechat-headless.1 (it)"
+    COMMENT "Building weechat-headless.1 (it)"
   )
   add_custom_target(doc-man-weechat-headless-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/it/man1)
--- /dev/null
+++ b/doc/it/man_copyright.it.adoc
@@ -0,0 +1,14 @@
+// TRANSLATION MISSING
+WeeChat is written by Sébastien Helleu and contributors (complete list is in
+the AUTHORS.adoc file).
+
+Copyright (C) 2003-2018 {author}
+
+WeeChat is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+Please read the COPYING file for more information.
+
+Web: https://weechat.org/
--- /dev/null
+++ b/doc/it/man_files.it.adoc
@@ -0,0 +1,75 @@
+// TRANSLATION MISSING
+$HOME/.weechat/weechat.conf::
+    main WeeChat configuration file
+
+$HOME/.weechat/plugins.conf::
+    plugins configuration file
+
+$HOME/.weechat/sec.conf::
+    configuration file with secured data
+
+$HOME/.weechat/alias.conf::
+    configuration file for _alias_ plugin
+
+$HOME/.weechat/aspell.conf::
+    configuration file for _aspell_ plugin
+
+$HOME/.weechat/buflist.conf::
+    configuration file for _buflist_ plugin
+
+$HOME/.weechat/charset.conf::
+    configuration file for _charset_ plugin
+
+$HOME/.weechat/exec.conf::
+    configuration file for _exec_ plugin
+
+$HOME/.weechat/fifo.conf::
+    configuration file for _fifo_ plugin
+
+$HOME/.weechat/fset.conf::
+    configuration file for _fset_ plugin
+
+$HOME/.weechat/guile.conf::
+    configuration file for _guile_ plugin
+
+$HOME/.weechat/irc.conf::
+    configuration file for _irc_ plugin
+
+$HOME/.weechat/javascript.conf::
+    configuration file for _javascript_ plugin
+
+$HOME/.weechat/logger.conf::
+    configuration file for _logger_ plugin
+
+$HOME/.weechat/lua.conf::
+    configuration file for _lua_ plugin
+
+$HOME/.weechat/perl.conf::
+    configuration file for _perl_ plugin
+
+$HOME/.weechat/php.conf::
+    configuration file for _php_ plugin
+
+$HOME/.weechat/python.conf::
+    configuration file for _python_ plugin
+
+$HOME/.weechat/relay.conf::
+    configuration file for _relay_ plugin
+
+$HOME/.weechat/ruby.conf::
+    configuration file for _ruby_ plugin
+
+$HOME/.weechat/script.conf::
+    configuration file for _script_ plugin
+
+$HOME/.weechat/tcl.conf::
+    configuration file for _tcl_ plugin
+
+$HOME/.weechat/trigger.conf::
+    configuration file for _trigger_ plugin
+
+$HOME/.weechat/xfer.conf::
+    configuration file for _xfer_ plugin
+
+$HOME/.weechat/weechat.log::
+    WeeChat log file
--- /dev/null
+++ b/doc/it/man_plugin_options.it.adoc
@@ -0,0 +1,16 @@
+// TRANSLATION MISSING
+For complete doc on plugin options, please look at plugins documentation in
+https://weechat.org/doc[WeeChat user's guide].
+
+With irc plugin, you can connect to temporary server with an URL like:
+
+    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
+
+To join WeeChat IRC channel support with nick "mynick":
+
+    irc://mynick@chat.freenode.net/#weechat
+
+IPv6 address can be enclosed in brackets to add a port after address, for
+example:
+
+    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
--- /dev/null
+++ b/doc/it/weechat-headless.1.it.adoc
@@ -0,0 +1,68 @@
+// TRANSLATION MISSING (WHOLE FILE)
+= weechat-headless(1)
+:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
+:lang: it
+// TRANSLATION MISSING
+:man manual: WeeChat Manual
+:man source: WeeChat {revnumber}
+
+== NAME
+
+weechat-headless - the extensible chat client (headless version)
+
+== SYNOPSIS
+
+[verse]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+*weechat-headless* [-c|--colors]
+*weechat-headless* [-h|--help]
+*weechat-headless* [-l|--license]
+*weechat-headless* [-v|--version]
+
+== DESCRIPTION
+
+// TRANSLATION MISSING
+WeeChat (Wee Enhanced Environment for Chat) è un client di chat
+libero, veloce e leggero, realizzato per diversi sistemi operativi.
+It is highly customizable and extensible with scripts.
+
+// TRANSLATION MISSING
+The command *weechat-headless* runs WeeChat in a headless mode (no interface).
+It can be used for tests or to daemonize WeeChat with the option "--daemon".
+
+== OPTIONS
+
+include::cmdline_options.it.adoc[]
+
+== PLUGIN OPTIONS
+
+include::man_plugin_options.it.adoc[]
+
+// TRANSLATION MISSING
+== FILES
+
+include::man_files.it.adoc[]
+
+// TRANSLATION MISSING
+== SEE ALSO
+
+*weechat*(1)
+
+== AUTHORS
+
+This manpage was written by {author}.
+
+// TRANSLATION MISSING
+// Translated by Name.
+
+== COPYRIGHT
+
+include::man_copyright.it.adoc[]
+
+// TRANSLATION MISSING
+== SUPPORT / REPORTING BUGS
+
+// TRANSLATION MISSING
+For help or a bug report: https://weechat.org/dev/support
--- a/doc/it/weechat.1.it.adoc
+++ b/doc/it/weechat.1.it.adoc
@@ -21,8 +21,6 @@
 *weechat* [-l|--license]
 *weechat* [-v|--version]
 
-*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
-
 == DESCRIPTION
 
 // TRANSLATION MISSING
@@ -30,109 +28,23 @@
 libero, veloce e leggero, realizzato per diversi sistemi operativi.
 It is highly customizable and extensible with scripts.
 
-// TRANSLATION MISSING
-The command *weechat-headless* runs WeeChat in a headless mode (no interface).
-It can be used for tests or to daemonize WeeChat with the option "--daemon".
-
 == OPTIONS
 
 include::cmdline_options.it.adoc[]
 
 == PLUGIN OPTIONS
 
-For complete doc on plugin options, please look at plugins documentation in
-https://weechat.org/doc[WeeChat user's guide].
-
-With irc plugin, you can connect to temporary server with an URL like:
-
-    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
-
-To join WeeChat IRC channel support with nick "mynick":
-
-    irc://mynick@chat.freenode.net/#weechat
-
-IPv6 address can be enclosed in brackets to add a port after address, for
-example:
-
-    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
+include::man_plugin_options.it.adoc[]
 
 // TRANSLATION MISSING
 == FILES
 
-$HOME/.weechat/weechat.conf::
-    main WeeChat configuration file
-
-$HOME/.weechat/plugins.conf::
-    plugins configuration file
-
-$HOME/.weechat/sec.conf::
-    configuration file with secured data
-
-$HOME/.weechat/alias.conf::
-    configuration file for _alias_ plugin
-
-$HOME/.weechat/aspell.conf::
-    configuration file for _aspell_ plugin
-
-$HOME/.weechat/buflist.conf::
-    configuration file for _buflist_ plugin
-
-$HOME/.weechat/charset.conf::
-    configuration file for _charset_ plugin
-
-$HOME/.weechat/exec.conf::
-    configuration file for _exec_ plugin
-
-$HOME/.weechat/fifo.conf::
-    configuration file for _fifo_ plugin
-
-$HOME/.weechat/fset.conf::
-    configuration file for _fset_ plugin
+include::man_files.it.adoc[]
 
-$HOME/.weechat/guile.conf::
-    configuration file for _guile_ plugin
-
-$HOME/.weechat/irc.conf::
-    configuration file for _irc_ plugin
-
-$HOME/.weechat/javascript.conf::
-    configuration file for _javascript_ plugin
-
-$HOME/.weechat/logger.conf::
-    configuration file for _logger_ plugin
-
-$HOME/.weechat/lua.conf::
-    configuration file for _lua_ plugin
-
-$HOME/.weechat/perl.conf::
-    configuration file for _perl_ plugin
-
-$HOME/.weechat/php.conf::
-    configuration file for _php_ plugin
-
-$HOME/.weechat/python.conf::
-    configuration file for _python_ plugin
-
-$HOME/.weechat/relay.conf::
-    configuration file for _relay_ plugin
-
-$HOME/.weechat/ruby.conf::
-    configuration file for _ruby_ plugin
-
-$HOME/.weechat/script.conf::
-    configuration file for _script_ plugin
-
-$HOME/.weechat/tcl.conf::
-    configuration file for _tcl_ plugin
-
-$HOME/.weechat/trigger.conf::
-    configuration file for _trigger_ plugin
-
-$HOME/.weechat/xfer.conf::
-    configuration file for _xfer_ plugin
+// TRANSLATION MISSING
+== SEE ALSO
 
-$HOME/.weechat/weechat.log::
-    WeeChat log file
+*weechat-headless*(1)
 
 == AUTHORS
 
@@ -143,19 +55,7 @@
 
 == COPYRIGHT
 
-WeeChat is written by Sébastien Helleu and contributors (complete list is in
-the AUTHORS.adoc file).
-
-Copyright (C) 2003-2018 {author}
-
-WeeChat is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
-(at your option) any later version.
-
-Please read the COPYING file for more information.
-
-Web: https://weechat.org/
+include::man_copyright.it.adoc[]
 
 // TRANSLATION MISSING
 == SUPPORT / REPORTING BUGS
--- a/doc/ja/CMakeLists.txt
+++ b/doc/ja/CMakeLists.txt
@@ -18,29 +18,34 @@
 #
 
 if(ENABLE_MAN)
-  # man page
+  # man page: weechat
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
     COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ja.adoc
     DEPENDS
     ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ja.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ja.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.ja.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.ja.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.ja.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Building weechat.1 (ja)"
   )
   add_custom_target(doc-man-weechat-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/ja/man1)
 
-  # symbolic link weechat-headless.1 -> weechat.1
+  # man page: weechat-headless
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
-    COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
-    COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+    COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ja.adoc
     DEPENDS
-    ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ja.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ja.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ja.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.ja.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.ja.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.ja.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Creating symbolic link weechat-headless.1 (ja)"
+    COMMENT "Building weechat-headless.1 (ja)"
   )
   add_custom_target(doc-man-weechat-headless-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/ja/man1)
--- /dev/null
+++ b/doc/ja/man_copyright.ja.adoc
@@ -0,0 +1,12 @@
+WeeChat は Sébastien Helleu さんと貢献者によって作成されています
+(完全なリストは AUTHORS.adoc ファイルを参照してください)。
+
+著作権 (C) 2003-2018 {author}
+
+WeeChat はフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行された
+GNU 一般公衆利用許諾契約書 (バージョン 2 か、希望によってはそれ以降のバージョンのうちどれか)
+の定める条件の下で再頒布または改変することができます。
+
+より詳しい情報は COPYING ファイルを読んでください。
+
+Web: https://weechat.org/
--- /dev/null
+++ b/doc/ja/man_files.ja.adoc
@@ -0,0 +1,74 @@
+$HOME/.weechat/weechat.conf::
+    WeeChat の主要設定ファイル
+
+$HOME/.weechat/plugins.conf::
+    プラグイン設定ファイル
+
+$HOME/.weechat/sec.conf::
+    保護されたデータを含む設定ファイル
+
+$HOME/.weechat/alias.conf::
+    _alias_ プラグイン用の設定ファイル
+
+$HOME/.weechat/aspell.conf::
+    _aspell_ プラグイン用の設定ファイル
+
+$HOME/.weechat/buflist.conf::
+    _buflist_ プラグイン用の設定ファイル
+
+$HOME/.weechat/charset.conf::
+    _charset_ プラグイン用の設定ファイル
+
+$HOME/.weechat/exec.conf::
+    _exec_ プラグイン用の設定ファイル
+
+$HOME/.weechat/fifo.conf::
+    _fifo_ プラグイン用の設定ファイル
+
+$HOME/.weechat/fset.conf::
+    _fset_ プラグイン用の設定ファイル
+
+$HOME/.weechat/guile.conf::
+    _guile_ プラグイン用の設定ファイル
+
+$HOME/.weechat/irc.conf::
+    _irc_ プラグイン用の設定ファイル
+
+$HOME/.weechat/javascript.conf::
+    _javascript_ プラグイン用の設定ファイル
+
+$HOME/.weechat/logger.conf::
+    _logger_ プラグイン用の設定ファイル
+
+$HOME/.weechat/lua.conf::
+    _lua_ プラグイン用の設定ファイル
+
+$HOME/.weechat/perl.conf::
+    _perl_ プラグイン用の設定ファイル
+
+$HOME/.weechat/php.conf::
+    _php_ プラグイン用の設定ファイル
+
+$HOME/.weechat/python.conf::
+    _python_ プラグイン用の設定ファイル
+
+$HOME/.weechat/relay.conf::
+    _relay_ プラグイン用の設定ファイル
+
+$HOME/.weechat/ruby.conf::
+    _ruby_ プラグイン用の設定ファイル
+
+$HOME/.weechat/script.conf::
+    _script_ プラグイン用の設定ファイル
+
+$HOME/.weechat/tcl.conf::
+    _tcl_ プラグイン用の設定ファイル
+
+$HOME/.weechat/trigger.conf::
+    _trigger_ プラグイン用の設定ファイル
+
+$HOME/.weechat/xfer.conf::
+    _xfer_ プラグイン用の設定ファイル
+
+$HOME/.weechat/weechat.log::
+    WeeChat ログファイル
--- /dev/null
+++ b/doc/ja/man_plugin_options.ja.adoc
@@ -0,0 +1,15 @@
+プラグインオプションに関する完全な文書は
+https://weechat.org/doc[WeeChat ユーザーズガイド] のプラグインの章を参照してください。
+
+irc プラグインでは以下の様な URL で一時的なサーバに接続することができます:
+
+    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
+
+"mynick" というニックネームで WeeChat IRC チャンネルサポートに参加するには:
+
+    irc://mynick@chat.freenode.net/#weechat
+
+IPv6 アドレスの後にポートを指定するには IPv6
+アドレスを括弧に入れてください、例えば:
+
+    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
--- /dev/null
+++ b/doc/ja/weechat-headless.1.ja.adoc
@@ -0,0 +1,61 @@
+// TRANSLATION MISSING
+= weechat-headless(1)
+:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
+:lang: ja
+:man manual: WeeChat マニュアル
+:man source: WeeChat {revnumber}
+
+== 名前
+
+weechat-headless - 拡張可能なチャットクライアント (headless version)
+
+== 書式
+
+[verse]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+*weechat-headless* [-c|--colors]
+*weechat-headless* [-h|--help]
+*weechat-headless* [-l|--license]
+*weechat-headless* [-v|--version]
+
+== 説明
+
+WeeChat (Wee Enhanced Environment for Chat) はフリーのチャットクライアントです。
+高速で軽量、多くのオペレーティングシステムで動くように設計されています。
+スクリプトを使って高度にカスタマイズと拡張可能です。
+
+*weechat-headless* コマンドを使うことで、WeeChat をヘッドレスモード (インターフェイスなし) で実行できます。
+ヘッドレスモードはテストや WeeChat をデーモン化する (オプション "--daemon" を使います) ために使われます。
+
+== オプション
+
+include::cmdline_options.ja.adoc[]
+
+== プラグインオプション
+
+include::man_plugin_options.ja.adoc[]
+
+== ファイル
+
+include::man_files.ja.adoc[]
+
+// TRANSLATION MISSING
+== SEE ALSO
+
+*weechat*(1)
+
+== 著者
+
+この manpage を書いたのは {author} さんです。
+
+翻訳したのは Ryuunosuke Ayanokouzi さんです。
+
+== 著作権
+
+include::man_copyright.ja.adoc[]
+
+== サポート / バグ報告
+
+手助けを受けたりバグを報告するには: https://weechat.org/dev/support
--- a/doc/ja/weechat.1.ja.adoc
+++ b/doc/ja/weechat.1.ja.adoc
@@ -19,115 +19,28 @@
 *weechat* [-l|--license]
 *weechat* [-v|--version]
 
-*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
-
 == 説明
 
 WeeChat (Wee Enhanced Environment for Chat) はフリーのチャットクライアントです。
 高速で軽量、多くのオペレーティングシステムで動くように設計されています。
 スクリプトを使って高度にカスタマイズと拡張可能です。
 
-*weechat-headless* コマンドを使うことで、WeeChat をヘッドレスモード (インターフェイスなし) で実行できます。
-ヘッドレスモードはテストや WeeChat をデーモン化する (オプション "--daemon" を使います) ために使われます。
-
 == オプション
 
 include::cmdline_options.ja.adoc[]
 
 == プラグインオプション
 
-プラグインオプションに関する完全な文書は
-https://weechat.org/doc[WeeChat ユーザーズガイド] のプラグインの章を参照してください。
-
-irc プラグインでは以下の様な URL で一時的なサーバに接続することができます:
-
-    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
-
-"mynick" というニックネームで WeeChat IRC チャンネルサポートに参加するには:
-
-    irc://mynick@chat.freenode.net/#weechat
-
-IPv6 アドレスの後にポートを指定するには IPv6
-アドレスを括弧に入れてください、例えば:
-
-    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
+include::man_plugin_options.ja.adoc[]
 
 == ファイル
 
-$HOME/.weechat/weechat.conf::
-    WeeChat の主要設定ファイル
-
-$HOME/.weechat/plugins.conf::
-    プラグイン設定ファイル
-
-$HOME/.weechat/sec.conf::
-    保護されたデータを含む設定ファイル
-
-$HOME/.weechat/alias.conf::
-    _alias_ プラグイン用の設定ファイル
-
-$HOME/.weechat/aspell.conf::
-    _aspell_ プラグイン用の設定ファイル
-
-$HOME/.weechat/buflist.conf::
-    _buflist_ プラグイン用の設定ファイル
-
-$HOME/.weechat/charset.conf::
-    _charset_ プラグイン用の設定ファイル
-
-$HOME/.weechat/exec.conf::
-    _exec_ プラグイン用の設定ファイル
-
-$HOME/.weechat/fifo.conf::
-    _fifo_ プラグイン用の設定ファイル
-
-$HOME/.weechat/fset.conf::
-    _fset_ プラグイン用の設定ファイル
+include::man_files.ja.adoc[]
 
-$HOME/.weechat/guile.conf::
-    _guile_ プラグイン用の設定ファイル
+// TRANSLATION MISSING
+== SEE ALSO
 
-$HOME/.weechat/irc.conf::
-    _irc_ プラグイン用の設定ファイル
-
-$HOME/.weechat/javascript.conf::
-    _javascript_ プラグイン用の設定ファイル
-
-$HOME/.weechat/logger.conf::
-    _logger_ プラグイン用の設定ファイル
-
-$HOME/.weechat/lua.conf::
-    _lua_ プラグイン用の設定ファイル
-
-$HOME/.weechat/perl.conf::
-    _perl_ プラグイン用の設定ファイル
-
-$HOME/.weechat/php.conf::
-    _php_ プラグイン用の設定ファイル
-
-$HOME/.weechat/python.conf::
-    _python_ プラグイン用の設定ファイル
-
-$HOME/.weechat/relay.conf::
-    _relay_ プラグイン用の設定ファイル
-
-$HOME/.weechat/ruby.conf::
-    _ruby_ プラグイン用の設定ファイル
-
-$HOME/.weechat/script.conf::
-    _script_ プラグイン用の設定ファイル
-
-$HOME/.weechat/tcl.conf::
-    _tcl_ プラグイン用の設定ファイル
-
-$HOME/.weechat/trigger.conf::
-    _trigger_ プラグイン用の設定ファイル
-
-$HOME/.weechat/xfer.conf::
-    _xfer_ プラグイン用の設定ファイル
-
-$HOME/.weechat/weechat.log::
-    WeeChat ログファイル
+*weechat-headless*(1)
 
 == 著者
 
@@ -137,18 +50,7 @@
 
 == 著作権
 
-WeeChat は Sébastien Helleu さんと貢献者によって作成されています
-(完全なリストは AUTHORS.adoc ファイルを参照してください)。
-
-著作権 (C) 2003-2018 {author}
-
-WeeChat はフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行された
-GNU 一般公衆利用許諾契約書 (バージョン 2 か、希望によってはそれ以降のバージョンのうちどれか)
-の定める条件の下で再頒布または改変することができます。
-
-より詳しい情報は COPYING ファイルを読んでください。
-
-Web: https://weechat.org/
+include::man_copyright.ja.adoc[]
 
 == サポート / バグ報告
 
--- a/doc/pl/CMakeLists.txt
+++ b/doc/pl/CMakeLists.txt
@@ -18,29 +18,34 @@
 #
 
 if(ENABLE_MAN)
-  # man page
+  # man page: weechat
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
     COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.pl.adoc
     DEPENDS
     ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.pl.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.pl.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.pl.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.pl.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.pl.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Building weechat.1 (pl)"
   )
   add_custom_target(doc-man-weechat-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/pl/man1)
 
-  # symbolic link weechat-headless.1 -> weechat.1
+  # man page: weechat-headless
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
-    COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
-    COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+    COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.pl.adoc
     DEPENDS
-    ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.pl.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.pl.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.pl.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.pl.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.pl.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.pl.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Creating symbolic link weechat-headless.1 (pl)"
+    COMMENT "Building weechat-headless.1 (pl)"
   )
   add_custom_target(doc-man-weechat-headless-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/pl/man1)
--- /dev/null
+++ b/doc/pl/man_copyright.pl.adoc
@@ -0,0 +1,13 @@
+WeeChat jest tworzony przez Sébastien Helleu i społeczność (pełna lista dostępna
+jest w pliku AUTHORS.adoc).
+
+Copyright (C) 2003-2018 {author}
+
+WeeChat is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+Pełna licencja znajduje się w pliku COPYING.
+
+Strona www: https://weechat.org/
--- /dev/null
+++ b/doc/pl/man_files.pl.adoc
@@ -0,0 +1,74 @@
+$HOME/.weechat/weechat.conf::
+    główny plik konfiguracyjny WeeChat
+
+$HOME/.weechat/plugins.conf::
+    plik konfiguracyjny wtyczek
+
+$HOME/.weechat/sec.conf::
+    plik konfiguracyjny z zabezpieczonymi danymi
+
+$HOME/.weechat/alias.conf::
+    plik konfiguracyjny wtyczki _alias_
+
+$HOME/.weechat/aspell.conf::
+    plik konfiguracyjny wtyczki _aspell_
+
+$HOME/.weechat/buflist.conf::
+    plik konfiguracyjny wtyczki _buflist_
+
+$HOME/.weechat/charset.conf::
+    plik konfiguracyjny wtyczki _charset_
+
+$HOME/.weechat/exec.conf::
+    plik konfiguracyjny wtyczki _exec_
+
+$HOME/.weechat/fifo.conf::
+    plik konfiguracyjny wtyczki _fifo_
+
+$HOME/.weechat/fset.conf::
+    plik konfiguracyjny wtyczki _fset_
+
+$HOME/.weechat/guile.conf::
+    plik konfiguracyjny wtyczki _guile_
+
+$HOME/.weechat/irc.conf::
+    plik konfiguracyjny wtyczki _irc_
+
+$HOME/.weechat/javascript.conf::
+    plik konfiguracyjny wtyczki _javascript_
+
+$HOME/.weechat/logger.conf::
+    plik konfiguracyjny wtyczki _logger_
+
+$HOME/.weechat/lua.conf::
+    plik konfiguracyjny wtyczki _lua_
+
+$HOME/.weechat/perl.conf::
+    plik konfiguracyjny wtyczki _perl_
+
+$HOME/.weechat/php.conf::
+    plik konfiguracyjny wtyczki _php_
+
+$HOME/.weechat/python.conf::
+    plik konfiguracyjny wtyczki _python_
+
+$HOME/.weechat/relay.conf::
+    plik konfiguracyjny wtyczki _relay_
+
+$HOME/.weechat/ruby.conf::
+    plik konfiguracyjny wtyczki _ruby_
+
+$HOME/.weechat/script.conf::
+    plik konfiguracyjny wtyczki _script_
+
+$HOME/.weechat/tcl.conf::
+    plik konfiguracyjny wtyczki _tcl_
+
+$HOME/.weechat/trigger.conf::
+    plik konfiguracyjny wtyczki _trigger_
+
+$HOME/.weechat/xfer.conf::
+    plik konfiguracyjny wtyczki _xfer_
+
+$HOME/.weechat/weechat.log::
+    plik z logami WeeChat
--- /dev/null
+++ b/doc/pl/man_plugin_options.pl.adoc
@@ -0,0 +1,16 @@
+Kompletna dokumentacja na temat opcji wtyczek dostępna jest
+w https://weechat.org/doc[WeeChat user's guide].
+
+Dzięki wtyczce irc możliwe jest połączenie z serwerami tymczasowymi za pomocą
+URLi jak:
+
+    irc[6][s]://[[nick][:hasło]@]serwer[:port][/#kanał1[,#kanał2...]]
+
+Aby wejść na kanał IRC poświęcony WeeChat pod nickiem "mójnick":
+
+    irc://mójnick@chat.freenode.net/#weechat
+
+Adresy IPv6 mogą być otoczone nawiasami kwadratowymi, aby możliwe było podanie
+numeru potyu po adresie, na przykład:
+
+    irc://mójnick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
--- /dev/null
+++ b/doc/pl/weechat-headless.1.pl.adoc
@@ -0,0 +1,62 @@
+// TRANSLATION MISSING
+= weechat-headless(1)
+:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
+:lang: pl
+:man manual: WeeChat Manual
+:man source: WeeChat {revnumber}
+
+== NAZWA
+
+weechat-headless - rozszerzalny klient rozmów (headless version)
+
+== SKŁADNIA
+
+[verse]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+*weechat-headless* [-c|--colors]
+*weechat-headless* [-h|--help]
+*weechat-headless* [-l|--license]
+*weechat-headless* [-v|--version]
+
+== OPIS
+
+WeeChat (Wee Enhanced Environment for Chat) to darmowy klient rozmów, szybki
+i lekki, przeznaczony dla wielu systemów operacyjnych.
+Posiada dużo opcji konfiguracyjnych i dodatkowych wtyczek.
+
+Komenda *weechat-headless* uruchamia WeeChat w trybie headless (bez interfejsu).
+Może być używana do testów lub do uruchamiania WeeChat w trybie demona za pomocą
+opcji "--daemon".
+
+== OPCJE
+
+include::cmdline_options.pl.adoc[]
+
+== OPCJE WTYCZEK
+
+include::man_plugin_options.pl.adoc[]
+
+== PLIKI
+
+include::man_files.pl.adoc[]
+
+// TRANSLATION MISSING
+== SEE ALSO
+
+*weechat*(1)
+
+== AUTORZY
+
+Autorem tej strony pomocy {author}.
+
+Tłumaczenie Krzysztof Korościk.
+
+== PRAWA AUTORSKIE
+
+include::man_copyright.pl.adoc[]
+
+== WSPARCIE / ZGŁASZANIE BŁĘDÓW
+
+W celu uzyskania pomocy, lub zgłoszenia błędu zajrzyj na: https://weechat.org/dev/support
--- a/doc/pl/weechat.1.pl.adoc
+++ b/doc/pl/weechat.1.pl.adoc
@@ -19,117 +19,28 @@
 *weechat* [-l|--license]
 *weechat* [-v|--version]
 
-*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
-
 == OPIS
 
 WeeChat (Wee Enhanced Environment for Chat) to darmowy klient rozmów, szybki
 i lekki, przeznaczony dla wielu systemów operacyjnych.
 Posiada dużo opcji konfiguracyjnych i dodatkowych wtyczek.
 
-Komenda *weechat-headless* uruchamia WeeChat w trybie headless (bez interfejsu).
-Może być używana do testów lub do uruchamiania WeeChat w trybie demona za pomocą
-opcji "--daemon".
-
 == OPCJE
 
 include::cmdline_options.pl.adoc[]
 
 == OPCJE WTYCZEK
 
-Kompletna dokumentacja na temat opcji wtyczek dostępna jest
-w https://weechat.org/doc[WeeChat user's guide].
-
-Dzięki wtyczce irc możliwe jest połączenie z serwerami tymczasowymi za pomocą
-URLi jak:
-
-    irc[6][s]://[[nick][:hasło]@]serwer[:port][/#kanał1[,#kanał2...]]
-
-Aby wejść na kanał IRC poświęcony WeeChat pod nickiem "mójnick":
-
-    irc://mójnick@chat.freenode.net/#weechat
-
-Adresy IPv6 mogą być otoczone nawiasami kwadratowymi, aby możliwe było podanie
-numeru potyu po adresie, na przykład:
-
-    irc://mójnick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
+include::man_plugin_options.pl.adoc[]
 
 == PLIKI
 
-$HOME/.weechat/weechat.conf::
-    główny plik konfiguracyjny WeeChat
-
-$HOME/.weechat/plugins.conf::
-    plik konfiguracyjny wtyczek
-
-$HOME/.weechat/sec.conf::
-    plik konfiguracyjny z zabezpieczonymi danymi
-
-$HOME/.weechat/alias.conf::
-    plik konfiguracyjny wtyczki _alias_
-
-$HOME/.weechat/aspell.conf::
-    plik konfiguracyjny wtyczki _aspell_
-
-$HOME/.weechat/buflist.conf::
-    plik konfiguracyjny wtyczki _buflist_
-
-$HOME/.weechat/charset.conf::
-    plik konfiguracyjny wtyczki _charset_
-
-$HOME/.weechat/exec.conf::
-    plik konfiguracyjny wtyczki _exec_
-
-$HOME/.weechat/fifo.conf::
-    plik konfiguracyjny wtyczki _fifo_
-
-$HOME/.weechat/fset.conf::
-    plik konfiguracyjny wtyczki _fset_
+include::man_files.pl.adoc[]
 
-$HOME/.weechat/guile.conf::
-    plik konfiguracyjny wtyczki _guile_
+// TRANSLATION MISSING
+== SEE ALSO
 
-$HOME/.weechat/irc.conf::
-    plik konfiguracyjny wtyczki _irc_
-
-$HOME/.weechat/javascript.conf::
-    plik konfiguracyjny wtyczki _javascript_
-
-$HOME/.weechat/logger.conf::
-    plik konfiguracyjny wtyczki _logger_
-
-$HOME/.weechat/lua.conf::
-    plik konfiguracyjny wtyczki _lua_
-
-$HOME/.weechat/perl.conf::
-    plik konfiguracyjny wtyczki _perl_
-
-$HOME/.weechat/php.conf::
-    plik konfiguracyjny wtyczki _php_
-
-$HOME/.weechat/python.conf::
-    plik konfiguracyjny wtyczki _python_
-
-$HOME/.weechat/relay.conf::
-    plik konfiguracyjny wtyczki _relay_
-
-$HOME/.weechat/ruby.conf::
-    plik konfiguracyjny wtyczki _ruby_
-
-$HOME/.weechat/script.conf::
-    plik konfiguracyjny wtyczki _script_
-
-$HOME/.weechat/tcl.conf::
-    plik konfiguracyjny wtyczki _tcl_
-
-$HOME/.weechat/trigger.conf::
-    plik konfiguracyjny wtyczki _trigger_
-
-$HOME/.weechat/xfer.conf::
-    plik konfiguracyjny wtyczki _xfer_
-
-$HOME/.weechat/weechat.log::
-    plik z logami WeeChat
+*weechat-headless*(1)
 
 == AUTORZY
 
@@ -139,19 +50,7 @@
 
 == PRAWA AUTORSKIE
 
-WeeChat jest tworzony przez Sébastien Helleu i społeczność (pełna lista dostępna
-jest w pliku AUTHORS.adoc).
-
-Copyright (C) 2003-2018 {author}
-
-WeeChat is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
-(at your option) any later version.
-
-Pełna licencja znajduje się w pliku COPYING.
-
-Strona www: https://weechat.org/
+include::man_copyright.pl.adoc[]
 
 == WSPARCIE / ZGŁASZANIE BŁĘDÓW
 
--- a/doc/ru/CMakeLists.txt
+++ b/doc/ru/CMakeLists.txt
@@ -18,29 +18,34 @@
 #
 
 if(ENABLE_MAN)
-  # man page
+  # man page: weechat
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
     COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc
     DEPENDS
     ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ru.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.ru.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.ru.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.ru.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     COMMENT "Building weechat.1 (ru)"
   )
   add_custom_target(doc-man-weechat-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/ru/man1)
 
-  # symbolic link weechat-headless.1 -> weechat.1
+  # man page: weechat-headless
   add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
-    COMMAND ${CMAKE_COMMAND} -E remove -f "weechat-headless.1"
-    COMMAND ${CMAKE_COMMAND} -E create_symlink "weechat.1" "weechat-headless.1"
+    COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ru.adoc
     DEPENDS
-    ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ru.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ru.adoc
     ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ru.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_plugin_options.ru.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_files.ru.adoc
+    ${CMAKE_CURRENT_SOURCE_DIR}/man_copyright.ru.adoc
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Creating symbolic link weechat-headless.1 (ru)"
+    COMMENT "Building weechat-headless.1 (ru)"
   )
   add_custom_target(doc-man-weechat-headless-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/ru/man1)
--- /dev/null
+++ b/doc/ru/man_copyright.ru.adoc
@@ -0,0 +1,13 @@
+WeeChat написан Sébastien Helleu и другими участниками (полный список находится
+в файле AUTHORS.adoc).
+
+Copyright (C) 2003-2018 {author}
+
+WeeChat is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+Подробную информацию можно найти в файле COPYING.
+
+Веб: https://weechat.org/
--- /dev/null
+++ b/doc/ru/man_files.ru.adoc
@@ -0,0 +1,74 @@
+$HOME/.weechat/weechat.conf::
+    главный файл конфигурации WeeChat
+
+$HOME/.weechat/plugins.conf::
+    файл конфигурации плагинов
+
+$HOME/.weechat/sec.conf::
+    файл конфигурации с защищаемыми данными
+
+$HOME/.weechat/alias.conf::
+    файл конфигурации для плагина _alias_
+
+$HOME/.weechat/aspell.conf::
+    файл конфигурации для плагина _aspell_
+
+$HOME/.weechat/buflist.conf::
+    файл конфигурации для плагина _buflist_
+
+$HOME/.weechat/charset.conf::
+    файл конфигурации для плагина _charset_
+
+$HOME/.weechat/exec.conf::
+    файл конфигурации для плагина _exec_
+
+$HOME/.weechat/fifo.conf::
+    файл конфигурации для плагина _fifo_
+
+$HOME/.weechat/fset.conf::
+    файл конфигурации для плагина _fset_
+
+$HOME/.weechat/guile.conf::
+    файл конфигурации для плагина _guile_
+
+$HOME/.weechat/irc.conf::
+    файл конфигурации для плагина _irc_
+
+$HOME/.weechat/javascript.conf::
+    файл конфигурации для плагина _javascript_
+
+$HOME/.weechat/logger.conf::
+    файл конфигурации для плагина _logger_
+
+$HOME/.weechat/lua.conf::
+    файл конфигурации для плагина _lua_
+
+$HOME/.weechat/perl.conf::
+    файл конфигурации для плагина _perl_
+
+$HOME/.weechat/php.conf::
+    файл конфигурации для плагина _php_
+
+$HOME/.weechat/python.conf::
+    файл конфигурации для плагина _python_
+
+$HOME/.weechat/relay.conf::
+    файл конфигурации для плагина _relay_
+
+$HOME/.weechat/ruby.conf::
+    файл конфигурации для плагина _ruby_
+
+$HOME/.weechat/script.conf::
+    файл конфигурации для плагина _script_
+
+$HOME/.weechat/tcl.conf::
+    файл конфигурации для плагина _tcl_
+
+$HOME/.weechat/trigger.conf::
+    файл конфигурации для плагина _trigger_
+
+$HOME/.weechat/xfer.conf::
+    файл конфигурации для плагина _xref_
+
+$HOME/.weechat/weechat.log::
+    лог-файл WeeChat
--- /dev/null
+++ b/doc/ru/man_plugin_options.ru.adoc
@@ -0,0 +1,14 @@
+Полное описание параметров плагинов доступно в документации по плагинам в
+https://weechat.org/doc[Руководстве пользователя WeeChat].
+
+С помощью плагина irc можно присоединиться ко временному серверу, используя URL вроде:
+
+    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
+
+Присоединиться к IRC-каналу поддержки пользователей WeeChat с псевдонимом "mynick":
+
+    irc://mynick@chat.freenode.net/#weechat
+
+IPv6-адрес можно заключить в квадратные скобки, чтобы указать порт. Например:
+
+    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
--- /dev/null
+++ b/doc/ru/weechat-headless.1.ru.adoc
@@ -0,0 +1,63 @@
+// TRANSLATION MISSING
+= weechat-headless(1)
+:doctype: manpage
+:author: Sébastien Helleu
+:email: flashcode@flashtux.org
+:lang: ru
+// TRANSLATION MISSING
+:man manual: WeeChat Manual
+:man source: WeeChat {revnumber}
+
+== НАЗВАНИЕ
+
+weechat-headless - расширяемый чат-клиент (headless version)
+
+== ОБЗОР
+
+[verse]
+*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
+*weechat-headless* [-c|--colors]
+*weechat-headless* [-h|--help]
+*weechat-headless* [-l|--license]
+*weechat-headless* [-v|--version]
+
+== ОПИСАНИЕ
+
+WeeChat (Wee Enhanced Environment for Chat) это свободный чат-клиент - быстрый и легкий,
+он подходит для большинства операционных систем.
+Его легко настроить, кроме того, вы можете расширить его функицонал при помощи скриптов.
+
+// TRANSLATION MISSING
+The command *weechat-headless* runs WeeChat in a headless mode (no interface).
+It can be used for tests or to daemonize WeeChat with the option "--daemon".
+
+== ПАРАМЕТРЫ
+
+include::cmdline_options.ru.adoc[]
+
+== ПАРАМЕТРЫ ПЛАГИНОВ
+
+include::man_plugin_options.ru.adoc[]
+
+== ФАЙЛЫ
+
+include::man_files.ru.adoc[]
+
+// TRANSLATION MISSING
+== SEE ALSO
+
+*weechat*(1)
+
+== АВТОРЫ
+
+Эта man-страница написана {author}.
+
+Перевод: Alexander Turenko.
+
+== КОПИРАЙТ
+
+include::man_copyright.ru.adoc[]
+
+== ПОДДЕРЖКА / СООБЩЕНИЯ ОБ ОШИБКАХ
+
+Получить помощь или сообщить об ошибке: https://weechat.org/dev/support
--- a/doc/ru/weechat.1.ru.adoc
+++ b/doc/ru/weechat.1.ru.adoc
@@ -20,115 +20,28 @@
 *weechat* [-l|--license]
 *weechat* [-v|--version]
 
-*weechat-headless* [-a|--no-connect] [--daemon] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
-
 == ОПИСАНИЕ
 
 WeeChat (Wee Enhanced Environment for Chat) это свободный чат-клиент - быстрый и легкий,
 он подходит для большинства операционных систем.
 Его легко настроить, кроме того, вы можете расширить его функицонал при помощи скриптов.
 
-// TRANSLATION MISSING
-The command *weechat-headless* runs WeeChat in a headless mode (no interface).
-It can be used for tests or to daemonize WeeChat with the option "--daemon".
-
 == ПАРАМЕТРЫ
 
 include::cmdline_options.ru.adoc[]
 
 == ПАРАМЕТРЫ ПЛАГИНОВ
 
-Полное описание параметров плагинов доступно в документации по плагинам в
-https://weechat.org/doc[Руководстве пользователя WeeChat].
-
-С помощью плагина irc можно присоединиться ко временному серверу, используя URL вроде:
-
-    irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
-
-Присоединиться к IRC-каналу поддержки пользователей WeeChat с псевдонимом "mynick":
-
-    irc://mynick@chat.freenode.net/#weechat
-
-IPv6-адрес можно заключить в квадратные скобки, чтобы указать порт. Например:
-
-    irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
+include::man_plugin_options.ru.adoc[]
 
 == ФАЙЛЫ
 
-$HOME/.weechat/weechat.conf::
-    главный файл конфигурации WeeChat
-
-$HOME/.weechat/plugins.conf::
-    файл конфигурации плагинов
-
-$HOME/.weechat/sec.conf::
-    файл конфигурации с защищаемыми данными
-
-$HOME/.weechat/alias.conf::
-    файл конфигурации для плагина _alias_
-
-$HOME/.weechat/aspell.conf::
-    файл конфигурации для плагина _aspell_
-
-$HOME/.weechat/buflist.conf::
-    файл конфигурации для плагина _buflist_
-
-$HOME/.weechat/charset.conf::
-    файл конфигурации для плагина _charset_
-
-$HOME/.weechat/exec.conf::
-    файл конфигурации для плагина _exec_
-
-$HOME/.weechat/fifo.conf::
-    файл конфигурации для плагина _fifo_
-
-$HOME/.weechat/fset.conf::
-    файл конфигурации для плагина _fset_
+include::man_files.ru.adoc[]
 
-$HOME/.weechat/guile.conf::
-    файл конфигурации для плагина _guile_
-
-$HOME/.weechat/irc.conf::
-    файл конфигурации для плагина _irc_
-
-$HOME/.weechat/javascript.conf::
-    файл конфигурации для плагина _javascript_
-
-$HOME/.weechat/logger.conf::
-    файл конфигурации для плагина _logger_
-
-$HOME/.weechat/lua.conf::
-    файл конфигурации для плагина _lua_
-
-$HOME/.weechat/perl.conf::
-    файл конфигурации для плагина _perl_
-
-$HOME/.weechat/php.conf::
-    файл конфигурации для плагина _php_
-
-$HOME/.weechat/python.conf::
-    файл конфигурации для плагина _python_
-
-$HOME/.weechat/relay.conf::
-    файл конфигурации для плагина _relay_
-
-$HOME/.weechat/ruby.conf::
-    файл конфигурации для плагина _ruby_
-
-$HOME/.weechat/script.conf::
-    файл конфигурации для плагина _script_
-
-$HOME/.weechat/tcl.conf::
-    файл конфигурации для плагина _tcl_
-
-$HOME/.weechat/trigger.conf::
-    файл конфигурации для плагина _trigger_
-
-$HOME/.weechat/xfer.conf::
-    файл конфигурации для плагина _xref_
+// TRANSLATION MISSING
+== SEE ALSO
 
-$HOME/.weechat/weechat.log::
-    лог-файл WeeChat
+*weechat-headless*(1)
 
 == АВТОРЫ
 
@@ -138,19 +51,7 @@
 
 == КОПИРАЙТ
 
-WeeChat написан Sébastien Helleu и другими участниками (полный список находится
-в файле AUTHORS.adoc).
-
-Copyright (C) 2003-2018 {author}
-
-WeeChat is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3 of the License, or
-(at your option) any later version.
-
-Подробную информацию можно найти в файле COPYING.
-
-Веб: https://weechat.org/
+include::man_copyright.ru.adoc[]
 
 == ПОДДЕРЖКА / СООБЩЕНИЯ ОБ ОШИБКАХ
 
