diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 66569aa5b..ab96a2c39 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] New features:: + * core: add optional command prefix in completion templates "commands", "plugins_commands" and ""weechat_commands" * core: add optional arguments in completion template, sent to the callback * core: add option "time" in command /debug * api: add info "pid" (WeeChat PID) (issue #850) diff --git a/doc/de/autogen/plugin_api/completions.adoc b/doc/de/autogen/plugin_api/completions.adoc index d077437d4..31952d19e 100644 --- a/doc/de/autogen/plugin_api/completions.adoc +++ b/doc/de/autogen/plugin_api/completions.adoc @@ -120,7 +120,7 @@ | weechat | colors | Farbnamen -| weechat | commands | Befehle (WeeChat und Erweiterungen) +| weechat | commands | commands (weechat and plugins); optional argument: prefix to add before the commands | weechat | config_files | Konfigurationsdateien @@ -154,7 +154,7 @@ | weechat | palette_colors | Farbpalette -| weechat | plugins_commands | Befehle, definiert durch Erweiterungen +| weechat | plugins_commands | commands defined by plugins; optional argument: prefix to add before the commands | weechat | plugins_installed | Namen der installierten Erweiterungen @@ -166,7 +166,7 @@ | weechat | secured_data | Namen der geschützten Daten (Datei sec.conf, section data) -| weechat | weechat_commands | WeeChat Befehle +| weechat | weechat_commands | weechat commands; optional argument: prefix to add before the commands | weechat | windows_numbers | Nummern der Fenster diff --git a/doc/en/autogen/plugin_api/completions.adoc b/doc/en/autogen/plugin_api/completions.adoc index f867773d5..418382849 100644 --- a/doc/en/autogen/plugin_api/completions.adoc +++ b/doc/en/autogen/plugin_api/completions.adoc @@ -120,7 +120,7 @@ | weechat | colors | color names -| weechat | commands | commands (weechat and plugins) +| weechat | commands | commands (weechat and plugins); optional argument: prefix to add before the commands | weechat | config_files | configuration files @@ -154,7 +154,7 @@ | weechat | palette_colors | palette colors -| weechat | plugins_commands | commands defined by plugins +| weechat | plugins_commands | commands defined by plugins; optional argument: prefix to add before the commands | weechat | plugins_installed | names of plugins installed @@ -166,7 +166,7 @@ | weechat | secured_data | names of secured data (file sec.conf, section data) -| weechat | weechat_commands | weechat commands +| weechat | weechat_commands | weechat commands; optional argument: prefix to add before the commands | weechat | windows_numbers | numbers of windows diff --git a/doc/fr/autogen/plugin_api/completions.adoc b/doc/fr/autogen/plugin_api/completions.adoc index 45501bf22..4e567f8d5 100644 --- a/doc/fr/autogen/plugin_api/completions.adoc +++ b/doc/fr/autogen/plugin_api/completions.adoc @@ -120,7 +120,7 @@ | weechat | colors | noms des couleurs -| weechat | commands | commandes (weechat et extensions) +| weechat | commands | commandes (weechat et extensions) ; paramètre optionnel : préfixe à ajouter avant les commandes | weechat | config_files | fichiers de configuration @@ -154,7 +154,7 @@ | weechat | palette_colors | couleurs de la palette -| weechat | plugins_commands | commandes définies par les extensions +| weechat | plugins_commands | commandes définies par les extensions ; paramètre optionnel : préfixe à ajouter avant les commandes | weechat | plugins_installed | noms des extensions installées @@ -166,7 +166,7 @@ | weechat | secured_data | noms de données sécurisées (fichier sec.conf, section data) -| weechat | weechat_commands | commandes weechat +| weechat | weechat_commands | commandes weechat ; paramètre optionnel : préfixe à ajouter avant les commandes | weechat | windows_numbers | numéros des fenêtres diff --git a/doc/it/autogen/plugin_api/completions.adoc b/doc/it/autogen/plugin_api/completions.adoc index 26f14e3f7..1203f44fc 100644 --- a/doc/it/autogen/plugin_api/completions.adoc +++ b/doc/it/autogen/plugin_api/completions.adoc @@ -120,7 +120,7 @@ | weechat | colors | color names -| weechat | commands | comandi (weechat e plugin) +| weechat | commands | commands (weechat and plugins); optional argument: prefix to add before the commands | weechat | config_files | file di configurazione @@ -154,7 +154,7 @@ | weechat | palette_colors | Tavolozza dei colori -| weechat | plugins_commands | comandi definiti dai plugin +| weechat | plugins_commands | commands defined by plugins; optional argument: prefix to add before the commands | weechat | plugins_installed | names of plugins installed @@ -166,7 +166,7 @@ | weechat | secured_data | names of secured data (file sec.conf, section data) -| weechat | weechat_commands | comandi di weechat +| weechat | weechat_commands | weechat commands; optional argument: prefix to add before the commands | weechat | windows_numbers | numeri delle finestre diff --git a/doc/ja/autogen/plugin_api/completions.adoc b/doc/ja/autogen/plugin_api/completions.adoc index ca261fdb4..8420b9064 100644 --- a/doc/ja/autogen/plugin_api/completions.adoc +++ b/doc/ja/autogen/plugin_api/completions.adoc @@ -120,7 +120,7 @@ | weechat | colors | 色名 -| weechat | commands | コマンド (weechat とプラグイン) +| weechat | commands | commands (weechat and plugins); optional argument: prefix to add before the commands | weechat | config_files | 設定ファイル @@ -154,7 +154,7 @@ | weechat | palette_colors | パレット色 -| weechat | plugins_commands | プラグインの定義するコマンド +| weechat | plugins_commands | commands defined by plugins; optional argument: prefix to add before the commands | weechat | plugins_installed | インストールされたプラグインの名前 @@ -166,7 +166,7 @@ | weechat | secured_data | 保護データの名前 (sec.conf ファイル、セクションデータ) -| weechat | weechat_commands | weechat コマンド +| weechat | weechat_commands | weechat commands; optional argument: prefix to add before the commands | weechat | windows_numbers | ウィンドウの数 diff --git a/doc/pl/autogen/plugin_api/completions.adoc b/doc/pl/autogen/plugin_api/completions.adoc index 694f9bd2b..8c7556d1b 100644 --- a/doc/pl/autogen/plugin_api/completions.adoc +++ b/doc/pl/autogen/plugin_api/completions.adoc @@ -120,7 +120,7 @@ | weechat | colors | nazwy kolorów -| weechat | commands | komendy (weechata i wtyczek) +| weechat | commands | commands (weechat and plugins); optional argument: prefix to add before the commands | weechat | config_files | pliki konfiguracyjne @@ -154,7 +154,7 @@ | weechat | palette_colors | paleta kolorów -| weechat | plugins_commands | komendy zdefiniowane przez wtyczki +| weechat | plugins_commands | commands defined by plugins; optional argument: prefix to add before the commands | weechat | plugins_installed | nazwy zainstalowanych wtyczek @@ -166,7 +166,7 @@ | weechat | secured_data | nazwy zabezpieczonych danych (plik sec.conf, sekcja data) -| weechat | weechat_commands | komendy WeeChat +| weechat | weechat_commands | weechat commands; optional argument: prefix to add before the commands | weechat | windows_numbers | liczba okien diff --git a/po/cs.po b/po/cs.po index 1a1755959..3183876a3 100644 --- a/po/cs.po +++ b/po/cs.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-09-03 08:23+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -2685,8 +2685,10 @@ msgstr "jméno souboru" msgid "names of filters" msgstr "jména filtrů" -msgid "commands (weechat and plugins)" -msgstr "příkazy (weechat a pluginů)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" #, fuzzy msgid "names of infos hooked" @@ -2709,8 +2711,10 @@ msgstr "jména pluginů" msgid "names of plugins installed" msgstr "jména bufferů (včetně jmen pluginů)" -msgid "commands defined by plugins" -msgstr "příkazy definované pluginy" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of bars" msgstr "jména polí" @@ -2718,8 +2722,8 @@ msgstr "jména polí" msgid "values for a configuration option" msgstr "hodnoty pro konfigurační nastavení" -msgid "weechat commands" -msgstr "příkazy weechat" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" msgid "names of proxies" msgstr "jména proxy" @@ -11403,6 +11407,15 @@ msgstr "%s%s: vypršel časový limit \"%s\" pro %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)" +#~ msgid "commands defined by plugins" +#~ msgstr "příkazy definované pluginy" + +#~ msgid "weechat commands" +#~ msgstr "příkazy weechat" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "příkazy (weechat a pluginů)" + #~ msgid "control debug for core/plugins" #~ msgstr "spřáva ladění pro jádro/pluginy" diff --git a/po/de.po b/po/de.po index c4dcfc2bf..f723b6f36 100644 --- a/po/de.po +++ b/po/de.po @@ -19,7 +19,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-11-22 21:27+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -3168,8 +3168,10 @@ msgstr "Dateinamen" msgid "names of filters" msgstr "Liste der Filter" -msgid "commands (weechat and plugins)" -msgstr "Befehle (WeeChat und Erweiterungen)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of infos hooked" msgstr "Namen der gehookten Infos" @@ -3189,8 +3191,10 @@ msgstr "Liste der Erweiterungen" msgid "names of plugins installed" msgstr "Namen der installierten Erweiterungen" -msgid "commands defined by plugins" -msgstr "Befehle, definiert durch Erweiterungen" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of bars" msgstr "Namen der Infobars" @@ -3198,8 +3202,8 @@ msgstr "Namen der Infobars" msgid "values for a configuration option" msgstr "Werte für eine Konfigurationsoption" -msgid "weechat commands" -msgstr "WeeChat Befehle" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" msgid "names of proxies" msgstr "Namen aller Proxys" @@ -12981,6 +12985,15 @@ msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "" "%s%s: Verbindung konnte nicht hergestellt werden: unerwarteter Fehler (%d)" +#~ msgid "commands defined by plugins" +#~ msgstr "Befehle, definiert durch Erweiterungen" + +#~ msgid "weechat commands" +#~ msgstr "WeeChat Befehle" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "Befehle (WeeChat und Erweiterungen)" + #~ msgid "control debug for core/plugins" #~ msgstr "Debug-Kontrolle für Hauptprogramm und/oder Erweiterung" diff --git a/po/es.po b/po/es.po index 6ce2fffd4..b920f34b2 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-09-03 08:23+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -2800,8 +2800,10 @@ msgstr "nombre de archivo" msgid "names of filters" msgstr "nombre de los filtros" -msgid "commands (weechat and plugins)" -msgstr "comandos (weechat y plugins)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of infos hooked" msgstr "nombres de infos enganchados" @@ -2822,8 +2824,10 @@ msgstr "nombres de plugins" msgid "names of plugins installed" msgstr "nombres de plugins" -msgid "commands defined by plugins" -msgstr "comandos definidos por plugins" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of bars" msgstr "nombres de barras" @@ -2831,8 +2835,8 @@ msgstr "nombres de barras" msgid "values for a configuration option" msgstr "valores de una opción de configuración" -msgid "weechat commands" -msgstr "comandos de weechat" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" msgid "names of proxies" msgstr "nombres de proxies" @@ -11664,6 +11668,15 @@ msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s: no es posible conectarse al transmisor" +#~ msgid "commands defined by plugins" +#~ msgstr "comandos definidos por plugins" + +#~ msgid "weechat commands" +#~ msgstr "comandos de weechat" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "comandos (weechat y plugins)" + #~ msgid "control debug for core/plugins" #~ msgstr "controla los mensajes de depuración para el núcleo/plugins" diff --git a/po/fr.po b/po/fr.po index 7201c1cc2..aab3d934b 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: 2016-11-28 21:48+0100\n" -"PO-Revision-Date: 2016-11-28 21:49+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" +"PO-Revision-Date: 2016-11-29 23:33+0100\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -3099,8 +3099,12 @@ msgstr "nom de fichier" msgid "names of filters" msgstr "noms des filtres" -msgid "commands (weechat and plugins)" -msgstr "commandes (weechat et extensions)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" +"commandes (weechat et extensions) ; paramètre optionnel : préfixe à ajouter " +"avant les commandes" msgid "names of infos hooked" msgstr "noms des infos accrochées" @@ -3120,8 +3124,12 @@ msgstr "noms des extensions" msgid "names of plugins installed" msgstr "noms des extensions installées" -msgid "commands defined by plugins" -msgstr "commandes définies par les extensions" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" +"commandes définies par les extensions ; paramètre optionnel : préfixe à " +"ajouter avant les commandes" msgid "names of bars" msgstr "noms des barres" @@ -3129,8 +3137,10 @@ msgstr "noms des barres" msgid "values for a configuration option" msgstr "valeurs pour une option de configuration" -msgid "weechat commands" -msgstr "commandes weechat" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" +"commandes weechat ; paramètre optionnel : préfixe à ajouter avant les " +"commandes" msgid "names of proxies" msgstr "noms des proxies" @@ -12722,6 +12732,15 @@ msgstr "%s%s : délai d'attente dépassé pour \"%s\" avec %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s : impossible de se connecter : erreur inattendue (%d)" +#~ msgid "commands defined by plugins" +#~ msgstr "commandes définies par les extensions" + +#~ msgid "weechat commands" +#~ msgstr "commandes weechat" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "commandes (weechat et extensions)" + #~ msgid "control debug for core/plugins" #~ msgstr "contrôle du debug pour le cœur/les extensions" diff --git a/po/hu.po b/po/hu.po index d0e3bdeaa..bb8e2fddd 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-09-03 08:23+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -2322,9 +2322,10 @@ msgstr "a felhasználók le lettek tiltva" msgid "names of filters" msgstr "Aliaszok listája:\n" -#, fuzzy -msgid "commands (weechat and plugins)" -msgstr " (nem található bővítőmodul)\n" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" #, fuzzy msgid "names of infos hooked" @@ -2350,9 +2351,10 @@ msgstr "konfigurációs paraméterek beállítása" msgid "names of plugins installed" msgstr "konfigurációs paraméterek beállítása" -#, fuzzy -msgid "commands defined by plugins" -msgstr " (nem található bővítőmodul)\n" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" #, fuzzy msgid "names of bars" @@ -2362,9 +2364,8 @@ msgstr "Aliaszok listája:\n" msgid "values for a configuration option" msgstr "Nem található az opció\n" -#, fuzzy -msgid "weechat commands" -msgstr "%s belső parancsok:\n" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" #, fuzzy msgid "names of proxies" @@ -10701,6 +10702,18 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n" 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 "commands defined by plugins" +#~ msgstr " (nem található bővítőmodul)\n" + +#, fuzzy +#~ msgid "weechat commands" +#~ msgstr "%s belső parancsok:\n" + +#, fuzzy +#~ msgid "commands (weechat and plugins)" +#~ msgstr " (nem található bővítőmodul)\n" + #, fuzzy #~ msgid "text color for nicks in chat window" #~ msgstr "idő színe a beszédablakban" diff --git a/po/it.po b/po/it.po index c035f2cdd..9d7c36984 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-09-03 08:24+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -2889,8 +2889,10 @@ msgstr "nome file" msgid "names of filters" msgstr "nomi dei filtri" -msgid "commands (weechat and plugins)" -msgstr "comandi (weechat e plugin)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of infos hooked" msgstr "nomi degli hook sulle info" @@ -2911,8 +2913,10 @@ msgstr "nomi dei plugin" msgid "names of plugins installed" msgstr "nomi dei plugin" -msgid "commands defined by plugins" -msgstr "comandi definiti dai plugin" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of bars" msgstr "nomi delle barre" @@ -2920,8 +2924,8 @@ msgstr "nomi delle barre" msgid "values for a configuration option" msgstr "valori per una opzione di configurazione" -msgid "weechat commands" -msgstr "comandi di weechat" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" msgid "names of proxies" msgstr "nomi dei proxy" @@ -11852,6 +11856,15 @@ msgstr "%s%s: timeout per \"%s\" con %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s: impossibile connettersi al mittente" +#~ msgid "commands defined by plugins" +#~ msgstr "comandi definiti dai plugin" + +#~ msgid "weechat commands" +#~ msgstr "comandi di weechat" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "comandi (weechat e plugin)" + #~ msgid "control debug for core/plugins" #~ msgstr "attiva debug per core/plugin" diff --git a/po/ja.po b/po/ja.po index 359279054..1f0679dfd 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-11-23 09:00+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language-Team: weechat-dev \n" @@ -3065,8 +3065,10 @@ msgstr "nazwa pliku" msgid "names of filters" msgstr "nazwy filtrów" -msgid "commands (weechat and plugins)" -msgstr "komendy (weechata i wtyczek)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of infos hooked" msgstr "nazwy powiązanych informacji" @@ -3086,8 +3088,10 @@ msgstr "nazwy wtyczek" msgid "names of plugins installed" msgstr "nazwy zainstalowanych wtyczek" -msgid "commands defined by plugins" -msgstr "komendy zdefiniowane przez wtyczki" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of bars" msgstr "nazwy pasków" @@ -3095,8 +3099,8 @@ msgstr "nazwy pasków" msgid "values for a configuration option" msgstr "wartości opcji konfiguracyjnych" -msgid "weechat commands" -msgstr "komendy WeeChat" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" msgid "names of proxies" msgstr "nazwy proxy" @@ -12460,6 +12464,15 @@ msgstr "%s%s: przekroczono czas na \"%s\" z %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s: nie można połączyć: niespodziewany błąd (%d)" +#~ msgid "commands defined by plugins" +#~ msgstr "komendy zdefiniowane przez wtyczki" + +#~ msgid "weechat commands" +#~ msgstr "komendy WeeChat" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "komendy (weechata i wtyczek)" + #~ msgid "control debug for core/plugins" #~ msgstr "kontrola debugu dla rdzenia/wtyczek" diff --git a/po/pt.po b/po/pt.po index 18c81eefa..c0b1d103b 100644 --- a/po/pt.po +++ b/po/pt.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-09-27 12:29+0000\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese <>\n" @@ -3065,8 +3065,10 @@ msgstr "nome do ficheiro" msgid "names of filters" msgstr "nomes dos filtros" -msgid "commands (weechat and plugins)" -msgstr "comandos (weechat e plugins)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of infos hooked" msgstr "nomes dos infos ligados" @@ -3086,8 +3088,10 @@ msgstr "nomes dos plugins" msgid "names of plugins installed" msgstr "nomes dos plugins instalados" -msgid "commands defined by plugins" -msgstr "comandos definidos por plugins" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of bars" msgstr "nomes das barras" @@ -3095,8 +3099,8 @@ msgstr "nomes das barras" msgid "values for a configuration option" msgstr "valores de uma opção de configuração" -msgid "weechat commands" -msgstr "comandos do weechat" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" msgid "names of proxies" msgstr "nomes dos proxies" @@ -12474,6 +12478,15 @@ msgstr "%s%s: tempo limite de \"%s\" com %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s: não foi possível conectar: erro inesperado (%d)" +#~ msgid "commands defined by plugins" +#~ msgstr "comandos definidos por plugins" + +#~ msgid "weechat commands" +#~ msgstr "comandos do weechat" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "comandos (weechat e plugins)" + #~ msgid "control debug for core/plugins" #~ msgstr "controlar depuração do core/plugins" diff --git a/po/pt_BR.po b/po/pt_BR.po index 3b53eb32d..64163428f 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: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-09-03 08:24+0200\n" "Last-Translator: Eduardo Elias \n" "Language-Team: weechat-dev \n" @@ -2855,8 +2855,10 @@ msgstr "nome de arquivo" msgid "names of filters" msgstr "nomes dos filtros" -msgid "commands (weechat and plugins)" -msgstr "comandos (weechat e plugins)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of infos hooked" msgstr "nomes das informações associadas" @@ -2877,8 +2879,10 @@ msgstr "nomes de plugins" msgid "names of plugins installed" msgstr "nomes de plugins instalados" -msgid "commands defined by plugins" -msgstr "comandos definidos por plugins" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of bars" msgstr "nomes das barras" @@ -2886,8 +2890,8 @@ msgstr "nomes das barras" msgid "values for a configuration option" msgstr "valores para uma opção de configuração" -msgid "weechat commands" -msgstr "comandos do weechat" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" msgid "names of proxies" msgstr "nomes de proxys" @@ -11143,6 +11147,15 @@ msgstr "%s%s: tempo esgotado para \"%s\" com %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s%s: não foi possível conectar ao remetente" +#~ msgid "commands defined by plugins" +#~ msgstr "comandos definidos por plugins" + +#~ msgid "weechat commands" +#~ msgstr "comandos do weechat" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "comandos (weechat e plugins)" + #~ msgid "control debug for core/plugins" #~ msgstr "controlar depuração para core/plugins" diff --git a/po/ru.po b/po/ru.po index 0d352411f..1d2d46189 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-09-03 08:24+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -2345,9 +2345,10 @@ msgstr "команда users отключена" msgid "names of filters" msgstr "Список сокращений:\n" -#, fuzzy -msgid "commands (weechat and plugins)" -msgstr " (нет pluginа)\n" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" #, fuzzy msgid "names of infos hooked" @@ -2373,9 +2374,10 @@ msgstr "настроить параметры конфигурации" msgid "names of plugins installed" msgstr "настроить параметры конфигурации" -#, fuzzy -msgid "commands defined by plugins" -msgstr " (нет pluginа)\n" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" +msgstr "" #, fuzzy msgid "names of bars" @@ -2385,9 +2387,8 @@ msgstr "Список сокращений:\n" msgid "values for a configuration option" msgstr "Не найден параметр\n" -#, fuzzy -msgid "weechat commands" -msgstr "Внутренние команды %s:\n" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" #, fuzzy msgid "names of proxies" @@ -10733,6 +10734,18 @@ msgstr "%s нет аргумента для параметра \"%s\"\n" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "%s DCC: не могу соединиться с отправителем\n" +#, fuzzy +#~ msgid "commands defined by plugins" +#~ msgstr " (нет pluginа)\n" + +#, fuzzy +#~ msgid "weechat commands" +#~ msgstr "Внутренние команды %s:\n" + +#, fuzzy +#~ msgid "commands (weechat and plugins)" +#~ msgstr " (нет pluginа)\n" + #, fuzzy #~ msgid "text color for nicks in chat window" #~ msgstr "цвет времени в окне чата" diff --git a/po/tr.po b/po/tr.po index deb86bd38..1a6a6e620 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: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2016-05-18 07:43+0200\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -2103,8 +2103,10 @@ msgstr "dosyaadı" msgid "names of filters" msgstr "filtrelerin isimleri" -msgid "commands (weechat and plugins)" -msgstr "komutlar (weechat ve eklentiler)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" +msgstr "" msgid "names of infos hooked" msgstr "" @@ -2125,7 +2127,9 @@ msgstr "eklentilerin isimleri" msgid "names of plugins installed" msgstr "eklentilerin isimleri" -msgid "commands defined by plugins" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" msgstr "" msgid "names of bars" @@ -2134,8 +2138,8 @@ msgstr "çubukların isimleri" msgid "values for a configuration option" msgstr "" -msgid "weechat commands" -msgstr "weechat komutları" +msgid "weechat commands; optional argument: prefix to add before the commands" +msgstr "" msgid "names of proxies" msgstr "" @@ -9728,5 +9732,11 @@ msgstr "" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "" +#~ msgid "weechat commands" +#~ msgstr "weechat komutları" + +#~ msgid "commands (weechat and plugins)" +#~ msgstr "komutlar (weechat ve eklentiler)" + #~ msgid "text color for nicks in chat window" #~ msgstr "sohbet penceresindeki rumuzlar için metin rengi" diff --git a/po/weechat.pot b/po/weechat.pot index e24e76412..3376542ca 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: 2016-11-28 21:48+0100\n" +"POT-Creation-Date: 2016-11-29 23:33+0100\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -2101,7 +2101,9 @@ msgstr "" msgid "names of filters" msgstr "" -msgid "commands (weechat and plugins)" +msgid "" +"commands (weechat and plugins); optional argument: prefix to add before the " +"commands" msgstr "" msgid "names of infos hooked" @@ -2122,7 +2124,9 @@ msgstr "" msgid "names of plugins installed" msgstr "" -msgid "commands defined by plugins" +msgid "" +"commands defined by plugins; optional argument: prefix to add before the " +"commands" msgstr "" msgid "names of bars" @@ -2131,7 +2135,7 @@ msgstr "" msgid "values for a configuration option" msgstr "" -msgid "weechat commands" +msgid "weechat commands; optional argument: prefix to add before the commands" msgstr "" msgid "names of proxies" diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 3d90b2441..c78634893 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -7184,7 +7184,7 @@ command_init () " || tags" " || term" " || windows" - " || time %(commands)", + " || time %(commands:/)", &command_debug, NULL, NULL); hook_command ( NULL, "eval", @@ -7540,8 +7540,8 @@ command_init () "list %(keys_contexts)" " || listdefault %(keys_contexts)" " || listdiff %(keys_contexts)" - " || bind %(keys_codes) %(commands)" - " || bindctxt %(keys_contexts) %(keys_codes) %(commands)" + " || bind %(keys_codes) %(commands:/)" + " || bindctxt %(keys_contexts) %(keys_codes) %(commands:/)" " || unbind %(keys_codes)" " || unbindctxt %(keys_contexts) %(keys_codes)" " || reset %(keys_codes_for_reset)" @@ -7620,9 +7620,9 @@ command_init () " /mute -current msg * hi!\n" " message to #weechat channel:\n" " /mute -buffer irc.freenode.#weechat msg #weechat hi!"), - "-core|-current %(commands)|%*" - " || -buffer %(buffers_plugins_names) %(commands)|%*" - " || %(commands)|%*", + "-core|-current %(commands:/)|%*" + " || -buffer %(buffers_plugins_names) %(commands:/)|%*" + " || %(commands:/)|%*", &command_mute, NULL, NULL); hook_command ( NULL, "plugin", @@ -7780,7 +7780,7 @@ command_init () "Example:\n" " scroll 2 pages up:\n" " /repeat 2 /window page_up"), - "%- %(commands)", + "%- %(commands:/)", &command_repeat, NULL, NULL); hook_command ( NULL, "save", @@ -7994,7 +7994,7 @@ command_init () " /wait 15m /away -all I'm away\n" " say 'hello' in 2 minutes:\n" " /wait 2m hello"), - "%- %(commands)", + "%- %(commands:/)", &command_wait, NULL, NULL); hook_command ( NULL, "window", diff --git a/src/core/wee-completion.c b/src/core/wee-completion.c index a1faeeae8..f3c12a3cb 100644 --- a/src/core/wee-completion.c +++ b/src/core/wee-completion.c @@ -594,23 +594,42 @@ completion_list_add_commands_cb (const void *pointer, void *data, struct t_gui_buffer *buffer, struct t_gui_completion *completion) { + const char *pos; + char str_command[512]; struct t_hook *ptr_hook; /* make C compiler happy */ (void) pointer; (void) data; - (void) completion_item; (void) buffer; + pos = strchr (completion_item, ':'); + if (pos) + pos++; + for (ptr_hook = weechat_hooks[HOOK_TYPE_COMMAND]; ptr_hook; ptr_hook = ptr_hook->next_hook) { if (!ptr_hook->deleted && (HOOK_COMMAND(ptr_hook, command)) && (HOOK_COMMAND(ptr_hook, command)[0])) - gui_completion_list_add (completion, - HOOK_COMMAND(ptr_hook, command), - 0, WEECHAT_LIST_POS_SORT); + { + if (pos) + { + snprintf (str_command, sizeof(str_command), + "%s%s", + pos, + HOOK_COMMAND(ptr_hook, command)); + gui_completion_list_add (completion, str_command, + 0, WEECHAT_LIST_POS_SORT); + } + else + { + gui_completion_list_add (completion, + HOOK_COMMAND(ptr_hook, command), + 0, WEECHAT_LIST_POS_SORT); + } + } } return WEECHAT_RC_OK; @@ -914,7 +933,8 @@ completion_list_add_plugins_commands_cb (const void *pointer, void *data, struct t_gui_buffer *buffer, struct t_gui_completion *completion) { - char **argv; + char **argv, str_command[512]; + const char *pos; int argc, arg_index; struct t_weechat_plugin *ptr_plugin; struct t_hook *ptr_hook; @@ -922,38 +942,55 @@ completion_list_add_plugins_commands_cb (const void *pointer, void *data, /* make C compiler happy */ (void) pointer; (void) data; - (void) completion_item; (void) buffer; - if (completion->args) - { - argv = string_split (completion->args, " ", 0, 0, &argc); - if (!argv) - return WEECHAT_RC_OK; + if (!completion->args) + return WEECHAT_RC_OK; - if (argc > 0) + argv = string_split (completion->args, " ", 0, 0, &argc); + if (!argv) + return WEECHAT_RC_OK; + + if (argc > 0) + { + pos = strchr (completion_item, ':'); + if (pos) + pos++; + + arg_index = completion->base_command_arg_index - 2; + if ((arg_index < 0) || (arg_index > argc - 1)) + arg_index = argc - 1; + + ptr_plugin = NULL; + if (string_strcasecmp (argv[arg_index], PLUGIN_CORE) != 0) { - arg_index = completion->base_command_arg_index - 2; - if ((arg_index < 0) || (arg_index > argc - 1)) - arg_index = argc - 1; - ptr_plugin = NULL; - if (string_strcasecmp (argv[arg_index], PLUGIN_CORE) != 0) + /* + * plugin name is different from "core", then search it in + * plugin list + */ + ptr_plugin = plugin_search (argv[arg_index]); + if (!ptr_plugin) + return WEECHAT_RC_OK; + } + + for (ptr_hook = weechat_hooks[HOOK_TYPE_COMMAND]; ptr_hook; + ptr_hook = ptr_hook->next_hook) + { + if (!ptr_hook->deleted + && (ptr_hook->plugin == ptr_plugin) + && HOOK_COMMAND(ptr_hook, command) + && HOOK_COMMAND(ptr_hook, command)[0]) { - /* - * plugin name is different from "core", then search it in - * plugin list - */ - ptr_plugin = plugin_search (argv[arg_index]); - if (!ptr_plugin) - return WEECHAT_RC_OK; - } - for (ptr_hook = weechat_hooks[HOOK_TYPE_COMMAND]; ptr_hook; - ptr_hook = ptr_hook->next_hook) - { - if (!ptr_hook->deleted - && (ptr_hook->plugin == ptr_plugin) - && HOOK_COMMAND(ptr_hook, command) - && HOOK_COMMAND(ptr_hook, command)[0]) + if (pos) + { + snprintf (str_command, sizeof(str_command), + "%s%s", + pos, + HOOK_COMMAND(ptr_hook, command)); + gui_completion_list_add (completion, str_command, + 0, WEECHAT_LIST_POS_SORT); + } + else { gui_completion_list_add (completion, HOOK_COMMAND(ptr_hook, command), @@ -961,9 +998,10 @@ completion_list_add_plugins_commands_cb (const void *pointer, void *data, } } } - string_free_split( argv); } + string_free_split(argv); + return WEECHAT_RC_OK; } @@ -1204,13 +1242,18 @@ completion_list_add_weechat_commands_cb (const void *pointer, void *data, struct t_gui_completion *completion) { struct t_hook *ptr_hook; + const char *pos; + char str_command[512]; /* make C compiler happy */ (void) pointer; (void) data; - (void) completion_item; (void) buffer; + pos = strchr (completion_item, ':'); + if (pos) + pos++; + for (ptr_hook = weechat_hooks[HOOK_TYPE_COMMAND]; ptr_hook; ptr_hook = ptr_hook->next_hook) { @@ -1219,9 +1262,21 @@ completion_list_add_weechat_commands_cb (const void *pointer, void *data, && HOOK_COMMAND(ptr_hook, command) && HOOK_COMMAND(ptr_hook, command)[0]) { - gui_completion_list_add (completion, - HOOK_COMMAND(ptr_hook, command), - 0, WEECHAT_LIST_POS_SORT); + if (pos) + { + snprintf (str_command, sizeof(str_command), + "%s%s", + pos, + HOOK_COMMAND(ptr_hook, command)); + gui_completion_list_add (completion, str_command, + 0, WEECHAT_LIST_POS_SORT); + } + else + { + gui_completion_list_add (completion, + HOOK_COMMAND(ptr_hook, command), + 0, WEECHAT_LIST_POS_SORT); + } } } @@ -1640,7 +1695,8 @@ completion_init () N_("names of filters"), &completion_list_add_filters_cb, NULL, NULL); hook_completion (NULL, "commands", /* formerly "%h" */ - N_("commands (weechat and plugins)"), + N_("commands (weechat and plugins); " + "optional argument: prefix to add before the commands"), &completion_list_add_commands_cb, NULL, NULL); hook_completion (NULL, "infos", /* formerly "%i" */ N_("names of infos hooked"), @@ -1661,7 +1717,8 @@ completion_init () N_("names of plugins installed"), &completion_list_add_plugins_installed_cb, NULL, NULL); hook_completion (NULL, "plugins_commands", /* formerly "%P" */ - N_("commands defined by plugins"), + N_("commands defined by plugins; " + "optional argument: prefix to add before the commands"), &completion_list_add_plugins_commands_cb, NULL, NULL); hook_completion (NULL, "bars_names", /* formerly "%r" */ N_("names of bars"), @@ -1670,7 +1727,8 @@ completion_init () N_("values for a configuration option"), &completion_list_add_config_option_values_cb, NULL, NULL); hook_completion (NULL, "weechat_commands", /* formerly "%w" */ - N_("weechat commands"), + N_("weechat commands; " + "optional argument: prefix to add before the commands"), &completion_list_add_weechat_commands_cb, NULL, NULL); hook_completion (NULL, "proxies_names", /* formerly "%y" */ N_("names of proxies"), diff --git a/src/plugins/alias/alias-command.c b/src/plugins/alias/alias-command.c index f492faaa5..212f735e7 100644 --- a/src/plugins/alias/alias-command.c +++ b/src/plugins/alias/alias-command.c @@ -286,8 +286,8 @@ alias_command_init () "completion of /sajoin:\n" " /alias addcompletion %%sajoin forcejoin /quote forcejoin"), "list %(alias)" - " || add %(alias) %(commands)|%(alias_value)" - " || addcompletion %- %(alias) %(commands)|%(alias_value)" + " || add %(alias) %(commands:/)|%(alias_value)" + " || addcompletion %- %(alias) %(commands:/)|%(alias_value)" " || del %(alias)|%*", &alias_command_cb, NULL, NULL); }