diff --git a/CMakeLists.txt b/CMakeLists.txt index c2b0ecda3..ab023296b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,6 @@ OPTION(ENABLE_ALIAS "Enable Alias plugin" ON) OPTION(ENABLE_ASPELL "Enable Aspell plugin" ON) OPTION(ENABLE_ENCHANT "Enable Enchant lib for Aspell plugin" OFF) OPTION(ENABLE_CHARSET "Enable Charset plugin" ON) -OPTION(ENABLE_DEMO "Enable Demo plugin" OFF) OPTION(ENABLE_FIFO "Enable FIFO plugin" ON) OPTION(ENABLE_IRC "Enable IRC plugin" ON) OPTION(ENABLE_LOGGER "Enable Logger plugin" ON) diff --git a/ChangeLog b/ChangeLog index a28162986..e0ac32aa5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -50,6 +50,7 @@ Version 0.4.2 (under dev!) to empty string * api: use pointer for infolist "hook" to return only one hook * api: add new function strlen_screen +* plugins: remove the demo plugin * aspell: rename option aspell.look.color to aspell.color.misspelled, add option aspell.color.suggestions * aspell: add support of enchant library (patch #6858) diff --git a/configure.ac b/configure.ac index fb3eb8c29..0f9cf18f7 100644 --- a/configure.ac +++ b/configure.ac @@ -104,7 +104,6 @@ AH_VERBATIM([HAVE_EAT_NEWLINE_GLITCH], [#undef HAVE_EAT_NEWLINE_GLITCH]) AH_VERBATIM([PLUGIN_ALIAS], [#undef PLUGIN_ALIAS]) AH_VERBATIM([PLUGIN_ASPELL], [#undef PLUGIN_ASPELL]) AH_VERBATIM([PLUGIN_CHARSET], [#undef PLUGIN_CHARSET]) -AH_VERBATIM([PLUGIN_DEMO], [#undef PLUGIN_DEMO]) AH_VERBATIM([PLUGIN_FIFO], [#undef PLUGIN_FIFO]) AH_VERBATIM([PLUGIN_IRC], [#undef PLUGIN_IRC]) AH_VERBATIM([PLUGIN_LOGGER], [#undef PLUGIN_LOGGER]) @@ -132,7 +131,6 @@ AC_ARG_ENABLE(alias, [ --disable-alias turn off Alias plugin (de AC_ARG_ENABLE(aspell, [ --disable-aspell turn off Aspell plugin (default=compiled)],enable_aspell=$enableval,enable_aspell=yes) AC_ARG_ENABLE(enchant, [ --enable-enchant turn on Enchant lib for Aspell plugin (default=off)],enable_enchant=$enableval,enable_enchant=no) AC_ARG_ENABLE(charset, [ --disable-charset turn off Charset plugin (default=compiled if found)],enable_charset=$enableval,enable_charset=yes) -AC_ARG_ENABLE(demo, [ --enable-demo turn on Demo plugin (default=off)],enable_demo=$enableval,enable_demo=no) AC_ARG_ENABLE(fifo, [ --disable-fifo turn off Fifo plugin (default=compiled)],enable_fifo=$enableval,enable_fifo=yes) AC_ARG_ENABLE(irc, [ --disable-irc turn off IRC plugin (default=compiled)],enable_irc=$enableval,enable_irc=yes) AC_ARG_ENABLE(logger, [ --disable-logger turn off Logger plugin (default=compiled)],enable_logger=$enableval,enable_logger=yes) @@ -337,18 +335,6 @@ else not_asked="$not_asked charset" fi -# ---------------------------------- demo -------------------------------------- - -if test "x$enable_demo" = "xyes" ; then - DEMO_CFLAGS="" - DEMO_LFLAGS="" - AC_SUBST(DEMO_CFLAGS) - AC_SUBST(DEMO_LFLAGS) - AC_DEFINE(PLUGIN_DEMO) -else - not_asked="$not_asked demo" -fi - # ---------------------------------- fifo -------------------------------------- if test "x$enable_fifo" = "xyes" ; then @@ -1101,7 +1087,6 @@ AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes") AM_CONDITIONAL(PLUGIN_ALIAS, test "$enable_alias" = "yes") AM_CONDITIONAL(PLUGIN_ASPELL, test "$enable_aspell" = "yes") AM_CONDITIONAL(PLUGIN_CHARSET, test "$enable_charset" = "yes") -AM_CONDITIONAL(PLUGIN_DEMO, test "$enable_demo" = "yes") AM_CONDITIONAL(PLUGIN_FIFO, test "$enable_fifo" = "yes") AM_CONDITIONAL(PLUGIN_IRC, test "$enable_irc" = "yes") AM_CONDITIONAL(PLUGIN_LOGGER, test "$enable_logger" = "yes") @@ -1134,7 +1119,6 @@ AC_OUTPUT([Makefile src/plugins/alias/Makefile src/plugins/aspell/Makefile src/plugins/charset/Makefile - src/plugins/demo/Makefile src/plugins/fifo/Makefile src/plugins/irc/Makefile src/plugins/logger/Makefile @@ -1178,9 +1162,6 @@ fi if test "x$enable_charset" = "xyes"; then listplugins="$listplugins charset" fi -if test "x$enable_demo" = "xyes"; then - listplugins="$listplugins demo" -fi if test "x$enable_fifo" = "xyes"; then listplugins="$listplugins fifo" fi diff --git a/doc/de/autogen/user/demo_commands.txt b/doc/de/autogen/user/demo_commands.txt deleted file mode 100644 index 0697f9ae7..000000000 --- a/doc/de/autogen/user/demo_commands.txt +++ /dev/null @@ -1,36 +0,0 @@ -[[command_demo_demo_buffer]] -[command]*`demo_buffer`* Öffne einen neuen Buffer:: -........................................ -/demo_buffer -........................................ - -[[command_demo_demo_info]] -[command]*`demo_info`* Hole eine Info und zeige sie an:: -........................................ -/demo_info [] - - info: Information die dargestellt werden soll -arguments: optionale Argumente für Info - -Wird der Befehl ohne Argumente aufgerufen werden alle verfügbaren Informationen angezeigt -........................................ - -[[command_demo_demo_infolist]] -[command]*`demo_infolist`* Hole eine Infolist und zeige sie an:: -........................................ -/demo_infolist [] - - infolist: Infoliste die dargestellt werden soll -arguments: optionale Argumente für Infoliste - -Wird der Befehl ohne Argumente aufgerufen werden alle verfügbaren Informationen der Infoliste angezeigt -........................................ - -[[command_demo_demo_printf]] -[command]*`demo_printf`* Gibt ein paar Nachrichten im aktuellen Buffer aus:: -........................................ -/demo_printf - -text: schreibt diesen Text -........................................ - diff --git a/doc/de/weechat_user.de.txt b/doc/de/weechat_user.de.txt index a5a543fa0..9eeb01c88 100644 --- a/doc/de/weechat_user.de.txt +++ b/doc/de/weechat_user.de.txt @@ -1555,7 +1555,6 @@ Standarderweiterungen: | alias | definiert Alias für Befehle | aspell | Rechtschreibprüfung für Befehlszeile | charset | Zeichensatz (de)-kodierung in Buffern -| demo | Demo Erweiterung (nicht standardmäßig kompiliert) | fifo | FIFO Pipe die zur Fernsteuerung von WeeChat genutzt werden kann | irc | IRC Chat-Protokoll | logger | erstellt Protokolldateien von Buffern diff --git a/doc/docgen.py b/doc/docgen.py index 3bd7019ab..7c0fca1f2 100644 --- a/doc/docgen.py +++ b/doc/docgen.py @@ -82,7 +82,6 @@ plugin_list = { 'weechat' : 'co', 'alias' : '', 'aspell' : 'o', 'charset' : 'co', - 'demo' : 'co', 'fifo' : 'co', 'irc' : 'co', 'logger' : 'co', diff --git a/doc/en/autogen/user/demo_commands.txt b/doc/en/autogen/user/demo_commands.txt deleted file mode 100644 index 77f656dc5..000000000 --- a/doc/en/autogen/user/demo_commands.txt +++ /dev/null @@ -1,36 +0,0 @@ -[[command_demo_demo_buffer]] -[command]*`demo_buffer`* open a new buffer:: -........................................ -/demo_buffer -........................................ - -[[command_demo_demo_info]] -[command]*`demo_info`* get and display an info:: -........................................ -/demo_info [] - - info: info to display -arguments: optional arguments for info - -Without argument, this command displays list of available infos -........................................ - -[[command_demo_demo_infolist]] -[command]*`demo_infolist`* get and display an infolist:: -........................................ -/demo_infolist [] - - infolist: infolist to display -arguments: optional arguments for infolist - -Without argument, this command displays list of available infolists -........................................ - -[[command_demo_demo_printf]] -[command]*`demo_printf`* print some messages on current buffer:: -........................................ -/demo_printf - -text: write this text -........................................ - diff --git a/doc/en/weechat_dev.en.txt b/doc/en/weechat_dev.en.txt index e892c8024..dc55acb99 100644 --- a/doc/en/weechat_dev.en.txt +++ b/doc/en/weechat_dev.en.txt @@ -55,7 +55,6 @@ The main WeeChat directories are: | alias/ | Alias plugin | aspell/ | Aspell plugin | charset/ | Charset plugin -| demo/ | Demo plugin | fifo/ | Fifo plugin (FIFO pipe used to remotely send commands to WeeChat) | irc/ | IRC plugin | logger/ | Logger plugin (write messages displayed to files) @@ -175,8 +174,6 @@ Plugins | weechat-aspell-speller.c | Spellers management | charset/ | Charset plugin | charset.c | Charset functions -| demo/ | Demo plugin -| demo.c | Demo functions | fifo/ | Fifo plugin | fifo.c | Main fifo functions | fifo-info.c | Fifo info/infolists/hdata diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt index 5f7ba5471..dc1e404c8 100644 --- a/doc/en/weechat_user.en.txt +++ b/doc/en/weechat_user.en.txt @@ -1527,7 +1527,6 @@ Default plugins are: | alias | Define alias for commands | aspell | Spell checking for command line | charset | Charset decoding/encoding for buffers -| demo | Demo plugin (not compiled by default) | fifo | FIFO pipe used to remotely send commands to WeeChat | irc | IRC chat protocol | logger | Log buffers to files diff --git a/doc/fr/autogen/user/demo_commands.txt b/doc/fr/autogen/user/demo_commands.txt deleted file mode 100644 index 0cf209546..000000000 --- a/doc/fr/autogen/user/demo_commands.txt +++ /dev/null @@ -1,36 +0,0 @@ -[[command_demo_demo_buffer]] -[command]*`demo_buffer`* ouvrir un nouveau tampon:: -........................................ -/demo_buffer -........................................ - -[[command_demo_demo_info]] -[command]*`demo_info`* lire et afficher une info:: -........................................ -/demo_info [] - - info: info à afficher -paramètres: paramètres optionnels pour l'info - -Sans paramètre, cette commande affiche la liste des infos disponibles -........................................ - -[[command_demo_demo_infolist]] -[command]*`demo_infolist`* lire et afficher une infolist:: -........................................ -/demo_infolist [] - - infolist: infolist à afficher -paramètres: paramètres optionnels pour l'infolist - -Sans paramètre, cette commande affiche la liste des infolists disponibles -........................................ - -[[command_demo_demo_printf]] -[command]*`demo_printf`* afficher des messages sur le tampon courant:: -........................................ -/demo_printf - -texte: affiche ce texte -........................................ - diff --git a/doc/fr/weechat_user.fr.txt b/doc/fr/weechat_user.fr.txt index e57254442..3df3d8df3 100644 --- a/doc/fr/weechat_user.fr.txt +++ b/doc/fr/weechat_user.fr.txt @@ -1569,7 +1569,6 @@ Les extensions par défaut sont : | alias | Définir des alias pour les commandes | aspell | Vérification orthographique de la ligne de commande | charset | Encodage/encodage avec jeu de caractère sur les tampons -| demo | Extension de démonstration (non compilée par défaut) | fifo | Tube FIFO pour envoyer des commandes à distance vers WeeChat | irc | Discussion avec le protocole IRC | logger | Enregistrement des tampons dans des fichiers diff --git a/doc/it/autogen/user/demo_commands.txt b/doc/it/autogen/user/demo_commands.txt deleted file mode 100644 index 51da52877..000000000 --- a/doc/it/autogen/user/demo_commands.txt +++ /dev/null @@ -1,36 +0,0 @@ -[[command_demo_demo_buffer]] -[command]*`demo_buffer`* apri un nuovo buffer:: -........................................ -/demo_buffer -........................................ - -[[command_demo_demo_info]] -[command]*`demo_info`* ricevi e visualizza un'informazione:: -........................................ -/demo_info [] - - info: informazioni da visualizzare -argomenti: argomenti opzionali per le informazioni - -Senza argomenti, questo comando visualizza un elenco di informazioni disponibili -........................................ - -[[command_demo_demo_infolist]] -[command]*`demo_infolist`* ricevi e visualizza una lista info:: -........................................ -/demo_infolist [] - - infolist: lista info da visualizzare -argomenti: argomenti opzionali per la lista info - -Senza argomento, il comando visualizza l'elenco delle liste info disponibili -........................................ - -[[command_demo_demo_printf]] -[command]*`demo_printf`* stampa alcuni messaggi sul buffer corrente:: -........................................ -/demo_printf - -testo: scrivi questo testo -........................................ - diff --git a/doc/it/weechat_user.it.txt b/doc/it/weechat_user.it.txt index 3bbfba309..ae693ac8c 100644 --- a/doc/it/weechat_user.it.txt +++ b/doc/it/weechat_user.it.txt @@ -1565,7 +1565,6 @@ I plugin predefiniti sono: | alias | Definisce gli alias per i comandi | aspell | Controllo ortografico per la riga di comando | charset | Set di caratteri per la codifica/decodifica nei buffer -| demo | Plugin Demo (non viene compilato per default) | fifo | pipe FIFO utilizzata per inviare comandi da remoto su WeeChat | irc | protocollo chat per IRC | logger | Registra i buffer su file diff --git a/doc/ja/autogen/user/demo_commands.txt b/doc/ja/autogen/user/demo_commands.txt deleted file mode 100644 index 17e7efa73..000000000 --- a/doc/ja/autogen/user/demo_commands.txt +++ /dev/null @@ -1,36 +0,0 @@ -[[command_demo_demo_buffer]] -[command]*`demo_buffer`* 新しいバッファを開く:: -........................................ -/demo_buffer -........................................ - -[[command_demo_demo_info]] -[command]*`demo_info`* 情報を取得して表示:: -........................................ -/demo_info [] - - info: 表示する情報 -arguments: 情報のオプション引数 - -引数のない場合、利用可能な情報のリストを表示 -........................................ - -[[command_demo_demo_infolist]] -[command]*`demo_infolist`* infolist を取得して表示:: -........................................ -/demo_infolist [] - - infolist: 表示する infolist -arguments: infolist のオプション引数 - -引数のない場合、利用可能な infolist のリストを表示 -........................................ - -[[command_demo_demo_printf]] -[command]*`demo_printf`* 現在のバッファにいつかメッセージを表示:: -........................................ -/demo_printf - -text: このテキストを書き込み -........................................ - diff --git a/doc/ja/weechat_user.ja.txt b/doc/ja/weechat_user.ja.txt index 809aad645..3688f0afc 100644 --- a/doc/ja/weechat_user.ja.txt +++ b/doc/ja/weechat_user.ja.txt @@ -1489,7 +1489,6 @@ GNU/Linux の場合、プラグインファイルは ".so" という拡張子を | alias | コマンドの別名を定義 | aspell | コマンドラインのスペルチェック | charset | バッファの文字コードに従ってデコード/エンコード -| demo | デモプラグイン (デフォルトではコンパイルされません) | fifo | 外部から WeeChat にコマンドを送信するための FIFO パイプ | irc | IRC チャットプロトコル | logger | バッファの内容をファイルに保存 diff --git a/po/POTFILES.in b/po/POTFILES.in index 00f21c3d7..563ccdbc4 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -110,7 +110,6 @@ ./src/plugins/aspell/weechat-aspell-speller.c ./src/plugins/aspell/weechat-aspell-speller.h ./src/plugins/charset/charset.c -./src/plugins/demo/demo.c ./src/plugins/fifo/fifo.c ./src/plugins/fifo/fifo.h ./src/plugins/fifo/fifo-info.c diff --git a/po/cs.po b/po/cs.po index 958a28e59..a0028bb60 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,8 +20,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:51+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:41+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" "Language: cs\n" @@ -4081,93 +4081,6 @@ msgstr "" "charset: nová znaková sada pro aktuální buffer\n" " reset: resetovat znakové sady aktuálního bufferu" -#, fuzzy -msgid "Demo plugin" -msgstr "Plugin" - -msgid "demo message without prefix" -msgstr "demo zpráva bez prefixu" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "%sdemo zpráva s chybovým prefixem" - -msgid "colors" -msgstr "barvy" - -msgid "Available infos:" -msgstr "Dostupné informace:" - -msgid "Available infolists:" -msgstr "Dostupné infolisty:" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "ukázkový_signál: signál: %s, typ_dat: %s, data_signálu: \"%s\"" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "ukázkový_signál: signál: %s, typ_dat: %s, data_signalu: %d" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "ukázkový_signál: signál: %s, typ_dat: %s, data_signalu: 0x%lx" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" -"ukázkový_signál: signál: %s, typ_dat: %s, data_signál: 0x%lx (neznámý typ)" - -msgid "print some messages on current buffer" -msgstr "vypsat některé zprávy do aktuálního bufferu" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "text: zapsat tento text" - -msgid "open a new buffer" -msgstr "otevřít nový buffer" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "získat a zobrazit informace" - -msgid " []" -msgstr " []" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" -" info: infoinformace, kterou zobrazit\n" -"argumenty: volitelné argumety pro info\n" -"\n" -"Spuštění příkazu bez argumetů zobrazí seznam dostupných informací" - -msgid "get and display an infolist" -msgstr "získat a zobrazit infolist" - -msgid " []" -msgstr " []" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" -" infolist: infolist, který zobrazit\n" -"argumenty: volitelné argumenty pro infolist\n" -"\n" -"Spuštění příkazu bez argumetů zobrazí seznam dostupných infolistů" - #, fuzzy msgid "FIFO pipe for remote control" msgstr "%s%s: nemohu vytvořit rouru pro vzdálené ovládání (%s)" @@ -5657,6 +5570,9 @@ msgstr "" "poslat zprávu všem aktuálně připojeným uživatelům, kteří mají u sebe " "nastaven uživatelský mód 'w'" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "text: text pro poslání" @@ -9624,12 +9540,3 @@ msgstr "" msgid "Constants" msgstr "" - -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%sKanál %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s%s)" - -#~ msgid "Act: " -#~ msgstr "Akt: " diff --git a/po/de.po b/po/de.po index d7e74954d..d89313cc1 100644 --- a/po/de.po +++ b/po/de.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:51+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:41+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" "Language: de_DE\n" @@ -4574,94 +4574,6 @@ msgstr "" "charset: wähle neuen Zeichensatz für aktuellen Buffer\n" " reset: setze im aktuellen Buffer den Zeichensatz zurück" -msgid "Demo plugin" -msgstr "Demo-Erweiterung" - -msgid "demo message without prefix" -msgstr "Demo-Nachricht, ohne Präfix" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "%sDemo-Nachricht mit fehlerhaftem Präfix" - -msgid "colors" -msgstr "Farben" - -msgid "Available infos:" -msgstr "verfügbare Informationen:" - -msgid "Available infolists:" -msgstr "verfügbare Infolisten:" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "Demo_Signal: Signal: %s, Datentyp: %s, Datensignal: \"%s\"" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "Demo_Signal: Signal: %s, Datentyp: %s, Datensignal: %d" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "Demo_Signal: Signal: %s, Datentyp: %s, Datensignal: 0x%lx" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" -"Demo_Signal: Signal: %s, Datentyp: %s, Datensignal: 0x%lx (unbekannter Typ)" - -msgid "print some messages on current buffer" -msgstr "Gibt ein paar Nachrichten im aktuellen Buffer aus" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "text: schreibt diesen Text" - -msgid "open a new buffer" -msgstr "Öffne einen neuen Buffer" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "Hole eine Info und zeige sie an" - -msgid " []" -msgstr " []" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" -" info: Information die dargestellt werden soll\n" -"arguments: optionale Argumente für Info\n" -"\n" -"Wird der Befehl ohne Argumente aufgerufen werden alle verfügbaren " -"Informationen angezeigt" - -msgid "get and display an infolist" -msgstr "Hole eine Infolist und zeige sie an" - -msgid " []" -msgstr " []" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" -" infolist: Infoliste die dargestellt werden soll\n" -"arguments: optionale Argumente für Infoliste\n" -"\n" -"Wird der Befehl ohne Argumente aufgerufen werden alle verfügbaren " -"Informationen der Infoliste angezeigt" - msgid "FIFO pipe for remote control" msgstr "FIFO Pipe für Fernsteuerung" @@ -6196,6 +6108,9 @@ msgid "" "mode for themselves" msgstr "Nachricht an alle User schicken die den 'w'-Mode gesetzt haben" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "text: Text der gesendet werden soll" @@ -10528,13 +10443,3 @@ msgstr "Type" msgid "Constants" msgstr "Konstanten" - -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" - -#~ msgid "Act: " -#~ msgstr "Aktiv: " diff --git a/po/es.po b/po/es.po index 01666838a..067ffa685 100644 --- a/po/es.po +++ b/po/es.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:51+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:41+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" "Language: es\n" @@ -4287,92 +4287,6 @@ msgstr "" "charset: charset nuevo para el buffer actual\n" " reset: reinicia el charset para el buffer actual" -msgid "Demo plugin" -msgstr "Plugin de demostración" - -msgid "demo message without prefix" -msgstr "mensaje de demostración sin un prefijo" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "%smensaje de demostración con prefijo de error" - -msgid "colors" -msgstr "colores" - -msgid "Available infos:" -msgstr "Infos disponibles:" - -msgid "Available infolists:" -msgstr "Infolists disponibles:" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "señal_demo: señal: %s, tipo_datos: %s, señal_datos: \"%s\"" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "señal_demo: señal: %s, tipo_datos: %s, señal_datos: %d" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "señal_demo: señal: %s, tipo_datos: %s, señal_datos: 0x%lx" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" -"señal_demo: señal: %s, tipo_datos: %s, señal_datos: 0x%lx (tipo desconocido)" - -msgid "print some messages on current buffer" -msgstr "imprime algunos mensajes en el buffer actual" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "texto: escribe este texto" - -msgid "open a new buffer" -msgstr "abre un nuevo buffer" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "obtiene y muestra un info" - -msgid " []" -msgstr " []" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" -" info: info a mostrar\n" -"argumentos: argumentos opcionales para el info\n" -"\n" -"Sin ningún argumento, este comando muestra una lista de infos disponibles" - -msgid "get and display an infolist" -msgstr "obtiene y muestra un infolist" - -msgid " []" -msgstr " []" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" -" infolist: infolist a mostrar\n" -"argumentos: argumentos opcionales para el infolist\n" -"\n" -"Sin ningún argumento, este comando muestra una lista de infolists disponibles" - msgid "FIFO pipe for remote control" msgstr "Tubería FIFO para control remoto" @@ -5873,6 +5787,9 @@ msgstr "" "enviar un mensaje a todos los usuarios conectados que tengan el modo de " "usuario 'w' para ellos mismos" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "texto: texto a enviar" @@ -9878,12 +9795,3 @@ msgstr "Tipo" msgid "Constants" msgstr "Constantes" - -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%sCanal %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s%s)" - -#~ msgid "Act: " -#~ msgstr "Act: " diff --git a/po/fr.po b/po/fr.po index 079684915..3c69a6d65 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-28 16:12+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:41+0200\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -4449,92 +4449,6 @@ msgstr "" "charset: nouveau charset pour le tampon courant\n" " reset: réinitialiser les charsets pour le tampon courant" -msgid "Demo plugin" -msgstr "Extension de démo" - -msgid "demo message without prefix" -msgstr "message de démonstration sans préfixe" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "%smessage de démonstration avec préfixe d'erreur" - -msgid "colors" -msgstr "couleurs" - -msgid "Available infos:" -msgstr "Infos disponibles:" - -msgid "Available infolists:" -msgstr "Infolists disponibles:" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "demo_signal: signal: %s, type_data: %s, signal_data: %d" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (type inconnu)" - -msgid "print some messages on current buffer" -msgstr "afficher des messages sur le tampon courant" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "texte: affiche ce texte" - -msgid "open a new buffer" -msgstr "ouvrir un nouveau tampon" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "lire et afficher une info" - -msgid " []" -msgstr " []" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" -" info: info à afficher\n" -"paramètres: paramètres optionnels pour l'info\n" -"\n" -"Sans paramètre, cette commande affiche la liste des infos disponibles" - -msgid "get and display an infolist" -msgstr "lire et afficher une infolist" - -msgid " []" -msgstr " []" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" -" infolist: infolist à afficher\n" -"paramètres: paramètres optionnels pour l'infolist\n" -"\n" -"Sans paramètre, cette commande affiche la liste des infolists disponibles" - msgid "FIFO pipe for remote control" msgstr "Tube FIFO pour contrôle distant" @@ -6058,6 +5972,9 @@ msgstr "" "envoyer un message à tous les utilisateurs connectés qui ont activé le mode " "utilisateur 'w' pour eux-mêmes" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "texte: texte à envoyer" @@ -10269,15 +10186,3 @@ msgstr "Type" msgid "Constants" msgstr "Constantes" - -#~ msgid "Script is currently using following things:" -#~ msgstr "Le script utilise actuellement les choses suivantes :" - -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%sCanal %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s%s)" - -#~ msgid "Act: " -#~ msgstr "Act: " diff --git a/po/hu.po b/po/hu.po index 41e0508fd..a560d340d 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,8 +20,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:51+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:41+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" "Language: hu\n" @@ -3682,93 +3682,6 @@ msgid "" " reset: reset charsets for current buffer" msgstr "" -#, fuzzy -msgid "Demo plugin" -msgstr " (nem található bővítőmodul)\n" - -msgid "demo message without prefix" -msgstr "" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "" - -#, fuzzy -msgid "colors" -msgstr "üzenetek színe" - -msgid "Available infos:" -msgstr "" - -msgid "Available infolists:" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" - -#, fuzzy -msgid "print some messages on current buffer" -msgstr "szobanév nem található a pufferhez" - -#, fuzzy -msgid "" -msgstr "szöveg" - -#, fuzzy -msgid "text: write this text" -msgstr "időbélyeg a információs pult idejéhez" - -#, fuzzy -msgid "open a new buffer" -msgstr "nem sikerült új puffert nyitni" - -msgid "" -msgstr "" - -#, fuzzy -msgid "get and display an info" -msgstr "megjeleníthető parancsok maximális száma" - -#, fuzzy -msgid " []" -msgstr "fogadó típusa [paraméterek]" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" - -#, fuzzy -msgid "get and display an infolist" -msgstr "megjeleníthető parancsok maximális száma" - -#, fuzzy -msgid " []" -msgstr "fogadó típusa [paraméterek]" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" - #, fuzzy msgid "FIFO pipe for remote control" msgstr "%s nem sikerült a FIFO csövet létrehozni a távoli felügyelethez (%s)\n" @@ -5208,6 +5121,10 @@ msgstr "" "üzenet küldése minden olyan felhasználónak, aki a 'w' felhasználói módot " "beállította" +#, fuzzy +msgid "" +msgstr "szöveg" + #, fuzzy msgid "text: text to send" msgstr "küldendő üzenet" @@ -9076,13 +8993,3 @@ msgstr "" msgid "Constants" msgstr "" - -#, fuzzy -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%s%s%s szoba: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s%s)\n" - -#~ msgid "Act: " -#~ msgstr "Akt: " diff --git a/po/it.po b/po/it.po index 1768ecb38..72877bb7e 100644 --- a/po/it.po +++ b/po/it.po @@ -20,8 +20,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:51+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:41+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" "Language: it\n" @@ -4359,94 +4359,6 @@ msgstr "" "set_caratteri: nuovo set di caratteri per il buffer corrente\n" " reset: resetta il set di caratteri per il buffer corrente" -msgid "Demo plugin" -msgstr "Plugin demo" - -msgid "demo message without prefix" -msgstr "messaggio dimostrativo senza prefisso" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "%smessaggio dimostrativo con il prefisso di errore" - -msgid "colors" -msgstr "colori" - -msgid "Available infos:" -msgstr "Informazioni disponibili:" - -msgid "Available infolists:" -msgstr "Liste info disponibili:" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "segnale_demo: segnale: %s, tipo_dati: %s, dati_segnale: \"%s\"" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "segnale_demo: segnale: %s, tipo_dati: %s, dati_segnale: %d" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "segnale_demo: segnale: %s, tipo_dati: %s, dati_segnale: 0x%lx" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" -"segnale_demo: segnale: %s, tipo_dati: %s, dati_segnale: 0x%lx (tipo " -"sconosciuto)" - -msgid "print some messages on current buffer" -msgstr "stampa alcuni messaggi sul buffer corrente" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "testo: scrivi questo testo" - -msgid "open a new buffer" -msgstr "apri un nuovo buffer" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "ricevi e visualizza un'informazione" - -msgid " []" -msgstr " []" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" -" info: informazioni da visualizzare\n" -"argomenti: argomenti opzionali per le informazioni\n" -"\n" -"Senza argomenti, questo comando visualizza un elenco di informazioni " -"disponibili" - -msgid "get and display an infolist" -msgstr "ricevi e visualizza una lista info" - -msgid " []" -msgstr " []" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" -" infolist: lista info da visualizzare\n" -"argomenti: argomenti opzionali per la lista info\n" -"\n" -"Senza argomento, il comando visualizza l'elenco delle liste info disponibili" - msgid "FIFO pipe for remote control" msgstr "Pipe FIFO per il controllo remoto" @@ -5945,6 +5857,9 @@ msgstr "" "invia un messaggio a tutti gli utenti attualmente connessi che hanno " "impostato la modalità 'w'" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "testo: testo da inviare" @@ -9970,13 +9885,3 @@ msgstr "Tipo" msgid "Constants" msgstr "Costanti" - -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%sCanale %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" - -#~ msgid "Act: " -#~ msgstr "Attività: " diff --git a/po/ja.po b/po/ja.po index 43054059c..cf836ee31 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,8 +20,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:51+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:41+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language: ja\n" @@ -4279,92 +4279,6 @@ msgstr "" "charset: 現在のバッファの新しい文字集合\n" " reset: 現在のバッファの文字集合をリセット" -msgid "Demo plugin" -msgstr "デモプラグイン" - -msgid "demo message without prefix" -msgstr "プレフィックス無しのデモメッセージ" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "%sエラープレフィックスを持つデモメッセージ" - -msgid "colors" -msgstr "色" - -msgid "Available infos:" -msgstr "利用可能な情報:" - -msgid "Available infolists:" -msgstr "利用可能な infolist:" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "demo_signal: シグナル: %s, type_data: %s, signal_data: \"%s\"" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "demo_signal: シグナル: %s, type_data: %s, signal_data: %d" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "demo_signal: シグナル: %s, type_data: %s, signal_data: 0x%lx" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" -"demo_signal: シグナル: %s, type_data: %s, signal_data: 0x%lx (unknown type)" - -msgid "print some messages on current buffer" -msgstr "現在のバッファにいつかメッセージを表示" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "text: このテキストを書き込み" - -msgid "open a new buffer" -msgstr "新しいバッファを開く" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "情報を取得して表示" - -msgid " []" -msgstr " []" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" -" info: 表示する情報\n" -"arguments: 情報のオプション引数\n" -"\n" -"引数のない場合、利用可能な情報のリストを表示" - -msgid "get and display an infolist" -msgstr "infolist を取得して表示" - -msgid " []" -msgstr " []" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" -" infolist: 表示する infolist\n" -"arguments: infolist のオプション引数\n" -"\n" -"引数のない場合、利用可能な infolist のリストを表示" - msgid "FIFO pipe for remote control" msgstr "リモート操作用の FIFO パイプ" @@ -5843,6 +5757,9 @@ msgid "" msgstr "" "ユーザモードに 'w' を設定した全ての接続済みユーザ宛てにメッセージを送信" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "text: 送信テキスト" @@ -9925,13 +9842,3 @@ msgstr "タイプ" msgid "Constants" msgstr "定数" - -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%sチャンネル %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s " -#~ "%s%s)" - -#~ msgid "Act: " -#~ msgstr "アクティビティ: " diff --git a/po/pl.po b/po/pl.po index 604049969..735e9d8a0 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:51+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:42+0200\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" "Language: pl\n" @@ -4372,93 +4372,6 @@ msgstr "" "kodowanie: nowe kodowanie dla obecnego bufora\n" " reset: resetuje kodowanie dla obecnego bufora" -msgid "Demo plugin" -msgstr "Wtyczka demo" - -msgid "demo message without prefix" -msgstr "testowa wiadomość bez przedrostka" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "%stestowa wiadomość z przedrostkiem" - -msgid "colors" -msgstr "kolory" - -msgid "Available infos:" -msgstr "Dostępne informacje:" - -msgid "Available infolists:" -msgstr "Dostępne infolisty:" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "testowy_sygnał: sygnał: %s, typ_danych: %s, dane_sygnału: \"%s\"" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "testowy_sygnał: sygnał: %s, typ_danych: %s, dane_sygnału: %d" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "testowy_sygnał: sygnał: %s, typ_danych: %s, dane_sygnału: 0x%lx" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" -"testowy_sygnał: sygnał: %s, typ_danych: %s, dane_sygnału: 0x%lx (nieznany " -"typ)" - -msgid "print some messages on current buffer" -msgstr "wyświetla niektóre wiadomości o obecnym buforze" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "tekst: wyświetla ten tekst" - -msgid "open a new buffer" -msgstr "otwórz nowy bufor" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "pobierz i wyświetl informacje" - -msgid " []" -msgstr " []" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" -" info: informacja do wyświetlenia\n" -"argumenty: opcjonalne argumenty dla informacji\n" -"\n" -"Bez żadnego argumentu komenda wyświetli listę dostępnych informacji" - -msgid "get and display an infolist" -msgstr "pobierz i wyświetl informacje" - -msgid " []" -msgstr " []" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" -" infolist: infolista do wyświetlenia\n" -"argumenty: opcjonalne argumenty dla infolisty\n" -"\n" -"Bez żadnego argumentu komenda wyświetli listę dostępnych infolist" - msgid "FIFO pipe for remote control" msgstr "kolejka FIFO dla zdalnego sterowania" @@ -5953,6 +5866,9 @@ msgstr "" "wysyła wiadomość do wszystkich obecnie połączonych użytkowników, którzy " "ustawili sobie tryb 'w'" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "tekst: wiadomość do wysłania" @@ -10082,12 +9998,3 @@ msgstr "Typ" msgid "Constants" msgstr "Stałe" - -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%sKanał %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s%s)" - -#~ msgid "Act: " -#~ msgstr "Akt: " diff --git a/po/pt_BR.po b/po/pt_BR.po index 949d77697..2922effb9 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:51+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:42+0200\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" "Language: pt_BR\n" @@ -4132,84 +4132,6 @@ msgid "" " reset: reset charsets for current buffer" msgstr "" -#, fuzzy -msgid "Demo plugin" -msgstr "plugin" - -msgid "demo message without prefix" -msgstr "" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "" - -msgid "colors" -msgstr "cores" - -msgid "Available infos:" -msgstr "" - -msgid "Available infolists:" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" - -msgid "print some messages on current buffer" -msgstr "imprime algumas mensagens no buffer atual" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "texto: escreva este texto" - -msgid "open a new buffer" -msgstr "abre um novo buffer" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "obtem e exbibe uma informação" - -msgid " []" -msgstr " []" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" - -msgid "get and display an infolist" -msgstr "" - -msgid " []" -msgstr " []" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" - msgid "FIFO pipe for remote control" msgstr "" @@ -5407,6 +5329,9 @@ msgstr "" "envia uma mensagem para todos os usuários conectados que setaram o modo de " "usuário 'w' para eles mesmos" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "texto: texto a ser enviado" @@ -9250,12 +9175,3 @@ msgstr "" msgid "Constants" msgstr "" - -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "%sCanal %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s%s)" - -#~ msgid "Act: " -#~ msgstr "Ativ: " diff --git a/po/ru.po b/po/ru.po index 9cf9296e2..8138867e7 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:52+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:42+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" "Language: ru\n" @@ -3714,93 +3714,6 @@ msgid "" " reset: reset charsets for current buffer" msgstr "" -#, fuzzy -msgid "Demo plugin" -msgstr " (нет pluginа)\n" - -msgid "demo message without prefix" -msgstr "" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "" - -#, fuzzy -msgid "colors" -msgstr "цвет чата" - -msgid "Available infos:" -msgstr "" - -msgid "Available infolists:" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" - -#, fuzzy -msgid "print some messages on current buffer" -msgstr "не найдено имя канала для буфера" - -#, fuzzy -msgid "" -msgstr "текст" - -#, fuzzy -msgid "text: write this text" -msgstr "время в информационной строке" - -#, fuzzy -msgid "open a new buffer" -msgstr "невозможно создать новый буфер" - -msgid "" -msgstr "" - -#, fuzzy -msgid "get and display an info" -msgstr "количество отображаемых команд" - -#, fuzzy -msgid " []" -msgstr "адресат тип [аргументы]" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" - -#, fuzzy -msgid "get and display an infolist" -msgstr "количество отображаемых команд" - -#, fuzzy -msgid " []" -msgstr "адресат тип [аргументы]" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" - #, fuzzy msgid "FIFO pipe for remote control" msgstr "%s не могу создать FIFO pipe для удалённого управления (%s)\n" @@ -5234,6 +5147,10 @@ msgid "" "mode for themselves" msgstr "отправляет сообщение всем подключенным пользователям с режимом 'w'" +#, fuzzy +msgid "" +msgstr "текст" + #, fuzzy msgid "text: text to send" msgstr "отправляемый текст" @@ -9095,10 +9012,3 @@ msgstr "" msgid "Constants" msgstr "" - -#, fuzzy -#~ msgid "" -#~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" -#~ "%s)" -#~ msgstr "" -#~ "Канал %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s%s)\n" diff --git a/po/srcfiles.cmake b/po/srcfiles.cmake index 980c01df6..3426987a5 100644 --- a/po/srcfiles.cmake +++ b/po/srcfiles.cmake @@ -111,7 +111,6 @@ SET(WEECHAT_SOURCES ./src/plugins/aspell/weechat-aspell-speller.c ./src/plugins/aspell/weechat-aspell-speller.h ./src/plugins/charset/charset.c -./src/plugins/demo/demo.c ./src/plugins/fifo/fifo.c ./src/plugins/fifo/fifo.h ./src/plugins/fifo/fifo-info.c diff --git a/po/tr.po b/po/tr.po index 5eea607d8..c3d157319 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,8 +20,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" -"PO-Revision-Date: 2013-07-18 19:52+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" +"PO-Revision-Date: 2013-07-31 18:42+0200\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" "Language: tr\n" @@ -3283,83 +3283,6 @@ msgid "" " reset: reset charsets for current buffer" msgstr "" -msgid "Demo plugin" -msgstr "" - -msgid "demo message without prefix" -msgstr "" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "" - -msgid "colors" -msgstr "renkler" - -msgid "Available infos:" -msgstr "" - -msgid "Available infolists:" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" - -msgid "print some messages on current buffer" -msgstr "" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "" - -msgid "open a new buffer" -msgstr "" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "" - -msgid " []" -msgstr "" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" - -msgid "get and display an infolist" -msgstr "" - -msgid " []" -msgstr "" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" - msgid "FIFO pipe for remote control" msgstr "" @@ -4582,6 +4505,9 @@ msgid "" "mode for themselves" msgstr "" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index f8a7ac4ba..1a21b91d6 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 16:11+0200\n" +"POT-Creation-Date: 2013-07-31 18:40+0200\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: weechat-dev \n" @@ -3289,83 +3289,6 @@ msgid "" " reset: reset charsets for current buffer" msgstr "" -msgid "Demo plugin" -msgstr "" - -msgid "demo message without prefix" -msgstr "" - -#, c-format -msgid "%sdemo message with error prefix" -msgstr "" - -msgid "colors" -msgstr "" - -msgid "Available infos:" -msgstr "" - -msgid "Available infolists:" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: \"%s\"" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d" -msgstr "" - -#, c-format -msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx" -msgstr "" - -#, c-format -msgid "" -"demo_signal: signal: %s, type_data: %s, signal_data: 0x%lx (unknown type)" -msgstr "" - -msgid "print some messages on current buffer" -msgstr "" - -msgid "" -msgstr "" - -msgid "text: write this text" -msgstr "" - -msgid "open a new buffer" -msgstr "" - -msgid "" -msgstr "" - -msgid "get and display an info" -msgstr "" - -msgid " []" -msgstr "" - -msgid "" -" info: info to display\n" -"arguments: optional arguments for info\n" -"\n" -"Without argument, this command displays list of available infos" -msgstr "" - -msgid "get and display an infolist" -msgstr "" - -msgid " []" -msgstr "" - -msgid "" -" infolist: infolist to display\n" -"arguments: optional arguments for infolist\n" -"\n" -"Without argument, this command displays list of available infolists" -msgstr "" - msgid "FIFO pipe for remote control" msgstr "" @@ -4543,6 +4466,9 @@ msgid "" "mode for themselves" msgstr "" +msgid "" +msgstr "" + msgid "text: text to send" msgstr "" diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 3a644ff77..a9d0354ff 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -72,10 +72,6 @@ IF(ENABLE_CHARSET) ENDIF(ICONV_FOUND) ENDIF(ENABLE_CHARSET) -IF(ENABLE_DEMO) - ADD_SUBDIRECTORY( demo ) -ENDIF(ENABLE_DEMO) - IF(ENABLE_FIFO) ADD_SUBDIRECTORY( fifo ) ENDIF(ENABLE_FIFO) diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 46bf7b335..4a8f42c0f 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -51,10 +51,6 @@ if PLUGIN_CHARSET charset_dir = charset endif -if PLUGIN_DEMO -demo_dir = demo -endif - if PLUGIN_FIFO fifo_dir = fifo endif @@ -107,10 +103,10 @@ if PLUGIN_GUILE guile_dir = guile endif -SUBDIRS = . $(alias_dir) $(aspell_dir) $(charset_dir) $(demo_dir) $(fifo_dir) \ - $(irc_dir) $(logger_dir) $(relay_dir) $(rmodifier_dir) $(script_dir) \ - $(xfer_dir) $(perl_dir) $(python_dir) $(ruby_dir) $(lua_dir) \ - $(tcl_dir) $(guile_dir) +SUBDIRS = . $(alias_dir) $(aspell_dir) $(charset_dir) $(fifo_dir) $(irc_dir) \ + $(logger_dir) $(relay_dir) $(rmodifier_dir) $(script_dir) $(xfer_dir) \ + $(perl_dir) $(python_dir) $(ruby_dir) $(lua_dir) $(tcl_dir) \ + $(guile_dir) EXTRA_DIST = CMakeLists.txt diff --git a/src/plugins/demo/CMakeLists.txt b/src/plugins/demo/CMakeLists.txt deleted file mode 100644 index 007806709..000000000 --- a/src/plugins/demo/CMakeLists.txt +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (C) 2003-2013 Sebastien Helleu -# -# 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 . -# - -ADD_LIBRARY(demo MODULE demo.c) -SET_TARGET_PROPERTIES(demo PROPERTIES PREFIX "") - -TARGET_LINK_LIBRARIES(demo) - -INSTALL(TARGETS demo LIBRARY DESTINATION ${LIBDIR}/plugins) diff --git a/src/plugins/demo/Makefile.am b/src/plugins/demo/Makefile.am deleted file mode 100644 index d78bb1e95..000000000 --- a/src/plugins/demo/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ -# -# Copyright (C) 2003-2013 Sebastien Helleu -# -# 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 . -# - -AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(DEMO_CFLAGS) - -libdir = ${weechat_libdir}/plugins - -lib_LTLIBRARIES = demo.la - -demo_la_SOURCES = demo.c -demo_la_LDFLAGS = -module -demo_la_LIBADD = $(DEMO_LFLAGS) - -EXTRA_DIST = CMakeLists.txt diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c deleted file mode 100644 index b87907d9e..000000000 --- a/src/plugins/demo/demo.c +++ /dev/null @@ -1,421 +0,0 @@ -/* - * demo.c - demo plugin for WeeChat - * - * Copyright (C) 2003-2013 Sebastien Helleu - * - * 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 . - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "../weechat-plugin.h" - - -#define DEMO_PLUGIN_NAME "demo" - -WEECHAT_PLUGIN_NAME(DEMO_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION(N_("Demo plugin")); -WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu "); -WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); -WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); - -struct t_weechat_plugin *weechat_demo_plugin = NULL; -#define weechat_plugin weechat_demo_plugin - - -/* - * Callback for command "/demo_printf". - */ - -int -demo_printf_command_cb (void *data, struct t_gui_buffer *buffer, int argc, - char **argv, char **argv_eol) -{ - /* make C compiler happy */ - (void) data; - (void) argv; - - if (argc > 1) - weechat_printf (buffer, - "demo_printf: \"%s\"", argv_eol[1]); - else - { - weechat_printf (buffer, - _("demo message without prefix")); - weechat_printf (buffer, - _("%sdemo message with error prefix"), - weechat_prefix ("error")); - weechat_printf (buffer, - "%s: %s chat_buffer %s chat_server " - "%s chat_host", - _("colors"), - weechat_color ("chat_buffer"), - weechat_color ("chat_server"), - weechat_color ("chat_host")); - } - - return WEECHAT_RC_OK; -} - -/* - * Callback for input data on buffer. - */ - -int -demo_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer, - const char *input_data) -{ - /* make C compiler happy */ - (void) data; - - weechat_printf (buffer, - "buffer_input_data_cb: buffer = %lx (%s), " - "input_data = \"%s\"", - (long unsigned int)buffer, - weechat_buffer_get_string (buffer, "name"), - input_data); - - return WEECHAT_RC_OK; -} - -/* - * Callback called when buffer is closed. - */ - -int -demo_buffer_close_cb (void *data, struct t_gui_buffer *buffer) -{ - /* make C compiler happy */ - (void) data; - - if (weechat_demo_plugin->debug) - { - weechat_printf (NULL, - "buffer_close_cb: buffer = %lx (%s)", - (long unsigned int)buffer, - weechat_buffer_get_string (buffer, "name")); - } - - return WEECHAT_RC_OK; -} - -/* - * Callback for command "/demo_buffer". - */ - -int -demo_buffer_command_cb (void *data, struct t_gui_buffer *buffer, int argc, - char **argv, char **argv_eol) -{ - struct t_gui_buffer *new_buffer; - - /* make C compiler happy */ - (void) data; - (void) buffer; - (void) argv_eol; - - if (argc > 1) - { - new_buffer = weechat_buffer_new (argv[1], - &demo_buffer_input_data_cb, NULL, - &demo_buffer_close_cb, NULL); - if (new_buffer) - { - weechat_buffer_set (new_buffer, "display", "1"); - weechat_hook_signal_send ("logger_backlog", - WEECHAT_HOOK_SIGNAL_POINTER, new_buffer); - } - } - - return WEECHAT_RC_OK; -} - -/* - * Displays an infolist. - */ - -void -demo_infolist_print (struct t_infolist *infolist, const char *item_name) -{ - const char *fields; - char **argv; - void *pointer; - int i, j, argc, size; - time_t time; - - if (!infolist) - return; - - i = 1; - while (weechat_infolist_next (infolist)) - { - weechat_printf (NULL, "--- %s #%d ---", item_name, i); - fields = weechat_infolist_fields (infolist); - if (fields) - { - argv = weechat_string_split (fields, ",", 0, 0, &argc); - if (argv && (argc > 0)) - { - for (j = 0; j < argc; j++) - { - switch (argv[j][0]) - { - case 'i': - weechat_printf (NULL, " %s: %d", - argv[j] + 2, - weechat_infolist_integer (infolist, - argv[j] + 2)); - break; - case 's': - weechat_printf (NULL, " %s: %s", - argv[j] + 2, - weechat_infolist_string (infolist, - argv[j] + 2)); - break; - case 'p': - weechat_printf (NULL, " %s: %lx", - argv[j] + 2, - (long unsigned int)weechat_infolist_pointer (infolist, - argv[j] + 2)); - break; - case 'b': - pointer = weechat_infolist_buffer (infolist, - argv[j] + 2, - &size); - weechat_printf (NULL, " %s: %lx (size: %d)", - argv[j] + 2, - (long unsigned int)pointer, - size); - break; - case 't': - time = weechat_infolist_time (infolist, argv[j] + 2); - weechat_printf (NULL, " %s: (%ld) %s", - argv[j] + 2, - time, ctime (&time)); - break; - } - } - } - if (argv) - weechat_string_free_split (argv); - } - i++; - } -} - -/* - * Callback for command "/demo_info". - */ - -int -demo_info_command_cb (void *data, struct t_gui_buffer *buffer, int argc, - char **argv, char **argv_eol) -{ - struct t_infolist *infolist; - - /* make C compiler happy */ - (void) data; - (void) buffer; - - if (argc > 1) - weechat_printf (NULL, "info \"%s\" = \"%s\"", - argv[1], - weechat_info_get (argv[1], - (argc > 2) ? argv_eol[2] : NULL)); - else - { - infolist = weechat_infolist_get ("hook", NULL, "info"); - if (infolist) - { - weechat_printf (NULL, ""); - weechat_printf (NULL, _("Available infos:")); - while (weechat_infolist_next (infolist)) - { - weechat_printf (NULL, - " %s: %s", - weechat_infolist_string (infolist, "info_name"), - weechat_gettext (weechat_infolist_string (infolist, - "description"))); - } - weechat_infolist_free (infolist); - } - } - - return WEECHAT_RC_OK; -} - -/* - * Callback for command "/demo_infolist". - */ - -int -demo_infolist_command_cb (void *data, struct t_gui_buffer *buffer, int argc, - char **argv, char **argv_eol) -{ - struct t_infolist *infolist; - - /* make C compiler happy */ - (void) data; - (void) buffer; - - if (argc > 1) - { - infolist = weechat_infolist_get (argv[1], NULL, - (argc > 2) ? argv_eol[2] : NULL); - if (infolist) - { - demo_infolist_print (infolist, argv[1]); - weechat_infolist_free (infolist); - } - } - else - { - infolist = weechat_infolist_get ("hook", NULL, "infolist"); - if (infolist) - { - weechat_printf (NULL, ""); - weechat_printf (NULL, _("Available infolists:")); - while (weechat_infolist_next (infolist)) - { - weechat_printf (NULL, - " %s: %s", - weechat_infolist_string (infolist, "infolist_name"), - weechat_gettext (weechat_infolist_string (infolist, "description"))); - } - weechat_infolist_free (infolist); - } - } - - return WEECHAT_RC_OK; -} - -/* - * Callback for a signal hooked. - */ - -int -demo_signal_cb (void *data, const char *signal, const char *type_data, - void *signal_data) -{ - /* make C compiler happy */ - (void) data; - - if (weechat_demo_plugin->debug) - { - if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_STRING) == 0) - { - weechat_printf (NULL, - _("demo_signal: signal: %s, type_data: %s, " - "signal_data: \"%s\""), - signal, type_data, (char *)signal_data); - } - else if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_INT) == 0) - { - weechat_printf (NULL, - _("demo_signal: signal: %s, type_data: %s, " - "signal_data: %d"), - signal, type_data, *((int *)signal_data)); - } - else if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_POINTER) == 0) - { - weechat_printf (NULL, - _("demo_signal: signal: %s, type_data: %s, " - "signal_data: 0x%lx"), - signal, type_data, (long unsigned int)signal_data); - } - else - { - weechat_printf (NULL, - _("demo_signal: signal: %s, type_data: %s, " - "signal_data: 0x%lx (unknown type)"), - signal, type_data, (long unsigned int)signal_data); - } - } - - return WEECHAT_RC_OK; -} - -/* - * Initializes demo plugin. - */ - -int -weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) -{ - /* make C compiler happy */ - (void) argc; - (void) argv; - - weechat_plugin = plugin; - - weechat_hook_command ("demo_printf", - N_("print some messages on current buffer"), - N_(""), - N_("text: write this text"), - "", - &demo_printf_command_cb, NULL); - - weechat_hook_command ("demo_buffer", - N_("open a new buffer"), - N_(""), - "", - "", - &demo_buffer_command_cb, NULL); - - weechat_hook_command ("demo_info", - N_("get and display an info"), - N_(" []"), - N_(" info: info to display\n" - "arguments: optional arguments for info\n\n" - "Without argument, this command displays list " - "of available infos"), - "%(infos)", - &demo_info_command_cb, NULL); - - weechat_hook_command ("demo_infolist", - N_("get and display an infolist"), - N_(" []"), - N_(" infolist: infolist to display\n" - "arguments: optional arguments for infolist\n\n" - "Without argument, this command displays list " - "of available infolists"), - "%(infolists)", - &demo_infolist_command_cb, NULL); - - weechat_hook_signal ("*", &demo_signal_cb, NULL); - - return WEECHAT_RC_OK; -} - -/* - * Ends demo plugin. - */ - -int -weechat_plugin_end (struct t_weechat_plugin *plugin) -{ - /* make C compiler happy */ - (void) plugin; - - return WEECHAT_RC_OK; -}