doc: translate trigger post action in other languages (user's guide)

v2.8-utf8proc
Sébastien Helleu 2016-08-09 21:44:41 +02:00
parent de7dc59c87
commit 1172b19370
5 changed files with 41 additions and 4 deletions

View File

@ -3065,6 +3065,11 @@ Ein Trigger hat folgende Optionen (Benennung ist
| return_code | `ok`, `ok_eat`, `error` |
Rückgabewert des Callback (Standardwert: `ok`, sollte für fast jeden Trigger
genutzt werden. Die anderen Werte werden höchst selten verwendet).
// TRANSLATION MISSING
| post_action | `none`, `disable`, `delete` |
Action to take on the trigger after execution (default is `none` which should
be used in almost all triggers, the other values are rarely used).
|===
Ein Beispiel ist der standardmäßig genutzte Trigger _beep_, der
@ -3078,6 +3083,7 @@ trigger.trigger.beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
trigger.trigger.beep.regex = ""
trigger.trigger.beep.command = "/print -beep"
trigger.trigger.beep.return_code = ok
trigger.trigger.beep.post_action = none
----
[[trigger_execution]]
@ -3090,6 +3096,8 @@ abgearbeitet:
. ersetze Text mittels erweitertem regulärer POSIX Ausdruck (sofern im Trigger definiert)
. ein oder mehrere Befehle werden ausgeführt (sofern im Trigger definiert)
. Beendigung mit einem Rückgabewert (ausgenommen sind die Hooks _modifier_ und _focus_)
// TRANSLATION MISSING
. perform post action (if different from `none`).
[[trigger_hook_arguments]]
==== Hook Argumente

View File

@ -3079,6 +3079,11 @@ Un trigger a les options suivantes (les noms sont
| return_code | `ok`, `ok_eat`, `error` |
Le code retour du callback (`ok` par défaut, qui devrait être utilisé dans
quasiment tous les triggers, les autres valeurs sont rarement utilisées).
| post_action | `none`, `disable`, `delete` |
Action à effectuer sur le trigger après l'exécution (`none` par défaut, qui
devrait être utilisé dans quasiment tous les triggers, les autres valeurs sont
rarement utilisées).
|===
Par exemple, le trigger _beep_ par défaut a les options suivantes :
@ -3091,6 +3096,7 @@ trigger.trigger.beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
trigger.trigger.beep.regex = ""
trigger.trigger.beep.command = "/print -beep"
trigger.trigger.beep.return_code = ok
trigger.trigger.beep.post_action = none
----
[[trigger_execution]]
@ -3103,7 +3109,8 @@ trigger lui-même est activé :
. vérifier les conditions du trigger : si faux, sortir
. remplacer du texte dans le trigger en utilisant des expressions régulières
. exécuter la/les commande(s)
. sortir avec un code retour (sauf pour les "hooks" _modifier_ et _focus_).
. sortir avec un code retour (sauf pour les "hooks" _modifier_ et _focus_)
. effectuer l'action "post" (si différente de `none`).
[[trigger_hook_arguments]]
==== Paramètres du hook

View File

@ -3153,6 +3153,10 @@ A trigger has the following options (names are
| return_code | `ok`, `ok_eat`, `error` |
The return code of callback (default is `ok`, which should be used in almost
all triggers, the other values are rarely used).
| post_action | `none`, `disable`, `delete` |
Action to take on the trigger after execution (default is `none` which should
be used in almost all triggers, the other values are rarely used).
|===
For example, the default _beep_ trigger has following options:
@ -3165,6 +3169,7 @@ trigger.trigger.beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
trigger.trigger.beep.regex = ""
trigger.trigger.beep.command = "/print -beep"
trigger.trigger.beep.return_code = ok
trigger.trigger.beep.post_action = none
----
[[trigger_execution]]
@ -3176,7 +3181,8 @@ order, if triggers are globally enabled and if the trigger itself is enabled:
. check trigger conditions: if false, exit
. replace text in trigger using regular expression(s)
. execute command(s)
. exit with a return code (except for hooks _modifier_ and _focus_).
. exit with a return code (except for hooks _modifier_ and _focus_)
. perform post action (if different from `none`).
[[trigger_hook_arguments]]
==== Hook arguments

View File

@ -2986,6 +2986,11 @@ include::autogen/user/trigger_commands.adoc[]
| return_code | `ok` 、`ok_eat` 、`error` |
コールバックの戻り値 (デフォルトは
`ok` 、ほとんどすべてのトリガで戻り値はこれを使うべきで、ほかの値を使うことは極めてまれです)。
// TRANSLATION MISSING
| post_action | `none`, `disable`, `delete` |
Action to take on the trigger after execution (default is `none` which should
be used in almost all triggers, the other values are rarely used).
|===
例えば、デフォルトの _beep_ トリガは以下のオプションをとります:
@ -2998,6 +3003,7 @@ trigger.trigger.beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
trigger.trigger.beep.regex = ""
trigger.trigger.beep.command = "/print -beep"
trigger.trigger.beep.return_code = ok
trigger.trigger.beep.post_action = none
----
[[trigger_execution]]
@ -3008,7 +3014,9 @@ trigger.trigger.beep.return_code = ok
. トリガ条件の確認: 偽の場合、終了
. 正規表現を使ってトリガ内でテキスト置換
. コマンドを実行
. リターンコードを付けて終了 (_modifier_ と _focus_ フックの場合を除く)。
. リターンコードを付けて終了 (_modifier_ と _focus_ フックの場合を除く)
// TRANSLATION MISSING
. perform post action (if different from `none`).
[[trigger_hook_arguments]]
==== フック引数

View File

@ -3018,6 +3018,11 @@ Trigger posiada następujące opcje (nazwy to `trigger.trigger.<nazwa>.<opcja>`)
| return_code | `ok`, `ok_eat`, `error` |
Kod wiadomości zwrotnej (domyślnie jest to `ok`, które powinno być używane dla
większości triggerów, pozostałe wartości są sporadycznie używane).
// TRANSLATION MISSING
| post_action | `none`, `disable`, `delete` |
Action to take on the trigger after execution (default is `none` which should
be used in almost all triggers, the other values are rarely used).
|===
Na przykład, domyślny trigger _beep_ ma następujące opcje:
@ -3030,6 +3035,7 @@ trigger.trigger.beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
trigger.trigger.beep.regex = ""
trigger.trigger.beep.command = "/print -beep"
trigger.trigger.beep.return_code = ok
trigger.trigger.beep.post_action = none
----
[[trigger_execution]]
@ -3041,7 +3047,9 @@ kolejności, jeśli triggery są globalnie włączone i jeśli sam trigger jest
. sprawdzenie warunków triggera: jeśli nie jest spełniony następuje wyjście
. zastępowanie tekstu w triggerze za pomocą wyrażenia
. wykonanie komend(-y)
. wyjście ze zwróceniem kodu (za wyjątkiem uchwytów _modifier_ i _focus_).
. wyjście ze zwróceniem kodu (za wyjątkiem uchwytów _modifier_ i _focus_)
// TRANSLATION MISSING
. perform post action (if different from `none`).
[[trigger_hook_arguments]]
==== Argumenty uchwytów