summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.asciidoc1
-rw-r--r--doc/de/autogen/user/fifo_commands.asciidoc29
-rw-r--r--doc/de/weechat_user.de.asciidoc5
-rw-r--r--doc/en/autogen/user/fifo_commands.asciidoc29
-rw-r--r--doc/en/weechat_dev.en.asciidoc1
-rw-r--r--doc/en/weechat_user.en.asciidoc5
-rw-r--r--doc/fr/autogen/user/fifo_commands.asciidoc29
-rw-r--r--doc/fr/weechat_dev.fr.asciidoc1
-rw-r--r--doc/fr/weechat_user.fr.asciidoc5
-rw-r--r--doc/it/autogen/user/fifo_commands.asciidoc29
-rw-r--r--doc/it/weechat_user.it.asciidoc5
-rw-r--r--doc/ja/autogen/user/fifo_commands.asciidoc29
-rw-r--r--doc/ja/weechat_dev.ja.asciidoc2
-rw-r--r--doc/ja/weechat_user.ja.asciidoc5
-rw-r--r--doc/pl/autogen/user/fifo_commands.asciidoc29
-rw-r--r--doc/pl/weechat_user.pl.asciidoc5
-rw-r--r--po/POTFILES.in2
-rw-r--r--po/cs.po52
-rw-r--r--po/de.po51
-rw-r--r--po/es.po52
-rw-r--r--po/fr.po69
-rw-r--r--po/hu.po50
-rw-r--r--po/it.po52
-rw-r--r--po/ja.po52
-rw-r--r--po/pl.po52
-rw-r--r--po/pt_BR.po47
-rw-r--r--po/ru.po50
-rw-r--r--po/srcfiles.cmake2
-rw-r--r--po/tr.po46
-rw-r--r--po/weechat.pot41
-rw-r--r--src/plugins/fifo/CMakeLists.txt1
-rw-r--r--src/plugins/fifo/Makefile.am2
-rw-r--r--src/plugins/fifo/fifo-command.c117
-rw-r--r--src/plugins/fifo/fifo-command.h25
-rw-r--r--src/plugins/fifo/fifo.c13
-rw-r--r--src/plugins/fifo/fifo.h2
36 files changed, 906 insertions, 81 deletions
diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc
index 3dcf80c21..043ff2f24 100644
--- a/ChangeLog.asciidoc
+++ b/ChangeLog.asciidoc
@@ -26,6 +26,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* api: add function string_hex_dump()
* api: add argument "length" in function utf8_is_valid()
* alias: display completion in /alias list (issue #518)
+* fifo: add /fifo command
* irc: use current channel and current server channels first in completions
"irc_server_channels" and "irc_channels" (task #12923, issue #392)
* irc: add support of "cap-notify" capability (issue #182, issue #477)
diff --git a/doc/de/autogen/user/fifo_commands.asciidoc b/doc/de/autogen/user/fifo_commands.asciidoc
new file mode 100644
index 000000000..66564ac6e
--- /dev/null
+++ b/doc/de/autogen/user/fifo_commands.asciidoc
@@ -0,0 +1,29 @@
+//
+// This file is auto-generated by script docgen.py.
+// DO NOT EDIT BY HAND!
+//
+[[command_fifo_fifo]]
+[command]*`fifo`* fifo plugin configuration::
+
+----
+/fifo enable|disable|toggle
+
+ enable: enable FIFO pipe
+disable: disable FIFO pipe
+ toggle: toggle FIFO pipe
+
+FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
+By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
+
+The expected format is one of:
+ plugin.buffer *text or command here
+ *text or command here
+
+For example to change your freenode nick:
+ echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
+
+Please read the user's guide for more info and examples.
+
+Examples:
+ /fifo toggle
+----
diff --git a/doc/de/weechat_user.de.asciidoc b/doc/de/weechat_user.de.asciidoc
index 6d8120090..f84a4844c 100644
--- a/doc/de/weechat_user.de.asciidoc
+++ b/doc/de/weechat_user.de.asciidoc
@@ -2151,6 +2151,11 @@ Falls man das Skript "auto_weechat_command" benennt ruft man es wie folgt auf:
$ ./auto_weechat_command 'irc.freenode.#weechat *Hallo'
----
+[[fifo_commands]]
+==== Befehle
+
+include::autogen/user/fifo_commands.asciidoc[]
+
[[irc_plugin]]
=== IRC Erweiterung
diff --git a/doc/en/autogen/user/fifo_commands.asciidoc b/doc/en/autogen/user/fifo_commands.asciidoc
new file mode 100644
index 000000000..66564ac6e
--- /dev/null
+++ b/doc/en/autogen/user/fifo_commands.asciidoc
@@ -0,0 +1,29 @@
+//
+// This file is auto-generated by script docgen.py.
+// DO NOT EDIT BY HAND!
+//
+[[command_fifo_fifo]]
+[command]*`fifo`* fifo plugin configuration::
+
+----
+/fifo enable|disable|toggle
+
+ enable: enable FIFO pipe
+disable: disable FIFO pipe
+ toggle: toggle FIFO pipe
+
+FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
+By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
+
+The expected format is one of:
+ plugin.buffer *text or command here
+ *text or command here
+
+For example to change your freenode nick:
+ echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
+
+Please read the user's guide for more info and examples.
+
+Examples:
+ /fifo toggle
+----
diff --git a/doc/en/weechat_dev.en.asciidoc b/doc/en/weechat_dev.en.asciidoc
index 56faef641..d13d8cc1e 100644
--- a/doc/en/weechat_dev.en.asciidoc
+++ b/doc/en/weechat_dev.en.asciidoc
@@ -202,6 +202,7 @@ WeeChat "core" is located in following directories:
| exec-config.c | Exec config options (file exec.conf)
| fifo/ | Fifo plugin
| fifo.c | Main fifo functions
+| fifo-command.c | Fifo commands
| fifo-info.c | Fifo info/infolists/hdata
| guile/ | Guile (scheme) plugin
| weechat-guile.c | Main guile functions (load/unload scripts, execute guile code)
diff --git a/doc/en/weechat_user.en.asciidoc b/doc/en/weechat_user.en.asciidoc
index c4ae00228..162f6cae7 100644
--- a/doc/en/weechat_user.en.asciidoc
+++ b/doc/en/weechat_user.en.asciidoc
@@ -2098,6 +2098,11 @@ If the script is called "auto_weechat_command", you can run it with:
$ ./auto_weechat_command 'irc.freenode.#weechat *hello'
----
+[[fifo_commands]]
+==== Commands
+
+include::autogen/user/fifo_commands.asciidoc[]
+
[[irc_plugin]]
=== IRC plugin
diff --git a/doc/fr/autogen/user/fifo_commands.asciidoc b/doc/fr/autogen/user/fifo_commands.asciidoc
new file mode 100644
index 000000000..e263e03da
--- /dev/null
+++ b/doc/fr/autogen/user/fifo_commands.asciidoc
@@ -0,0 +1,29 @@
+//
+// This file is auto-generated by script docgen.py.
+// DO NOT EDIT BY HAND!
+//
+[[command_fifo_fifo]]
+[command]*`fifo`* configuration de l'extension fifo::
+
+----
+/fifo enable|disable|toggle
+
+ enable : activer le tube FIFO
+disable : désactiver le tube FIFO
+ toggle : activer/désactiver le tube FIFO
+
+Le tube FIFO est utilisé comme contrôle à distance de WeeChat : vous pouvez envoyer des commandes ou du texte au tube FIFO depuis votre shell.
+Par défaut le tube FIFO est dans ~/.weechat/weechat_fifo_xxx ("xxx" est le PID de WeeChat).
+
+Le format attendu est l'un des suivants :
+ plugin.buffer *texte ou commande ici
+ *texte ou commande ici
+
+Par exemple pour changer votre pseudo sur freenode :
+ echo 'irc.server.freenode */nick autrepseudo' >~/.weechat/weechat_fifo_12345
+
+Merci de lire le guide utilisateur pour plus d'information et des exemples.
+
+Exemples :
+ /fifo toggle
+----
diff --git a/doc/fr/weechat_dev.fr.asciidoc b/doc/fr/weechat_dev.fr.asciidoc
index 3c4a39668..0ec591865 100644
--- a/doc/fr/weechat_dev.fr.asciidoc
+++ b/doc/fr/weechat_dev.fr.asciidoc
@@ -203,6 +203,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
| exec-config.c | Options de configuration pour Exec (fichier exec.conf)
| fifo/ | Extension Fifo
| fifo.c | Fonctions principales de Fifo
+| fifo-command.c | Commandes pour Fifo
| fifo-info.c | Info/infolists/hdata pour Fifo
| guile/ | Extension Guile (scheme)
| weechat-guile.c | Fonctions principales pour Guile (chargement/déchargement des scripts, exécution de code Guile)
diff --git a/doc/fr/weechat_user.fr.asciidoc b/doc/fr/weechat_user.fr.asciidoc
index 08cd8ec39..f7033c33b 100644
--- a/doc/fr/weechat_user.fr.asciidoc
+++ b/doc/fr/weechat_user.fr.asciidoc
@@ -2168,6 +2168,11 @@ Si le script s'appelle "auto_weechat_command", vous pouvez le lancer ainsi :
$ ./auto_weechat_command 'irc.freenode.#weechat *bonjour'
----
+[[fifo_commands]]
+==== Commandes
+
+include::autogen/user/fifo_commands.asciidoc[]
+
[[irc_plugin]]
=== Extension IRC
diff --git a/doc/it/autogen/user/fifo_commands.asciidoc b/doc/it/autogen/user/fifo_commands.asciidoc
new file mode 100644
index 000000000..66564ac6e
--- /dev/null
+++ b/doc/it/autogen/user/fifo_commands.asciidoc
@@ -0,0 +1,29 @@
+//
+// This file is auto-generated by script docgen.py.
+// DO NOT EDIT BY HAND!
+//
+[[command_fifo_fifo]]
+[command]*`fifo`* fifo plugin configuration::
+
+----
+/fifo enable|disable|toggle
+
+ enable: enable FIFO pipe
+disable: disable FIFO pipe
+ toggle: toggle FIFO pipe
+
+FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
+By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
+
+The expected format is one of:
+ plugin.buffer *text or command here
+ *text or command here
+
+For example to change your freenode nick:
+ echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
+
+Please read the user's guide for more info and examples.
+
+Examples:
+ /fifo toggle
+----
diff --git a/doc/it/weechat_user.it.asciidoc b/doc/it/weechat_user.it.asciidoc
index 887995c9d..69394f2aa 100644
--- a/doc/it/weechat_user.it.asciidoc
+++ b/doc/it/weechat_user.it.asciidoc
@@ -2207,6 +2207,11 @@ eseguito con:
$ ./auto_weechat_command 'irc.freenode.#weechat *ciao'
----
+[[fifo_commands]]
+==== Comandi
+
+include::autogen/user/fifo_commands.asciidoc[]
+
[[irc_plugin]]
=== Plugin IRC
diff --git a/doc/ja/autogen/user/fifo_commands.asciidoc b/doc/ja/autogen/user/fifo_commands.asciidoc
new file mode 100644
index 000000000..66564ac6e
--- /dev/null
+++ b/doc/ja/autogen/user/fifo_commands.asciidoc
@@ -0,0 +1,29 @@
+//
+// This file is auto-generated by script docgen.py.
+// DO NOT EDIT BY HAND!
+//
+[[command_fifo_fifo]]
+[command]*`fifo`* fifo plugin configuration::
+
+----
+/fifo enable|disable|toggle
+
+ enable: enable FIFO pipe
+disable: disable FIFO pipe
+ toggle: toggle FIFO pipe
+
+FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
+By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
+
+The expected format is one of:
+ plugin.buffer *text or command here
+ *text or command here
+
+For example to change your freenode nick:
+ echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
+
+Please read the user's guide for more info and examples.
+
+Examples:
+ /fifo toggle
+----
diff --git a/doc/ja/weechat_dev.ja.asciidoc b/doc/ja/weechat_dev.ja.asciidoc
index 516295638..eb0b506ce 100644
--- a/doc/ja/weechat_dev.ja.asciidoc
+++ b/doc/ja/weechat_dev.ja.asciidoc
@@ -207,6 +207,8 @@ WeeChat "core" は以下のディレクトリに配置されています:
| exec-config.c | Exec 設定オプション (exec.conf ファイル)
| fifo/ | fifo プラグイン
| fifo.c | fifo の主要関数
+// TRANSLATION MISSING
+| fifo-command.c | Fifo commands
| fifo-info.c | fifo の情報/インフォリスト/hdata
| guile/ | guile (scheme) プラグイン
| weechat-guile.c | guile の主要関数 (スクリプトのロード/アンロード、guile コードの実行)
diff --git a/doc/ja/weechat_user.ja.asciidoc b/doc/ja/weechat_user.ja.asciidoc
index 00e14ecec..6fcef362e 100644
--- a/doc/ja/weechat_user.ja.asciidoc
+++ b/doc/ja/weechat_user.ja.asciidoc
@@ -2101,6 +2101,11 @@ fi
$ ./auto_weechat_command 'irc.freenode.#weechat *hello'
----
+[[fifo_commands]]
+==== コマンド
+
+include::autogen/user/fifo_commands.asciidoc[]
+
[[irc_plugin]]
=== IRC プラグイン
diff --git a/doc/pl/autogen/user/fifo_commands.asciidoc b/doc/pl/autogen/user/fifo_commands.asciidoc
new file mode 100644
index 000000000..66564ac6e
--- /dev/null
+++ b/doc/pl/autogen/user/fifo_commands.asciidoc
@@ -0,0 +1,29 @@
+//
+// This file is auto-generated by script docgen.py.
+// DO NOT EDIT BY HAND!
+//
+[[command_fifo_fifo]]
+[command]*`fifo`* fifo plugin configuration::
+
+----
+/fifo enable|disable|toggle
+
+ enable: enable FIFO pipe
+disable: disable FIFO pipe
+ toggle: toggle FIFO pipe
+
+FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
+By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
+
+The expected format is one of:
+ plugin.buffer *text or command here
+ *text or command here
+
+For example to change your freenode nick:
+ echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
+
+Please read the user's guide for more info and examples.
+
+Examples:
+ /fifo toggle
+----
diff --git a/doc/pl/weechat_user.pl.asciidoc b/doc/pl/weechat_user.pl.asciidoc
index f28c4532a..d7d763e98 100644
--- a/doc/pl/weechat_user.pl.asciidoc
+++ b/doc/pl/weechat_user.pl.asciidoc
@@ -2119,6 +2119,11 @@ Nazwa skryptu to "auto_weechat_command", można go wykonać na przykład tak:
$ ./auto_weechat_command 'irc.freenode.#weechat *hello'
----
+[[fifo_commands]]
+==== Komendy
+
+include::autogen/user/fifo_commands.asciidoc[]
+
[[irc_plugin]]
=== Wtyczka IRC
diff --git a/po/POTFILES.in b/po/POTFILES.in
index dc8f279ef..f524a6fc1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -132,6 +132,8 @@
./src/plugins/exec/exec.h
./src/plugins/fifo/fifo.c
./src/plugins/fifo/fifo.h
+./src/plugins/fifo/fifo-command.c
+./src/plugins/fifo/fifo-command.h
./src/plugins/fifo/fifo-info.c
./src/plugins/fifo/fifo-info.h
./src/plugins/guile/weechat-guile-api.c
diff --git a/po/cs.po b/po/cs.po
index 92cf45a8f..f6caa6a2d 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-10-25 15:19+0100\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: cs\n"
@@ -4993,9 +4993,9 @@ msgstr "%s%s: nemohu vytvořit rouru pro vzdálené ovládání (%s)"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: odstraňuji starou fifo rouru \"%s\""
-#, c-format
-msgid "%s: pipe opened"
-msgstr "%s:roura otevřena"
+#, fuzzy, c-format
+msgid "%s: pipe opened (file: %s)"
+msgstr "Myš je zapnuta"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -5025,6 +5025,45 @@ msgstr "%s%s: chyba při znovunačtení roury, zavírám ji"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: chyba při otevírání souboru, zavírám ho"
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "Myš je zapnuta"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Myš je vypnuta"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "konfigurace logovacího pluginu"
+
+#, fuzzy
+msgid "enable|disable|toggle"
+msgstr "povol|zakaž|přepni [<zpoždění>]"
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr "jméno FIFO roury"
@@ -11207,6 +11246,3 @@ msgstr "%s%s: vypršel časový limit \"%s\" pro %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)"
-
-#~ msgid "%s%s: error, buffer not found for pipe data"
-#~ msgstr "%s%s: chyba, nenalezen buffer pro data roury"
diff --git a/po/de.po b/po/de.po
index 07252b564..75c20c438 100644
--- a/po/de.po
+++ b/po/de.po
@@ -19,8 +19,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-11-12 16:23+0100\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <>\n"
"Language: de\n"
@@ -5931,9 +5931,9 @@ msgstr "FIFO Pipe für Fernsteuerung"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: Entferne alte FIFO Pipe \"%s\""
-#, c-format
-msgid "%s: pipe opened"
-msgstr "%s: Pipe ist geöffnet"
+#, fuzzy, c-format
+msgid "%s: pipe opened (file: %s)"
+msgstr "Maus ist aktiv"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -5964,6 +5964,47 @@ msgstr "%s%s: Pipe kann nicht gelesen werden (%d %s), wird nun geschlossen"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: Fehler beim öffnen der Datei, schließe Datei wieder"
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "Maus ist aktiv"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Maus ist inaktiv"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr ""
+"Konfiguration für \"logger\" Erweiterung (dient zum protokollieren der "
+"Buffer)"
+
+#, fuzzy
+msgid "enable|disable|toggle"
+msgstr "enable|disable|toggle [<delay>]"
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr "Name der FIFO-Pipe"
diff --git a/po/es.po b/po/es.po
index 7b9c1858d..a8d55e1b5 100644
--- a/po/es.po
+++ b/po/es.po
@@ -22,8 +22,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-09-30 20:55+0200\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: es\n"
@@ -5222,9 +5222,9 @@ msgstr "Tubería FIFO para control remoto"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: removiendo vieja tubería fifo \"%s\""
-#, c-format
-msgid "%s: pipe opened"
-msgstr "%s: tubería abierto"
+#, fuzzy, c-format
+msgid "%s: pipe opened (file: %s)"
+msgstr "Ratón activado"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -5254,6 +5254,45 @@ msgstr "%s%s: error al leer la tubería (%d %s), cerrándolo"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: error al abrir el archivo, cerrándolo"
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "Ratón activado"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Ratón desactivado"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "configuración del plugin de registro"
+
+#, fuzzy
+msgid "enable|disable|toggle"
+msgstr "enable|disable|toggle [<retraso>]"
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr "nombre de la tubería FIFO"
@@ -11472,6 +11511,3 @@ msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: no es posible conectarse al transmisor"
-
-#~ msgid "%s%s: error, buffer not found for pipe data"
-#~ msgstr "%s%s: error, buffer no encontrado para los datos de la tubería"
diff --git a/po/fr.po b/po/fr.po
index c56663e6c..be577ba1c 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-11-12 19:55+0100\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -5805,8 +5805,8 @@ msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s : suppression du vieux tube \"%s\""
#, c-format
-msgid "%s: pipe opened"
-msgstr "%s : tube ouvert"
+msgid "%s: pipe opened (file: %s)"
+msgstr "%s : tube ouvert (fichier : %s)"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -5838,6 +5838,64 @@ msgstr "%s%s : erreur en lecture du tube (%d %s), fermeture"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s : erreur d'ouverture du fichier, fermeture"
+#, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "%s : le tube est activé (fichier : %s)"
+
+#, c-format
+msgid "%s: pipe is disabled"
+msgstr "%s : le tube est désactivé"
+
+msgid "fifo plugin configuration"
+msgstr "configuration de l'extension fifo"
+
+msgid "enable|disable|toggle"
+msgstr "enable|disable|toggle"
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+" enable : activer le tube FIFO\n"
+"disable : désactiver le tube FIFO\n"
+" toggle : activer/désactiver le tube FIFO\n"
+"\n"
+"Le tube FIFO est utilisé comme contrôle à distance de WeeChat : vous pouvez "
+"envoyer des commandes ou du texte au tube FIFO depuis votre shell.\n"
+"Par défaut le tube FIFO est dans ~/.weechat/weechat_fifo_xxx (\"xxx\" est le "
+"PID de WeeChat).\n"
+"\n"
+"Le format attendu est l'un des suivants :\n"
+" plugin.buffer *texte ou commande ici\n"
+" *texte ou commande ici\n"
+"\n"
+"Par exemple pour changer votre pseudo sur freenode :\n"
+" echo 'irc.server.freenode */nick autrepseudo' >~/.weechat/"
+"weechat_fifo_12345\n"
+"\n"
+"Merci de lire le guide utilisateur pour plus d'information et des exemples.\n"
+"\n"
+"Exemples :\n"
+" /fifo toggle"
+
msgid "name of FIFO pipe"
msgstr "nom du tube FIFO"
@@ -12463,6 +12521,3 @@ msgstr "%s%s : délai d'attente dépassé pour \"%s\" avec %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s : impossible de se connecter : erreur inattendue (%d)"
-
-#~ msgid "%s%s: error, buffer not found for pipe data"
-#~ msgstr "%s%s : erreur, tampon non trouvé pour les données du tube"
diff --git a/po/hu.po b/po/hu.po
index d589ef2cd..2aa16ded3 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-09-09 09:13+0200\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: hu\n"
@@ -4568,8 +4568,8 @@ msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s nincs elég memória az információs pult üzenethez\n"
#, fuzzy, c-format
-msgid "%s: pipe opened"
-msgstr "FIFO cső nyitva\n"
+msgid "%s: pipe opened (file: %s)"
+msgstr "a felhasználók le lettek tiltva"
#, fuzzy, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -4599,6 +4599,44 @@ msgstr "%s hiba a FIFO cső olvasása közben, bezárás\n"
msgid "%s%s: error opening file, closing it"
msgstr "%s hiba a FIFO cső olvasása közben, bezárás\n"
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "a felhasználók le lettek tiltva"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Nincs aliasz definiálva.\n"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "Beállítások mentése a lemezre\n"
+
+msgid "enable|disable|toggle"
+msgstr ""
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr ""
@@ -10526,7 +10564,3 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: nem sikerült kapcsolódni a küldőhöz\n"
-
-#, fuzzy
-#~ msgid "%s%s: error, buffer not found for pipe data"
-#~ msgstr "%s a \"%s\" szerver nem található (FIFO cső adat)\n"
diff --git a/po/it.po b/po/it.po
index adec82148..16660920f 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-09-30 20:55+0200\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: it\n"
@@ -5369,9 +5369,9 @@ msgstr "Pipe FIFO per il controllo remoto"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: rimozione della pipe fifo %s precedente"
-#, c-format
-msgid "%s: pipe opened"
-msgstr "%s: pipe aperta"
+#, fuzzy, c-format
+msgid "%s: pipe opened (file: %s)"
+msgstr "Mouse abilitato"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -5402,6 +5402,45 @@ msgstr "%s%s: errore nella lettura della pipe (%d %s), chiusura"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: errore nella lettura del file, chiusura"
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "Mouse abilitato"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Mouse disabilitato"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "configurazione del plugin logger"
+
+#, fuzzy
+msgid "enable|disable|toggle"
+msgstr "enable|disable|toggle [<ritardo>]"
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr "nome della pipe FIFO"
@@ -11655,6 +11694,3 @@ msgstr "%s%s: timeout per \"%s\" con %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: impossibile connettersi al mittente"
-
-#~ msgid "%s%s: error, buffer not found for pipe data"
-#~ msgstr "%s%s: errore, buffer non trovato per la pipe dati"
diff --git a/po/ja.po b/po/ja.po
index 4e6fc11da..df42b5980 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-11-22 09:00+0900\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/translation_ja>\n"
"Language: ja\n"
@@ -5545,9 +5545,9 @@ msgstr "リモート操作用の FIFO パイプ"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: 古い fifo パイプ \"%s\" の削除中"
-#, c-format
-msgid "%s: pipe opened"
-msgstr "%s: パイプを開けました"
+#, fuzzy, c-format
+msgid "%s: pipe opened (file: %s)"
+msgstr "マウスを有効化しました"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -5577,6 +5577,45 @@ msgstr "%s%s: パイプ読み取り中にエラー (%d %s)、パイプを閉じ
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: ファイルを開いている最中にエラー、ファイルを閉じています"
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "マウスを有効化しました"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "マウスを無効化しました"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "logger プラグイン設定"
+
+#, fuzzy
+msgid "enable|disable|toggle"
+msgstr "enable|disable|toggle [<delay>]"
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr "FIFO パイプの名前"
@@ -11982,6 +12021,3 @@ msgstr "%s%s: \"%s\" のタイムアウト %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: 接続できません: 未定義のエラー (%d)"
-
-#~ msgid "%s%s: error, buffer not found for pipe data"
-#~ msgstr "%s%s: エラー、パイプデータで指定されたバッファが見つかりません"
diff --git a/po/pl.po b/po/pl.po
index a94e3193e..c91a3d618 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-11-04 18:12+0100\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: pl\n"
@@ -5671,9 +5671,9 @@ msgstr "kolejka FIFO dla zdalnego sterowania"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: usuwam stary strumień fifo \"%s\""
-#, c-format
-msgid "%s: pipe opened"
-msgstr "%s: otwarto strumień"
+#, fuzzy, c-format
+msgid "%s: pipe opened (file: %s)"
+msgstr "Obsługa myszy włączona"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -5704,6 +5704,45 @@ msgstr "%s%s: błąd odczytu z kolejki (%d %s), zamykam ją"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: błąd podczas otwarcia pliku, zamykam go"
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "Obsługa myszy włączona"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Obsługa myszy wyłączona"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "konfiguracja wtyczki logera"
+
+#, fuzzy
+msgid "enable|disable|toggle"
+msgstr "enable|disable|toggle [<opóźnienie>]"
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr "nazwa strumienia FIFO"
@@ -12181,6 +12220,3 @@ msgstr "%s%s: przekroczono czas na \"%s\" z %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nie można połączyć: niespodziewany błąd (%d)"
-
-#~ msgid "%s%s: error, buffer not found for pipe data"
-#~ msgstr "%s%s: błąd, nie znaleziono buforu dla danych ze strumienia"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index aa600c5cd..c74360315 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-09-30 20:56+0200\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5162,9 +5162,9 @@ msgstr ""
msgid "%s: removing old fifo pipe \"%s\""
msgstr ""
-#, c-format
-msgid "%s: pipe opened"
-msgstr ""
+#, fuzzy, c-format
+msgid "%s: pipe opened (file: %s)"
+msgstr "Mouse está habilitado"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -5194,6 +5194,45 @@ msgstr "%s%s: erro ao enviar dados ao cliente: %s"
msgid "%s%s: error opening file, closing it"
msgstr ""
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "Mouse está habilitado"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Mouse está desabilitado"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "configuração do plugin de registro"
+
+#, fuzzy
+msgid "enable|disable|toggle"
+msgstr "enable|disable|toggle [<atraso>]"
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr ""
diff --git a/po/ru.po b/po/ru.po
index 2ee33f56a..0c1884dd2 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
-"PO-Revision-Date: 2015-09-09 09:13+0200\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
+"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: ru\n"
@@ -4606,8 +4606,8 @@ msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s недостаточно памяти для сообщения в строке информации\n"
#, fuzzy, c-format
-msgid "%s: pipe opened"
-msgstr "FIFO pipe открыт\n"
+msgid "%s: pipe opened (file: %s)"
+msgstr "команда users отключена"
#, fuzzy, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -4637,6 +4637,44 @@ msgstr "%s ошибка чтения FIFO pipe, закрываю его\n"
msgid "%s%s: error opening file, closing it"
msgstr "%s ошибка чтения FIFO pipe, закрываю его\n"
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "команда users отключена"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Сокращения не заданы.\n"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "Сохраняю конфигурацию\n"
+
+msgid "enable|disable|toggle"
+msgstr ""
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr ""
@@ -10553,7 +10591,3 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: не могу соединиться с отправителем\n"
-
-#, fuzzy
-#~ msgid "%s%s: error, buffer not found for pipe data"
-#~ msgstr "%s сервер \"%s\" не найден (данные FIFO pipe)\n"
diff --git a/po/srcfiles.cmake b/po/srcfiles.cmake
index 5e11f3b85..f8e4f01d9 100644
--- a/po/srcfiles.cmake
+++ b/po/srcfiles.cmake
@@ -133,6 +133,8 @@ SET(WEECHAT_SOURCES
./src/plugins/exec/exec.h
./src/plugins/fifo/fifo.c
./src/plugins/fifo/fifo.h
+./src/plugins/fifo/fifo-command.c
+./src/plugins/fifo/fifo-command.h
./src/plugins/fifo/fifo-info.c
./src/plugins/fifo/fifo-info.h
./src/plugins/guile/weechat-guile-api.c
diff --git a/po/tr.po b/po/tr.po
index 765a91d50..5a5bcf786 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-03-10 21:33+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4162,9 +4162,9 @@ msgstr ""
msgid "%s: removing old fifo pipe \"%s\""
msgstr ""
-#, c-format
-msgid "%s: pipe opened"
-msgstr ""
+#, fuzzy, c-format
+msgid "%s: pipe opened (file: %s)"
+msgstr "Filtre \"%s\" etkin"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@@ -4194,6 +4194,44 @@ msgstr ""
msgid "%s%s: error opening file, closing it"
msgstr ""
+#, fuzzy, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr "Filtre \"%s\" etkin"
+
+#, fuzzy, c-format
+msgid "%s: pipe is disabled"
+msgstr "Filtre \"%s\" devre dışı"
+
+#, fuzzy
+msgid "fifo plugin configuration"
+msgstr "aspell eklenti yapılandırma"
+
+msgid "enable|disable|toggle"
+msgstr ""
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr ""
diff --git a/po/weechat.pot b/po/weechat.pot
index f6260a76b..a08fe39d0 100644
--- a/po/weechat.pot
+++ b/po/weechat.pot
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2015-11-12 16:20+0100\n"
+"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4148,7 +4148,7 @@ msgid "%s: removing old fifo pipe \"%s\""
msgstr ""
#, c-format
-msgid "%s: pipe opened"
+msgid "%s: pipe opened (file: %s)"
msgstr ""
#, c-format
@@ -4179,6 +4179,43 @@ msgstr ""
msgid "%s%s: error opening file, closing it"
msgstr ""
+#, c-format
+msgid "%s: pipe is enabled (file: %s)"
+msgstr ""
+
+#, c-format
+msgid "%s: pipe is disabled"
+msgstr ""
+
+msgid "fifo plugin configuration"
+msgstr ""
+
+msgid "enable|disable|toggle"
+msgstr ""
+
+msgid ""
+" enable: enable FIFO pipe\n"
+"disable: disable FIFO pipe\n"
+" toggle: toggle FIFO pipe\n"
+"\n"
+"FIFO pipe is used as remote control of WeeChat: you can send commands or "
+"text to the FIFO pipe from your shell.\n"
+"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
+"WeeChat PID).\n"
+"\n"
+"The expected format is one of:\n"
+" plugin.buffer *text or command here\n"
+" *text or command here\n"
+"\n"
+"For example to change your freenode nick:\n"
+" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
+"\n"
+"Please read the user's guide for more info and examples.\n"
+"\n"
+"Examples:\n"
+" /fifo toggle"
+msgstr ""
+
msgid "name of FIFO pipe"
msgstr ""
diff --git a/src/plugins/fifo/CMakeLists.txt b/src/plugins/fifo/CMakeLists.txt
index 9a547d86e..da59f0939 100644
--- a/src/plugins/fifo/CMakeLists.txt
+++ b/src/plugins/fifo/CMakeLists.txt
@@ -19,6 +19,7 @@
add_library(fifo MODULE
fifo.c fifo.h
+fifo-command.c fifo-command.h
fifo-info.c fifo-info.h)
set_target_properties(fifo PROPERTIES PREFIX "")
diff --git a/src/plugins/fifo/Makefile.am b/src/plugins/fifo/Makefile.am
index b7fb2ec7e..5fb5475a5 100644
--- a/src/plugins/fifo/Makefile.am
+++ b/src/plugins/fifo/Makefile.am
@@ -25,6 +25,8 @@ lib_LTLIBRARIES = fifo.la
fifo_la_SOURCES = fifo.c \
fifo.h \
+ fifo-command.c \
+ fifo-command.h \
fifo-info.c \
fifo-info.h
fifo_la_LDFLAGS = -module -no-undefined
diff --git a/src/plugins/fifo/fifo-command.c b/src/plugins/fifo/fifo-command.c
new file mode 100644
index 000000000..7ba675442
--- /dev/null
+++ b/src/plugins/fifo/fifo-command.c
@@ -0,0 +1,117 @@
+/*
+ * fifo-command.c - fifo command
+ *
+ * Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org>
+ *
+ * This file is part of WeeChat, the extensible chat client.
+ *
+ * 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.
+ *
+ * WeeChat is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <stdlib.h>
+
+#include "../weechat-plugin.h"
+#include "fifo.h"
+
+
+/*
+ * Callback for command "/fifo": manages FIFO pipe.
+ */
+
+int
+fifo_command_fifo (void *data, struct t_gui_buffer *buffer, int argc,
+ char **argv, char **argv_eol)
+{
+ /* make C compiler happy */
+ (void) data;
+ (void) buffer;
+ (void) argv_eol;
+
+ if (argc == 1)
+ {
+ if (fifo_fd != -1)
+ {
+ weechat_printf (NULL,
+ _("%s: pipe is enabled (file: %s)"),
+ FIFO_PLUGIN_NAME,
+ fifo_filename);
+ }
+ else
+ {
+ weechat_printf (NULL,
+ _("%s: pipe is disabled"), FIFO_PLUGIN_NAME);
+ }
+ return WEECHAT_RC_OK;
+ }
+
+ /* enable pipe */
+ if (weechat_strcasecmp (argv[1], "enable") == 0)
+ {
+ weechat_config_set_plugin (FIFO_OPTION_NAME, "on");
+ return WEECHAT_RC_OK;
+ }
+
+ /* disable pipe */
+ if (weechat_strcasecmp (argv[1], "disable") == 0)
+ {
+ weechat_config_set_plugin (FIFO_OPTION_NAME, "off");
+ return WEECHAT_RC_OK;
+ }
+
+ /* toggle pipe */
+ if (weechat_strcasecmp (argv[1], "toggle") == 0)
+ {
+ weechat_config_set_plugin (FIFO_OPTION_NAME,
+ (fifo_fd == -1) ? "on" : "off");
+ return WEECHAT_RC_OK;
+ }
+
+ WEECHAT_COMMAND_ERROR;
+}
+
+/*
+ * Hooks fifo command.
+ */
+
+void
+fifo_command_init ()
+{
+ weechat_hook_command (
+ "fifo",
+ N_("fifo plugin configuration"),
+ N_("enable|disable|toggle"),
+ N_(" enable: enable FIFO pipe\n"
+ "disable: disable FIFO pipe\n"
+ " toggle: toggle FIFO pipe\n"
+ "\n"
+ "FIFO pipe is used as remote control of WeeChat: you can send "
+ "commands or text to the FIFO pipe from your shell.\n"
+ "By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx "
+ "(\"xxx\" is the WeeChat PID).\n"
+ "\n"
+ "The expected format is one of:\n"
+ " plugin.buffer *text or command here\n"
+ " *text or command here\n"
+ "\n"
+ "For example to change your freenode nick:\n"
+ " echo 'irc.server.freenode */nick newnick' "
+ ">~/.weechat/weechat_fifo_12345\n"
+ "\n"
+ "Please read the user's guide for more info and examples.\n"
+ "\n"
+ "Examples:\n"
+ " /fifo toggle"),
+ "enable|disable|toggle",
+ &fifo_command_fifo, NULL);
+}
diff --git a/src/plugins/fifo/fifo-command.h b/src/plugins/fifo/fifo-command.h
new file mode 100644
index 000000000..4c57e2250
--- /dev/null
+++ b/src/plugins/fifo/fifo-command.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org>
+ *
+ * This file is part of WeeChat, the extensible chat client.
+ *
+ * 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.
+ *
+ * WeeChat is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef WEECHAT_FIFO_COMMAND_H
+#define WEECHAT_FIFO_COMMAND_H 1
+
+extern void fifo_command_init ();
+
+#endif /* WEECHAT_FIFO_COMMAND_H */
diff --git a/src/plugins/fifo/fifo.c b/src/plugins/fifo/fifo.c
index a0474e4b8..a83081744 100644
--- a/src/plugins/fifo/fifo.c
+++ b/src/plugins/fifo/fifo.c
@@ -32,6 +32,7 @@
#include "../weechat-plugin.h"
#include "fifo.h"
+#include "fifo-command.h"
#include "fifo-info.h"
@@ -158,8 +159,9 @@ fifo_create ()
if ((weechat_fifo_plugin->debug >= 1) || !fifo_quiet)
{
weechat_printf (NULL,
- _("%s: pipe opened"),
- FIFO_PLUGIN_NAME);
+ _("%s: pipe opened (file: %s)"),
+ FIFO_PLUGIN_NAME,
+ fifo_filename);
}
fifo_fd_hook = weechat_hook_fd (fifo_fd, 1, 0, 0,
&fifo_read, NULL);
@@ -424,6 +426,8 @@ fifo_config_cb (void *data, const char *option, const char *value)
int
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
{
+ char *str_option[256];
+
/* make C compiler happy */
(void) argc;
(void) argv;
@@ -434,8 +438,11 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
fifo_create ();
- weechat_hook_config ("plugins.var.fifo.fifo", &fifo_config_cb, NULL);
+ snprintf (str_option, sizeof (str_option),
+ "plugins.var.fifo.%s", FIFO_OPTION_NAME);
+ weechat_hook_config (str_option, &fifo_config_cb, NULL);
+ fifo_command_init ();
fifo_info_init ();
fifo_quiet = 0;
diff --git a/src/plugins/fifo/fifo.h b/src/plugins/fifo/fifo.h
index 008251ef5..fc5851896 100644
--- a/src/plugins/fifo/fifo.h
+++ b/src/plugins/fifo/fifo.h
@@ -22,8 +22,10 @@
#define weechat_plugin weechat_fifo_plugin
#define FIFO_PLUGIN_NAME "fifo"
+#define FIFO_OPTION_NAME "fifo"
extern struct t_weechat_plugin *weechat_fifo_plugin;
+extern int fifo_fd;
extern char *fifo_filename;
#endif /* WEECHAT_FIFO_H */