diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-04-25 21:34:23 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-04-25 21:34:23 +0200 |
commit | bdbe7e0c376ce783250656e4ec1c50f828676726 (patch) | |
tree | 6a6de7c3f3064a1425e61ff9c9b827a07c34e69c /doc | |
parent | 821903986790399f9e5fa98edb4ba684e3ff3b38 (diff) | |
download | weechat-bdbe7e0c376ce783250656e4ec1c50f828676726.zip |
core: fix typo in /help eval
Diffstat (limited to 'doc')
-rw-r--r-- | doc/de/autogen/user/weechat_commands.txt | 62 | ||||
-rw-r--r-- | doc/en/autogen/user/weechat_commands.txt | 2 | ||||
-rw-r--r-- | doc/fr/autogen/user/weechat_commands.txt | 2 | ||||
-rw-r--r-- | doc/it/autogen/user/weechat_commands.txt | 2 | ||||
-rw-r--r-- | doc/ja/autogen/user/weechat_commands.txt | 2 |
5 files changed, 35 insertions, 35 deletions
diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt index 27b54128e..b149b0cbd 100644 --- a/doc/de/autogen/user/weechat_commands.txt +++ b/doc/de/autogen/user/weechat_commands.txt @@ -207,40 +207,40 @@ infolists: zeigt Information über die Infolists an /eval [-n] <expression> [-n] <expression1> <operator> <expression2> - -n: zeigt das Ergebnis an, ohne dieses in den Buffer zu schreiben (debug Modus) -expression: Ausdruck welcher verarbeitet werden soll. Variablen im Format ${variable} werden ersetzt (siehe unten) - operator: ein logischer oder vergleichender Operand: - - logische Operanden: - && boolean "und" - || boolean "oder" - - vergleichende Operanden: - == gleich - != ungleich - <= kleiner oder gleich - < kleiner - >= größer oder gleich - > größer - =~ stimmt mit regulärem Ausdruck überein - !~ stimmt NICHT mit regulärem Ausdruck überein - -Ein Ausdruck gilt als "wahr", sofern das Ergebnis nicht NULL, nicht leer und von "0" abweichend ist. -Der Vergleich findet zwischen zwei Integer statt, sofern die beiden Ausdrücke gültige Integer-Werte sind. -Um einen Vergleich zwischen zwei Zeichenketten zu erzwingen, müssen die Ausdrücke in Anführungszeichen gesetzt werden, zum Beispiel: + -n: display result without sending it to buffer (debug mode) +expression: expression to evaluate, variables with format ${variable} are replaced (see below) + operator: a logical or comparison operator: + - logical operators: + && boolean "and" + || boolean "or" + - comparison operators: + == equal + != not equal + <= less or equal + < less + >= greater or equal + > greater + =~ is matching regex + !~ is NOT matching regex + +An expression is considered as "true" if it is not NULL, not empty, and different from "0". +The comparison is made using integers if the two expressions are valid integers. +To force a string comparison, add double quotes around each expression, for example: 50 > 100 ==> 0 "50" > "100" ==> 1 -Einige Variablen werden im Ausdruck, mittels der Formatierung ${Variable}, ersetzt. Mögliche Variablen sind, nach Reihenfolge ihrer Priorität: - 1. der Name einer Option (file.section.option) - 2. der Name der lokalen Variablen für Buffer - 3. ein hdata Name/Variable (der Wert wird automatisch als Zeichenkette konvertiert), Standardmäßig wird für "window" und "buffer" das aktuelle Fenster/Buffer verwendet. -Das Format für hdata: - hdata.var1.var2...: startet mit hdata (der Pointer muss bekannt sein) und fragt eine Variable nach der anderen ab (weitere hdata können folgen) - hdata(list).var1.var2...: startet hdata mittels einer Liste, zum Beispiel: - ${buffer[gui_buffers].full_name}: der vollständige Name des ersten Buffers, in der verknüpften Liste aller Buffer - ${plugin[weechat_plugins].name}: Name der ersten Erweiterung, in der verknüpften Liste aller Erweiterungen -Die vorhandenen Namen für hdata und Variablen sind in der "Anleitung für API Erweiterung", Bereich "weechat_hdata_get". beschrieben - -Beispiele: +Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority : + 1. the name of an option (file.section.option) + 2. the name of a local variable in buffer + 3. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. +Format for hdata can be one of following: + hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed) + hdata[list].var1.var2...: start with a hdata using a list, for example: + ${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers + ${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins +For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". + +Examples: /eval -n ${weechat.look.scroll_amount} ==> 3 /eval -n ${window} ==> 0x2549aa0 /eval -n ${window.buffer} ==> 0x2549320 diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt index e2df26c2d..5d236f087 100644 --- a/doc/en/autogen/user/weechat_commands.txt +++ b/doc/en/autogen/user/weechat_commands.txt @@ -235,7 +235,7 @@ Some variables are replaced in expression, using the format ${variable}, variabl 3. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. Format for hdata can be one of following: hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed) - hdata(list).var1.var2...: start with a hdata using a list, for example: + hdata[list].var1.var2...: start with a hdata using a list, for example: ${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers ${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt index 43b56a7cf..cb7906f49 100644 --- a/doc/fr/autogen/user/weechat_commands.txt +++ b/doc/fr/autogen/user/weechat_commands.txt @@ -235,7 +235,7 @@ Des variables sont remplacées dans l'expression, en utilisant le format ${varia 3. le nom d'un hdata/variable (la valeur est automatiquement convertie en chaîne), par défaut "window" et "buffer" pointent vers la fenêtre et le tampon courants. Le format du hdata peut être le suivant : hdata.var1.var2...: démarrer avec un hdata (le pointeur doit être connu), et demander les variables l'une après l'autre (d'autres hdata peuvent être suivis) - hdata(list).var1.var2...: démarrer avec un hdata en utilisant une liste, par exemple : + hdata[list].var1.var2...: démarrer avec un hdata en utilisant une liste, par exemple : ${buffer[gui_buffers].full_name}: nom complet du premier tampon dans la liste chaînée des tampons ${plugin[weechat_plugins].name}: nom de la première extension dans la liste chaînée des extensions Pour le nom du hdata et des variables, voir la "Référence API extension", fonction "weechat_hdata_get". diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt index f34198087..bc1e3ff61 100644 --- a/doc/it/autogen/user/weechat_commands.txt +++ b/doc/it/autogen/user/weechat_commands.txt @@ -235,7 +235,7 @@ Some variables are replaced in expression, using the format ${variable}, variabl 3. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. Format for hdata can be one of following: hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed) - hdata(list).var1.var2...: start with a hdata using a list, for example: + hdata[list].var1.var2...: start with a hdata using a list, for example: ${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers ${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". diff --git a/doc/ja/autogen/user/weechat_commands.txt b/doc/ja/autogen/user/weechat_commands.txt index 1a40713a7..dd3346222 100644 --- a/doc/ja/autogen/user/weechat_commands.txt +++ b/doc/ja/autogen/user/weechat_commands.txt @@ -235,7 +235,7 @@ Some variables are replaced in expression, using the format ${variable}, variabl 3. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. Format for hdata can be one of following: hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed) - hdata(list).var1.var2...: start with a hdata using a list, for example: + hdata[list].var1.var2...: start with a hdata using a list, for example: ${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers ${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". |