diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-08-09 21:54:00 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-08-09 21:54:00 +0200 |
commit | 90f2a13ae254f223cba8d5e2d715aa56a32a6ccd (patch) | |
tree | 230473e7184387f43edd1acc7808d2454b73d6af /doc | |
parent | 1172b193706db50435234b4b82f2d68abb45dddd (diff) | |
download | weechat-90f2a13ae254f223cba8d5e2d715aa56a32a6ccd.zip |
core: update translations
Diffstat (limited to 'doc')
-rw-r--r-- | doc/de/autogen/plugin_api/completions.adoc | 2 | ||||
-rw-r--r-- | doc/de/autogen/user/trigger_commands.adoc | 105 | ||||
-rw-r--r-- | doc/de/autogen/user/trigger_options.adoc | 5 | ||||
-rw-r--r-- | doc/en/autogen/plugin_api/completions.adoc | 2 | ||||
-rw-r--r-- | doc/en/autogen/user/trigger_commands.adoc | 3 | ||||
-rw-r--r-- | doc/en/autogen/user/trigger_options.adoc | 5 | ||||
-rw-r--r-- | doc/fr/autogen/plugin_api/completions.adoc | 2 | ||||
-rw-r--r-- | doc/fr/autogen/user/trigger_commands.adoc | 3 | ||||
-rw-r--r-- | doc/fr/autogen/user/trigger_options.adoc | 5 | ||||
-rw-r--r-- | doc/it/autogen/plugin_api/completions.adoc | 2 | ||||
-rw-r--r-- | doc/it/autogen/user/trigger_commands.adoc | 3 | ||||
-rw-r--r-- | doc/it/autogen/user/trigger_options.adoc | 5 | ||||
-rw-r--r-- | doc/ja/autogen/plugin_api/completions.adoc | 2 | ||||
-rw-r--r-- | doc/ja/autogen/user/trigger_commands.adoc | 109 | ||||
-rw-r--r-- | doc/ja/autogen/user/trigger_options.adoc | 5 | ||||
-rw-r--r-- | doc/pl/autogen/plugin_api/completions.adoc | 2 | ||||
-rw-r--r-- | doc/pl/autogen/user/trigger_commands.adoc | 129 | ||||
-rw-r--r-- | doc/pl/autogen/user/trigger_options.adoc | 5 |
18 files changed, 221 insertions, 173 deletions
diff --git a/doc/de/autogen/plugin_api/completions.adoc b/doc/de/autogen/plugin_api/completions.adoc index c0e20e33d..11f114953 100644 --- a/doc/de/autogen/plugin_api/completions.adoc +++ b/doc/de/autogen/plugin_api/completions.adoc @@ -102,6 +102,8 @@ | trigger | trigger_options | Einstellungen für Trigger +| trigger | trigger_post_action | trigger post actions + | weechat | bars_names | Namen der Infobars | weechat | bars_options | Einstellungen für Infobars diff --git a/doc/de/autogen/user/trigger_commands.adoc b/doc/de/autogen/user/trigger_commands.adoc index a668f68cf..2e5bc1a85 100644 --- a/doc/de/autogen/user/trigger_commands.adoc +++ b/doc/de/autogen/user/trigger_commands.adoc @@ -7,7 +7,7 @@ ---- /trigger list|listfull|listdefault - add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>" ["<post_action>"]]]]]] addinput [<hook>] input|output|recreate <name> set <name> <option> <value> @@ -20,64 +20,65 @@ default -yes monitor [<filter>] - list: zeigt eine Liste aller Trigger (ohne Angabe von Argumente wird diese Liste standardmäßig ausgegeben) - listfull: zeigt eine detaillierte Liste, mit zusätzlichen Informationen, aller Trigger an -listdefault: zeigt die standardmäßig genutzen Trigger an - add: fügt einen Trigger hinzu - addoff: fügt einen Trigger hinzu (deaktiviert) - addreplace: fügt oder ersetzt einen schon existierenden Trigger - name: Name des Trigger + list: list triggers (without argument, this list is displayed) + listfull: list triggers with detailed info for each trigger +listdefault: list default triggers + add: add a trigger + addoff: add a trigger (disabled) + addreplace: add or replace an existing trigger + name: name of trigger hook: signal, hsignal, modifier, print, command, command_run, timer, config, focus - arguments: Argumente für den Hook, abhängig vom genutzten Hook (getrennt durch Semikolon): - signal: Name(en) des signals (erforderlich) - hsignal: Name(en) des hsignal (erforderlich) - modifier: Name(en) des modifier (erforderlich) + arguments: arguments for the hook, depending on hook (separated by semicolons): + signal: name(s) of signal (required) + hsignal: name(s) of hsignal (required) + modifier: name(s) of modifier (required) print: buffer, tags, message, strip colors - command: Befehl (erforderlich), Beschreibung, Argumente, Beschreibung der Argumente, Vervollständigung - command_run: Befehl(e) (erforderlich) - timer: Intervall (erforderlich), Anpassung an Sekunden (erforderlich), maximale Anzahl an Aufrufen - config: Name der Einstellung (erforderlich) - focus: Name(n) für sichtbaren Bereich (erforderlich) (z.B. "chat" für Chatbereich) - conditions: evaluierte Bedingungen für den Trigger - regex: einer oder mehrere reguläre Ausdrücke um Zeichenketten in Variablen zu ersetzen - command: Befehl welcher ausgeführt werden soll (mehrere Befehle müssen durch ";" voneinander getrennt werden -return_code: Rückgabewert für Callback (ok (standard), ok_eat, error) - addinput: erstellt einen Trigger mit einer standardmäßigen Mustervorlage - input: kopiert den kompletten Trigger-Befehl in die Eingabezeile - output: schickt den Trigger-Befehl als Text in den Buffer - recreate: wie "input", allerdings wird die Einstellung "addreplace" anstelle von "add" genutzt - set: definiert, innerhalb eines Triggers, eine Einstellung neu - option: Name einer Einstellung: name, hook, arguments, conditions, regex, command, return_code - (um Hilfe über eine Einstellung zu erhalten: /help trigger.trigger.<name>.<option>) - value: neuer Wert für Einstellung - rename: benennt einen Trigger um - copy: kopiert einen Trigger - enable: aktiviert Trigger (ohne Angabe von Argumenten: aktiviert alle Trigger) - disable: deaktiviert Trigger (ohne Angabe von Argumenten: deaktiviert alle Trigger) - toggle: de-/aktiviert Trigger (ohne Angabe von Argumenten: de-/aktiviert alle Trigger) - restart: startet Trigger neu (Hook(s) werden neu erstellt) - show: zeigt detaillierte Informationen zu einem Trigger (inklusive einer kleinen Statistik) - del: entfernt einen Trigger - -all: führt eine Aktion aus, die alle Trigger beinhaltet - restore: stellt Trigger mit Standardwerten wieder her (funktioniert nur bei vorgegebenen Triggern) - default: stellt die standardmäßigen Trigger wieder her - monitor: öffnet den Trigger Monitor-Buffer, mit optionaler Filterfunktion: - Filter: zeigt Hooks/Trigger an (ein Hook muss mit "@" beginnen, zum Beispiel "@signal"), mehrere Filter können durch Kommata voneinander getrennt werden; Platzhalter "*" kann im Namen des Trigger verwendet werden + command: command (required), description, arguments, description of arguments, completion + command_run: command(s) (required) + timer: interval (required), align on second, max calls + config: name(s) of option (required) + focus: name(s) of area (required) + conditions: evaluated conditions for the trigger + regex: one or more regular expressions to replace strings in variables + command: command to execute (many commands can be separated by ";" +return_code: return code in callback (ok (default), ok_eat, error) +post_action: action to take after execution (none (default), disable, delete) + addinput: set input with default arguments to create a trigger + input: set input with the command used to create the trigger + output: send the command to create the trigger on the buffer + recreate: same as "input", with option "addreplace" instead of "add" + set: set an option in a trigger + option: name of option: name, hook, arguments, conditions, regex, command, return_code + (for help on option, you can type: /help trigger.trigger.<name>.<option>) + value: new value for the option + rename: rename a trigger + copy: copy a trigger + enable: enable trigger(s) (without arguments: enable triggers globally) + disable: disable trigger(s) (without arguments: disable triggers globally) + toggle: toggle trigger(s) (without arguments: toggle triggers globally) + restart: restart trigger(s) (recreate the hooks) + show: show detailed info on a trigger (with some stats) + del: delete a trigger + -all: do action on all triggers + restore: restore trigger(s) with the default values (works only for default triggers) + default: delete all triggers and restore default ones + monitor: open the trigger monitor buffer, with optional filter: + filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; wildcard "*" is allowed in each trigger name -Wenn ein Trigger-Callback aufgerufen wird, dann wird folgende Befehlskette ausgeführt: - 1. Überprüfung von Bedingungen; falls unwahr, beenden - 2. ersetze Text mittels erweitertem regulärer POSIX Ausdruck (sofern im Trigger definiert) - 3. ein oder mehrere Befehle werden ausgeführt (sofern im Trigger definiert) - 4. Beendigung mit einem Rückgabewert (ausgenommen sind modifiers und focus) +When a trigger callback is called, following actions are performed, in this order: + 1. check conditions; if false, exit + 2. replace text using POSIX extended regular expression(s) (if defined in trigger) + 3. execute command(s) (if defined in trigger) + 4. exit with a return code (except for modifiers and focus) -Beispiele (die standardmäßig, eingebauten Trigger kann man sich mit "/trigger listdefault" anzeigen lassen): - fügt einer Nachricht die Textattribute *fett*, _unterstrichen_ und /kursiv/ hinzu: +Examples (you can also look at default triggers with /trigger listdefault): + add text attributes *bold*, _underline_ and /italic/ (only in user messages): /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re:1}${color:-italic}/" - verbirgt die Nicklist auf kleineren Terminals: + hide nicklist bar on small terminals: /trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist" /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" - speichert die Konfiguration jede Stunde ab: + silently save config each hour: /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" - öffnet den Trigger Monitor und zeigt ausschließlich modifier und Trigger an, die mit "resize" im Namen beginnen: + open trigger monitor and show only modifiers and triggers whose name starts with "resize": /trigger monitor @modifier,resize* ---- diff --git a/doc/de/autogen/user/trigger_options.adoc b/doc/de/autogen/user/trigger_options.adoc index 537c66740..8492d08c4 100644 --- a/doc/de/autogen/user/trigger_options.adoc +++ b/doc/de/autogen/user/trigger_options.adoc @@ -12,6 +12,11 @@ ** Typ: Farbe ** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `+yellow+`) +* [[option_trigger.color.flag_post_action]] *trigger.color.flag_post_action* +** Beschreibung: pass:none[text color for post action flag (in /trigger list)] +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `+lightblue+`) + * [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* ** Beschreibung: pass:none[Textfarbe für Regex-Flag (in /trigger list)] ** Typ: Farbe diff --git a/doc/en/autogen/plugin_api/completions.adoc b/doc/en/autogen/plugin_api/completions.adoc index 54942d71d..f867773d5 100644 --- a/doc/en/autogen/plugin_api/completions.adoc +++ b/doc/en/autogen/plugin_api/completions.adoc @@ -102,6 +102,8 @@ | trigger | trigger_options | options for triggers +| trigger | trigger_post_action | trigger post actions + | weechat | bars_names | names of bars | weechat | bars_options | options for bars diff --git a/doc/en/autogen/user/trigger_commands.adoc b/doc/en/autogen/user/trigger_commands.adoc index 605490abe..d9eed9d83 100644 --- a/doc/en/autogen/user/trigger_commands.adoc +++ b/doc/en/autogen/user/trigger_commands.adoc @@ -7,7 +7,7 @@ ---- /trigger list|listfull|listdefault - add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>" ["<post_action>"]]]]]] addinput [<hook>] input|output|recreate <name> set <name> <option> <value> @@ -42,6 +42,7 @@ listdefault: list default triggers regex: one or more regular expressions to replace strings in variables command: command to execute (many commands can be separated by ";" return_code: return code in callback (ok (default), ok_eat, error) +post_action: action to take after execution (none (default), disable, delete) addinput: set input with default arguments to create a trigger input: set input with the command used to create the trigger output: send the command to create the trigger on the buffer diff --git a/doc/en/autogen/user/trigger_options.adoc b/doc/en/autogen/user/trigger_options.adoc index c09104d41..c2dd427b3 100644 --- a/doc/en/autogen/user/trigger_options.adoc +++ b/doc/en/autogen/user/trigger_options.adoc @@ -12,6 +12,11 @@ ** type: color ** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `+yellow+`) +* [[option_trigger.color.flag_post_action]] *trigger.color.flag_post_action* +** description: pass:none[text color for post action flag (in /trigger list)] +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `+lightblue+`) + * [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* ** description: pass:none[text color for regex flag (in /trigger list)] ** type: color diff --git a/doc/fr/autogen/plugin_api/completions.adoc b/doc/fr/autogen/plugin_api/completions.adoc index 29bcc7b25..45501bf22 100644 --- a/doc/fr/autogen/plugin_api/completions.adoc +++ b/doc/fr/autogen/plugin_api/completions.adoc @@ -102,6 +102,8 @@ | trigger | trigger_options | options pour les triggers +| trigger | trigger_post_action | actions "post" pour les triggers + | weechat | bars_names | noms des barres | weechat | bars_options | options pour les barres diff --git a/doc/fr/autogen/user/trigger_commands.adoc b/doc/fr/autogen/user/trigger_commands.adoc index edaf65de5..ba8a462d4 100644 --- a/doc/fr/autogen/user/trigger_commands.adoc +++ b/doc/fr/autogen/user/trigger_commands.adoc @@ -7,7 +7,7 @@ ---- /trigger list|listfull|listdefault - add|addoff|addreplace <nom> <hook> ["<paramètres>" ["<conditions>" ["<regex>" ["<commande>" ["<code_retour>"]]]]] + add|addoff|addreplace <nom> <hook> ["<paramètres>" ["<conditions>" ["<regex>" ["<commande>" ["<code_retour>" ["action_post"]]]]]] addinput [<hook>] input|output|recreate <nom> set <nom> <option> <valeur> @@ -42,6 +42,7 @@ listdefault : lister les triggers par défaut regex : une ou plusieurs expressions régulières pour remplacer des chaînes dans les variables commande : commande à exécuter (plusieurs commandes peuvent être séparées par ";") code_retour : code retour dans le callback (ok (par défaut), ok_eat, error) +action_post : action à effectuer après l'exécution (none (par défaut), disable, delete) addinput : définir la ligne de commande avec les paramètres par défaut pour créer un trigger input : définir la ligne de commande utilisée pour créer le trigger output : envoyer la commande pour créer le trigger sur le tampon diff --git a/doc/fr/autogen/user/trigger_options.adoc b/doc/fr/autogen/user/trigger_options.adoc index 61e27c02a..38091016d 100644 --- a/doc/fr/autogen/user/trigger_options.adoc +++ b/doc/fr/autogen/user/trigger_options.adoc @@ -12,6 +12,11 @@ ** type: couleur ** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `+yellow+`) +* [[option_trigger.color.flag_post_action]] *trigger.color.flag_post_action* +** description: pass:none[couleur du texte pour le drapeau de l'action "post" (dans /trigger list)] +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `+lightblue+`) + * [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* ** description: pass:none[couleur du texte pour le drapeaux de l'expression régulière (dans /trigger list)] ** type: couleur diff --git a/doc/it/autogen/plugin_api/completions.adoc b/doc/it/autogen/plugin_api/completions.adoc index 7aaf70f66..26f14e3f7 100644 --- a/doc/it/autogen/plugin_api/completions.adoc +++ b/doc/it/autogen/plugin_api/completions.adoc @@ -102,6 +102,8 @@ | trigger | trigger_options | options for triggers +| trigger | trigger_post_action | trigger post actions + | weechat | bars_names | nomi delle barre | weechat | bars_options | opzioni per le barre diff --git a/doc/it/autogen/user/trigger_commands.adoc b/doc/it/autogen/user/trigger_commands.adoc index 605490abe..d9eed9d83 100644 --- a/doc/it/autogen/user/trigger_commands.adoc +++ b/doc/it/autogen/user/trigger_commands.adoc @@ -7,7 +7,7 @@ ---- /trigger list|listfull|listdefault - add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>" ["<post_action>"]]]]]] addinput [<hook>] input|output|recreate <name> set <name> <option> <value> @@ -42,6 +42,7 @@ listdefault: list default triggers regex: one or more regular expressions to replace strings in variables command: command to execute (many commands can be separated by ";" return_code: return code in callback (ok (default), ok_eat, error) +post_action: action to take after execution (none (default), disable, delete) addinput: set input with default arguments to create a trigger input: set input with the command used to create the trigger output: send the command to create the trigger on the buffer diff --git a/doc/it/autogen/user/trigger_options.adoc b/doc/it/autogen/user/trigger_options.adoc index 732ce6e2c..aa7e1c669 100644 --- a/doc/it/autogen/user/trigger_options.adoc +++ b/doc/it/autogen/user/trigger_options.adoc @@ -12,6 +12,11 @@ ** tipo: colore ** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `+yellow+`) +* [[option_trigger.color.flag_post_action]] *trigger.color.flag_post_action* +** descrizione: pass:none[text color for post action flag (in /trigger list)] +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `+lightblue+`) + * [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* ** descrizione: pass:none[text color for regex flag (in /trigger list)] ** tipo: colore diff --git a/doc/ja/autogen/plugin_api/completions.adoc b/doc/ja/autogen/plugin_api/completions.adoc index 0abdf1da5..d6eedaa40 100644 --- a/doc/ja/autogen/plugin_api/completions.adoc +++ b/doc/ja/autogen/plugin_api/completions.adoc @@ -102,6 +102,8 @@ | trigger | trigger_options | トリガに対するオプション +| trigger | trigger_post_action | trigger post actions + | weechat | bars_names | バーの名前 | weechat | bars_options | バーのオプション diff --git a/doc/ja/autogen/user/trigger_commands.adoc b/doc/ja/autogen/user/trigger_commands.adoc index c13a210f7..f07cd8936 100644 --- a/doc/ja/autogen/user/trigger_commands.adoc +++ b/doc/ja/autogen/user/trigger_commands.adoc @@ -7,7 +7,7 @@ ---- /trigger list|listfull|listdefault - add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>" ["<post_action>"]]]]]] addinput [<hook>] input|output|recreate <name> set <name> <option> <value> @@ -20,64 +20,65 @@ default -yes monitor [<filter>] - list: トリガをリストアップ (引数なしの場合、このリストを表示します) - listfull: 各トリガに関する詳細な情報を付けてトリガをリストアップ -listdefault: デフォルトトリガをリストアップ - add: トリガを追加 - addoff: トリガを追加 (無効状態で) - addreplace: 追加または存在するトリガを置換 - name: トリガの名前 - hook: signal、hsignal、modifier、print、command、command_run、timer、config、focus - arguments: フックの引数、フックの種類に依存 (セミコロンで区切る): - signal: シグナルの名前 (必須) - hsignal: hsignal の名前 (必須) - modifier: modifier の名前 (必須) - print: バッファ、タグ、メッセージ、色の削除 - command: コマンド (必須)、説明、引数、引数の説明、補完 - command_run: コマンド (必須) - timer: インターバル (必須)、秒の調節、最大呼び出し回数 - config: オプションの名前 (必須) - focus: エリアの名前 (必須) - conditions: トリガの実行条件 - regex: 変数内の文字列を置換する 1 つ以上の正規表現 - command: 実行するコマンド (複数のコマンドは ";" で区切ってください) -return_code: コールバック内のリターンコード (ok (デフォルト)、ok_eat、error) - addinput: 入力にトリガを作る際のデフォルト引数を設定 - input: 入力にトリガを作る際に使われるコマンドを設定 - output: バッファでトリガを作る際のコマンドを送信 - recreate: "add" の代わりに "addreplace" オプションを使うことを除いて "input" と同じ - set: トリガにオプションを設定 - option: オプションの名前: name、hook、arguments、conditions、regex、command、return_code - (オプションに関するヘルプを見るには: /help trigger.trigger.<name>.<option>) - value: オプションの新しい値 - rename: トリガの名前を変更 - copy: トリガをコピー - enable: トリガを有効化 (引数なしの場合: 大域的にトリガを有効化) - disable: トリガを無効化 (引数なしの場合: 大域的にトリガを無効化) - toggle: トリガの有効無効を切り替え (引数なしの場合: 大域的にトリガの有効無効を切り替え) - restart: トリガの再開 (フックを再作成) - show: トリガに関する情報を表示 (状態を含めて) - del: トリガを削除 - -all: 全てのトリガに関するアクションを実行 - restore: デフォルトの値でトリガを復元 (これができるのはデフォルトトリガに限ります) - default: 全てのトリガを削除してデフォルトのトリガを復元 - monitor: 任意でフィルタを付けてトリガ監視バッファを開く: - filter: フックおよびトリガをフィルタして表示 (フックは必ず "@" で始めてください、たとえば "@signal")、複数のフィルタをかける場合はそれぞれをコンマで区切ってください; 各トリガ名にワイルドカード "*" を使うことができます。 + list: list triggers (without argument, this list is displayed) + listfull: list triggers with detailed info for each trigger +listdefault: list default triggers + add: add a trigger + addoff: add a trigger (disabled) + addreplace: add or replace an existing trigger + name: name of trigger + hook: signal, hsignal, modifier, print, command, command_run, timer, config, focus + arguments: arguments for the hook, depending on hook (separated by semicolons): + signal: name(s) of signal (required) + hsignal: name(s) of hsignal (required) + modifier: name(s) of modifier (required) + print: buffer, tags, message, strip colors + command: command (required), description, arguments, description of arguments, completion + command_run: command(s) (required) + timer: interval (required), align on second, max calls + config: name(s) of option (required) + focus: name(s) of area (required) + conditions: evaluated conditions for the trigger + regex: one or more regular expressions to replace strings in variables + command: command to execute (many commands can be separated by ";" +return_code: return code in callback (ok (default), ok_eat, error) +post_action: action to take after execution (none (default), disable, delete) + addinput: set input with default arguments to create a trigger + input: set input with the command used to create the trigger + output: send the command to create the trigger on the buffer + recreate: same as "input", with option "addreplace" instead of "add" + set: set an option in a trigger + option: name of option: name, hook, arguments, conditions, regex, command, return_code + (for help on option, you can type: /help trigger.trigger.<name>.<option>) + value: new value for the option + rename: rename a trigger + copy: copy a trigger + enable: enable trigger(s) (without arguments: enable triggers globally) + disable: disable trigger(s) (without arguments: disable triggers globally) + toggle: toggle trigger(s) (without arguments: toggle triggers globally) + restart: restart trigger(s) (recreate the hooks) + show: show detailed info on a trigger (with some stats) + del: delete a trigger + -all: do action on all triggers + restore: restore trigger(s) with the default values (works only for default triggers) + default: delete all triggers and restore default ones + monitor: open the trigger monitor buffer, with optional filter: + filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; wildcard "*" is allowed in each trigger name -トリガコールバックを呼び出す際には、以下の順番通りにアクションを実行します: - 1. 条件を確認; 偽の場合、終了 - 2. POSIX 拡張正規表現を使ってテキストを置換 (トリガに定義されている場合) - 3. コマンドを実行 (トリガに定義されている場合) - 4. リターンコードを返して終了 (modifier と focus を除く) +When a trigger callback is called, following actions are performed, in this order: + 1. check conditions; if false, exit + 2. replace text using POSIX extended regular expression(s) (if defined in trigger) + 3. execute command(s) (if defined in trigger) + 4. exit with a return code (except for modifiers and focus) -例 (/trigger listdefault でデフォルトトリガを見ることができます): - テキスト属性 *太字*、_下線_、/イタリック/ を追加 (ユーザメッセージのみ): +Examples (you can also look at default triggers with /trigger listdefault): + add text attributes *bold*, _underline_ and /italic/ (only in user messages): /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re:1}${color:-italic}/" - 狭い端末ではニックネームリストバーを隠す: + hide nicklist bar on small terminals: /trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist" /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" - 設定を 1 時間毎に黙々と保存: + silently save config each hour: /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" - トリガモニタを開き、修飾子と名前が "resize" から始まるトリガだけを表示: + open trigger monitor and show only modifiers and triggers whose name starts with "resize": /trigger monitor @modifier,resize* ---- diff --git a/doc/ja/autogen/user/trigger_options.adoc b/doc/ja/autogen/user/trigger_options.adoc index f684629d1..e40ab8db1 100644 --- a/doc/ja/autogen/user/trigger_options.adoc +++ b/doc/ja/autogen/user/trigger_options.adoc @@ -12,6 +12,11 @@ ** タイプ: 色 ** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `+yellow+`) +* [[option_trigger.color.flag_post_action]] *trigger.color.flag_post_action* +** 説明: pass:none[text color for post action flag (in /trigger list)] +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `+lightblue+`) + * [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* ** 説明: pass:none[正規表現フラグに対するテキスト色 (/trigger list 用)] ** タイプ: 色 diff --git a/doc/pl/autogen/plugin_api/completions.adoc b/doc/pl/autogen/plugin_api/completions.adoc index 824dc557d..05b162185 100644 --- a/doc/pl/autogen/plugin_api/completions.adoc +++ b/doc/pl/autogen/plugin_api/completions.adoc @@ -102,6 +102,8 @@ | trigger | trigger_options | opcje dla triggerów +| trigger | trigger_post_action | trigger post actions + | weechat | bars_names | nazwy pasków | weechat | bars_options | opcje pasków diff --git a/doc/pl/autogen/user/trigger_commands.adoc b/doc/pl/autogen/user/trigger_commands.adoc index 938775c7c..71dca187a 100644 --- a/doc/pl/autogen/user/trigger_commands.adoc +++ b/doc/pl/autogen/user/trigger_commands.adoc @@ -7,77 +7,78 @@ ---- /trigger list|listfull|listdefault - add|addoff|addreplace <nazwa> <uchwyt> ["<argumenty>" ["<warunki>" ["<regex>" ["<komenda>" ["<kod powrotu>"]]]]] - addinput [<uchwyt>] - input|output|recreate <nazwa> - set <nazwa> <opcja> <wartość> - rename|copy <nazwa> <nowa nazwa> - enable|disable|toggle [<nazwa>|-all [<nazwa>...]] - restart <nazwa>|-all [<nazwa>...] - show <nazwa> - del <nazwa>|-all [<nazwa>...] - restore <nazwa> [<nazwa>...] + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>" ["<post_action>"]]]]]] + addinput [<hook>] + input|output|recreate <name> + set <name> <option> <value> + rename|copy <name> <new_name> + enable|disable|toggle [<name>|-all [<name>...]] + restart <name>|-all [<name>...] + show <name> + del <name>|-all [<name>...] + restore <name> [<name>...] default -yes - monitor [<filtr>] + monitor [<filter>] - list: lista triggerów (jeśli nie podano argumentu, wyświetli się ta lista) - listfull: lista triggerów ze szczegółowymi informacjami -listdefault: lista domyślnych triggerów - add: dodaje trigger - addoff: dodaje trigger (wyłączony) - addreplace: dodaje lub zastępuje istniejący trigger - nazwa: nazwa triggera - uchwyt: signal, hsignal, modifier, print, command, command_run, timer, config, focus - argumenty: argumenty dla uchwytu, w zależności od jego typu (oddzielone średnikami): - signal: nazwa(-y) signal (wymagane) - hsignal: nazwa(-y) hsignal (wymagane) - modifier: nazwa(-y) modifier (wymagane) - print: bufor, tagi, wiadomość, pomiń kolory - command: komenda (wymagane), opis, argumenty, opis argumentów, dopełnienie - command_run: komenda(-y) (wymagane) - timer: interwał (wymagane), wyrównanie sekund, ilość wywołań - config: nazwa(-y) opcji (wymagane) - focus: nazwa(-y) obszarów (wymagane) - warunki: przetwarzane warunki dla triggera - regex: jedno lub więcej wyrażeń regularnych do zastępowania ciągów w zmiennych - komenda: komenda do wykonania (wiele komend można oddzielić ";" -zwracany_kod: kod zwracany w callbacku (ok (domyślne), ok_eat, error) - addinput: ustawia wejście z domyślnymi argumentami do stworzenia triggera - input: ustawia wejście z komendą użytą do stworzenia triggera - output: wysyła komendę do stworzenia triggera do buforu - recreate: tak samo jak "input", z opcją "addreplace" zamiast "add" - set: ustawia opcje triggera - opcja: nazwa opcji: name, hook, arguments, conditions, regex, command, return_code - (aby uzyskać pomoc na temat opcji możesz wpisać: /help trigger.trigger.<nazwa>.<opcja>) - wartość: nowa wartość dla opcji - rename: zmienia nazwę triggera - copy: kopiuje trigger - enable: włącza trigger(y) (bez argumentów: włącza triggery globalnie) - disable: wyłącza trigger(y) (bez argumentów: wyłącza triggery globalnie) - toggle: zmienia stan triggera(-ów) (bez argumentów: zmienia stan triggerów globalnie) - restart: restartuje trigger(y) (tworzy na nowo uchwyty) - show: pokazuje szczegółowe informacje o triggerze (z niektórymi statystykami) - del: usuwa trigger - -all: wykonaj akcję na wszystkich triggerach - restore: przywraca trigger(y) z domyślnymi wartościami (działa tylko dla domyślnych triggerów) - default: przywraca domyślne triggery - monitor: otwiera bufor monitorowania triggerów, z opcjonalnym filtrem: - filtr: filtruje uchwyty/triggery do wyświetlenia (uchwyt musi się zaczynać od "@", na przykład "@signal"), wiele filtrów może być oddzielonych przecinkiem; dzika karta "*" jest dozwolona w nazwie każdego triggera + list: list triggers (without argument, this list is displayed) + listfull: list triggers with detailed info for each trigger +listdefault: list default triggers + add: add a trigger + addoff: add a trigger (disabled) + addreplace: add or replace an existing trigger + name: name of trigger + hook: signal, hsignal, modifier, print, command, command_run, timer, config, focus + arguments: arguments for the hook, depending on hook (separated by semicolons): + signal: name(s) of signal (required) + hsignal: name(s) of hsignal (required) + modifier: name(s) of modifier (required) + print: buffer, tags, message, strip colors + command: command (required), description, arguments, description of arguments, completion + command_run: command(s) (required) + timer: interval (required), align on second, max calls + config: name(s) of option (required) + focus: name(s) of area (required) + conditions: evaluated conditions for the trigger + regex: one or more regular expressions to replace strings in variables + command: command to execute (many commands can be separated by ";" +return_code: return code in callback (ok (default), ok_eat, error) +post_action: action to take after execution (none (default), disable, delete) + addinput: set input with default arguments to create a trigger + input: set input with the command used to create the trigger + output: send the command to create the trigger on the buffer + recreate: same as "input", with option "addreplace" instead of "add" + set: set an option in a trigger + option: name of option: name, hook, arguments, conditions, regex, command, return_code + (for help on option, you can type: /help trigger.trigger.<name>.<option>) + value: new value for the option + rename: rename a trigger + copy: copy a trigger + enable: enable trigger(s) (without arguments: enable triggers globally) + disable: disable trigger(s) (without arguments: disable triggers globally) + toggle: toggle trigger(s) (without arguments: toggle triggers globally) + restart: restart trigger(s) (recreate the hooks) + show: show detailed info on a trigger (with some stats) + del: delete a trigger + -all: do action on all triggers + restore: restore trigger(s) with the default values (works only for default triggers) + default: delete all triggers and restore default ones + monitor: open the trigger monitor buffer, with optional filter: + filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; wildcard "*" is allowed in each trigger name -Kiedy callback triggera jest wywoływany, wykonywane są następujące akcje, w kolejności: - 1. sprawdzenie warunków; jeśli nie są spełnione, wyjście - 2. zastąpienie tekstu za pomocą rozszerzonych wyrażeń regularnych POSIX (jeśli zdefiniowane) - 3. wykonanie komend(y) (jeśli zdefiniowane) - 4. wyjście z kodem wyjścia (poza modifiers i focus) +When a trigger callback is called, following actions are performed, in this order: + 1. check conditions; if false, exit + 2. replace text using POSIX extended regular expression(s) (if defined in trigger) + 3. execute command(s) (if defined in trigger) + 4. exit with a return code (except for modifiers and focus) -Przykłady (możesz też spojrzeć na domyślne triggery za pomocą /trigger listdefault): - dodaje atrybuty tekstu *bold*, _underline_ i /italic/ (tylko w wiadomościach użytkowników): +Examples (you can also look at default triggers with /trigger listdefault): + add text attributes *bold*, _underline_ and /italic/ (only in user messages): /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re:1}${color:-italic}/" - ukrywa pasek z nickami na małych terminalach: + hide nicklist bar on small terminals: /trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist" /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" - cichy zapis plików konfiguracyjnych co każdą godzinę: + silently save config each hour: /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" - otwiera monitor triggerów i pokazuje tylko modifiers i triggery, których nazwa zaczyna się od "resize": + open trigger monitor and show only modifiers and triggers whose name starts with "resize": /trigger monitor @modifier,resize* ---- diff --git a/doc/pl/autogen/user/trigger_options.adoc b/doc/pl/autogen/user/trigger_options.adoc index eab3d8754..c0432827f 100644 --- a/doc/pl/autogen/user/trigger_options.adoc +++ b/doc/pl/autogen/user/trigger_options.adoc @@ -12,6 +12,11 @@ ** typ: kolor ** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `+yellow+`) +* [[option_trigger.color.flag_post_action]] *trigger.color.flag_post_action* +** opis: pass:none[text color for post action flag (in /trigger list)] +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `+lightblue+`) + * [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* ** opis: pass:none[kolor tekstu dla flag wyrażeń regularnych (w /trigger list)] ** typ: kolor |