1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-13 06:34:47 +02:00

Compare commits

..

22 Commits

Author SHA1 Message Date
Sébastien Helleu 2d387313a0 core: try to mark hyperlinks with OSC8 ANSI codes
Just a POC, this doesn't work at all with ncurses.
2021-10-15 20:07:17 +02:00
Sébastien Helleu 3cd97b5131 tests: add missing include of string.h 2021-10-14 21:08:28 +02:00
Sébastien Helleu d8b8bf5a84 tests: check displayed message/error for all simulated IRC commands received 2021-10-14 21:00:47 +02:00
Sébastien Helleu 238c17bd0e irc: display command in lower case when there is a parsing error 2021-10-14 20:39:23 +02:00
Sébastien Helleu 1206e9e5c3 tests: fix typo in comment 2021-10-14 20:38:16 +02:00
Sébastien Helleu f3b4336bc4 irc: do not display message with "(null)" for 973/974/975 command received if pos_mode is NULL 2021-10-14 20:37:32 +02:00
Sébastien Helleu 55df7805c2 irc: display a single error message when parsing of a command failed 2021-10-13 18:45:36 +02:00
Sébastien Helleu 9102e4f552 irc: display a single error message when a command is not found 2021-10-13 18:45:14 +02:00
Sébastien Helleu 57ad90c3c0 irc: do not display message with "(null)" for numeric command received if pos_args is NULL 2021-10-13 18:42:47 +02:00
Sébastien Helleu ed9104fbea irc: fix parsing of CAP message when there is no prefix (closes #1707) 2021-10-09 11:27:51 +02:00
Sébastien Helleu 68a3aca643 plugins: use a different plugin priority for each scripting language 2021-10-02 20:50:35 +02:00
Sébastien Helleu 6fe354439c doc: update German auto-generated file 2021-10-02 20:41:09 +02:00
Nils Görs 63b93a8147 core: update German translations 2021-10-02 19:49:38 +02:00
Sébastien Helleu ad5fa7c99f core: add command /toggle 2021-10-01 22:55:38 +02:00
Sébastien Helleu 9548a4cf74 core: check that option is not NULL in function config_file_option_value_to_string 2021-09-27 23:23:01 +02:00
Sébastien Helleu 301f0942c6 core: fix search of option when the section is not given 2021-09-27 22:35:14 +02:00
Sébastien Helleu fb57ad147e core: check that option_name is not NULL in config file functions 2021-09-27 22:02:22 +02:00
Nils Görs 3ee2f40fb3 core: update German translations 2021-09-26 20:25:20 +02:00
Sébastien Helleu edd1971ae8 irc: fix parsing of TAGMSG message when there is a colon before the channel
This fixes the display of typing notifications on some IRC servers like
inspircd.
2021-09-21 20:41:18 +02:00
Sébastien Helleu a6826af796 core: add creation of user variables in evaluated expressions with ${define:name,value} 2021-09-20 21:15:28 +02:00
Jan Palus bd21b25bad typing: correct typo in CMake option description 2021-09-19 14:58:07 +02:00
Sébastien Helleu 48a4a043b7 Version 3.4-dev 2021-09-19 12:23:06 +02:00
71 changed files with 6029 additions and 2628 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ option(ENABLE_PHP "Enable PHP scripting language" ON)
option(ENABLE_SPELL "Enable Spell checker plugin" ON)
option(ENABLE_ENCHANT "Enable Enchant lib for Spell checker plugin" OFF)
option(ENABLE_TRIGGER "Enable Trigger plugin" ON)
option(ENABLE_TYPING "Enable Tryping plugin" ON)
option(ENABLE_TYPING "Enable Typing plugin" ON)
option(ENABLE_XFER "Enable Xfer plugin" ON)
option(ENABLE_MAN "Enable build of man page" OFF)
option(ENABLE_DOC "Enable build of documentation" OFF)
+14
View File
@@ -15,6 +15,20 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
(file _ReleaseNotes.adoc_ in sources).
[[v3.4]]
== Version 3.4 (under dev)
New features::
* core: add command /toggle
* api: add user variables in evaluation of expressions with "define:name,value"
Bug fixes::
* api: fix search of option when the section is not given in functions config_search_option and config_search_section_option
* irc: fix parsing of CAP message when there is no prefix (issue #1707)
* irc: fix parsing of TAGMSG message when there is a colon before the channel
[[v3.3]]
== Version 3.3 (2021-09-19)
@@ -16,7 +16,14 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. guile (4007)
. javascript (4006)
. lua (4005)
. perl (4004)
. php (4003)
. python (4002)
. ruby (4001)
. tcl (4000)
. script (3000)
. fset (2000)
// end::plugins_priority[]
+53 -24
View File
@@ -1374,31 +1374,33 @@ Um einen Vergleich zwischen zwei Zeichenketten zu erzwingen, müssen die Ausdrü
"50" > "100" ==> 1
Einige Variablen werden im Ausdruck mittels der Formatierung ${variable} ersetzt. Mögliche Variablen sind, nach Reihenfolge ihrer Priorität:
1. die Zeichenfolge selbst ohne Auswertung (Format: "raw:xxx")\n
2. eine evaluierte Teilzeichenkette (Format: "eval:xxx")
3. eine evaluierte Bedingung (Format: "eval_cond:xxx")
4. eine Zeichenkette mit Escapesequenzen (Format: "esc:xxx" oder "\xxx")
5. Zeichen, die in einer Zeichenkette nicht dargestellt werden sollen (Format: "hide:Zeichen,Zeichenkette")
6. eine Zeichenkette mit einer maximalen Anzahl an Zeichen (Format: "cut:max,suffix,string" oder "cut:+max,suffix,string")
1. die Zeichenfolge selbst ohne Auswertung (Format: "raw:xxx")
2. eine benutzerdefinierte Variable (Format: "name")
3. eine evaluierte Teilzeichenkette (Format: "eval:xxx")
4. eine evaluierte Bedingung (Format: "eval_cond:xxx")
5. eine Zeichenkette mit Escapesequenzen (Format: "esc:xxx" oder "\xxx")
6. Zeichen, die in einer Zeichenkette nicht dargestellt werden sollen (Format: "hide:Zeichen,Zeichenkette")
7. eine Zeichenkette mit einer maximalen Anzahl an Zeichen (Format: "cut:max,suffix,string" oder "cut:+max,suffix,string")
oder maximale Anzahl an Zeichen die auf dem Bildschirm angezeigt werden sollen (Format: "cutscr:Max,Suffix,Zeichenkette oder "cutscr:+Max,Suffix,Zeichenkette")
7. eine Zeichenkette umkehren (Format: "rev:xxx" oder "revscr:xxx")
8. eine Zeichenkette wiederholen (Format: "repeat:Anzahl,Zeichenkette")
9. Länge einer Zeichenkette (Format: "length:xxx" oder "lengthscr:xxx")
10. Aufteilen einer Zeichenkette (Format: "split:Anzahl,Trennzeichen,Flags,xxx")
11. Aufteilen von Shell-Argumenten (Format: "split_shell:Anzahl,xxx")
12. eine Farbe (Format: "color:xxx", siehe "Anleitung für API Erweiterung", Funktion "color")
13. zum modifizieren (Format: "modifier:name,data,string")
14. eine Info (Format: "Info:Name,Argumente", Argumente sind optional)
15. eine Basis 16/32/64 kodierte / dekodierte Zeichenfolge (Format: "base_encode:base,xxx" oder "base_decode:base,xxx")
16. aktuelles Datum/Uhrzeit (Format: "date" oder "date:format")
17. eine Umgebungsvariable (Format: "env:XXX")
18. ein Dreifachoperand (Format: "if:Bedingung?Wert_falls_wahr:Wert_falls_unwahr")
19. Ergebnis eines Ausdrucks mit Klammern und Operatoren + - * / // % ** (Format: "calc:xxx")
20. eine zufällige ganze Zahl (Format: "random:min,max")
21. eine übersetzte Zeichenkette (Format: "translate:xxx")
22. eine Option (Format: "file.section.option")
23. eine lokale Variable eines Buffers
24. ein(e) hdata - Name/Variable (der Wert wird automatisch in eine Zeichenkette konvertiert), standardmäßig wird für "window" und "buffer" das aktuelle Fenster/Buffer verwendet.
8. eine Zeichenkette umkehren (Format: "rev:xxx" oder "revscr:xxx")
9. eine Zeichenkette wiederholen (Format: "repeat:Anzahl,Zeichenkette")
10. Länge einer Zeichenkette (Format: "length:xxx" oder "lengthscr:xxx")
11. Aufteilen einer Zeichenkette (Format: "split:Anzahl,Trennzeichen,Flags,xxx")
12. Aufteilen von Shell-Argumenten (Format: "split_shell:Anzahl,xxx")
13. eine Farbe (Format: "color:xxx", siehe "Anleitung für API Erweiterung", Funktion "color")
14. zum modifizieren (Format: "modifier:name,data,string")
15. eine Info (Format: "Info:Name,Argumente", Argumente sind optional)
16. eine Basis 16/32/64 kodierte / dekodierte Zeichenfolge (Format: "base_encode:base,xxx" oder "base_decode:base,xxx")
17. aktuelles Datum/Uhrzeit (Format: "date" oder "date:format")
18. eine Umgebungsvariable (Format: "env:XXX")
19. ein Dreifachoperand (Format: "if:Bedingung?Wert_falls_wahr:Wert_falls_unwahr")
20. Ergebnis eines Ausdrucks mit Klammern und Operatoren + - * / // % ** (Format: "calc:xxx")
21. eine zufällige ganze Zahl (Format: "random:min,max")
22. eine übersetzte Zeichenkette (Format: "translate:xxx")
23. eine Benutzervariable definieren (Format: "define:Name,Wert")
24. eine Option (Format: "file.section.option")
25. eine lokale Variable eines Buffers
26. ein(e) hdata - Name/Variable (der Wert wird automatisch in eine Zeichenkette konvertiert), standardmäßig wird für "window" und "buffer" das aktuelle Fenster/Buffer verwendet.
Das Format für hdata kann wie folgt aufgebaut sein:
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:
@@ -1442,6 +1444,7 @@ Beispiele (einfache Zeichenketten):
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Erweiterung
/eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8
Beispiele (Bedingungen):
/eval -n -c ${window.buffer.number} > 2 ==> 0
@@ -1990,6 +1993,32 @@ Beispiele:
/set env ABC ""
----
[[command_weechat_toggle]]
* `+toggle+`: den Wert einer Konfigurationsoption umschalten
----
/toggle <option> [<value> [<value>...]]
option: Name einer Option
value: mögliche Werte für die Option (Werte werden wie bei Shell-Befehlsargumente aufgeteilt: Anführungszeichen können verwendet werden, um Leerzeichen am Anfang/Ende von Werten zu nutzen)
Verhalten:
- nur eine Option vom Typ Boolean oder String kann ohne Wert umgeschaltet werden:
- boolean: zwischen Ein/Aus Status umschalten, entsprechend dem aktuellen Wert
- string: Umschalten zwischen leerem String und Standardwert (funktioniert nur, wenn für die Option ein leerer String erlaubt ist)
- mit einem vorgegeben einzelnen Wert, zwischen diesem Wert und dem Standardwert der Option umschalten
- sind mehrere Werte angegeben, schalten Sie zwischen diesen Werten um: Der verwendete Wert ist der, der dem aktuellen Wert der Option folgt; wenn der aktuelle Wert der Option nicht in der Liste enthalten ist, wird der erste Wert aus der Liste verwendet
- der Sonderwert "null" kann genutzt werden, jedoch nur als erster Wert in der Liste und ohne Anführungszeichen.
Beispiele:
die Uhrzeit im Chat-Bereich umschalten (die Ausgabe des neuen Wertes wird unterdrückt):
/mute /toggle weechat.look.buffer_time_format
Zeitformat im Chat-Bereich ändern (mit Sekunden, ohne Sekunden, deaktiviert):
/toggle weechat.look.buffer_time_format "%H:%M:%S" "%H:%M" ""
den automatischen Beitritt des #weechat-Kanals auf dem libera-Server umschalten:
/toggle irc.server.libera.autojoin null #weechat
----
[[command_weechat_unset]]
* `+unset+`: Konfigurationsparameter freigeben/zurücksetzen
+46 -46
View File
@@ -3143,34 +3143,6 @@
** Standardwert: `+""+`
// end::relay_options[]
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** Beschreibung: pass:none[behält den Inhalt zwischen zwei Aufrufen bei Quellcode Evaluierung (Option "eval" des Skript-Befehls oder Info "%s_eval"); ein Hintergrundskript wird für die Evaluierung verwendet; wird diese Option deaktiviert, dann wird das Hintergrundskript nach jeder Evaluierung entfernt: das bedeutet weniger Speicherbedarf, ist aber langsamer]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
// end::javascript_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** Beschreibung: pass:none[behält den Inhalt zwischen zwei Aufrufen bei Quellcode Evaluierung (Option "eval" des Skript-Befehls oder Info "%s_eval"); ein Hintergrundskript wird für die Evaluierung verwendet; wird diese Option deaktiviert, dann wird das Hintergrundskript nach jeder Evaluierung entfernt: das bedeutet weniger Speicherbedarf, ist aber langsamer]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
// end::ruby_options[]
// tag::guile_options[]
* [[option_guile.look.check_license]] *guile.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
@@ -3185,19 +3157,33 @@
** Standardwert: `+on+`
// end::guile_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** Beschreibung: pass:none[behält den Inhalt zwischen zwei Aufrufen bei Quellcode Evaluierung (Option "eval" des Skript-Befehls oder Info "%s_eval"); ein Hintergrundskript wird für die Evaluierung verwendet; wird diese Option deaktiviert, dann wird das Hintergrundskript nach jeder Evaluierung entfernt: das bedeutet weniger Speicherbedarf, ist aber langsamer]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
// end::tcl_options[]
// end::javascript_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** Beschreibung: pass:none[behält den Inhalt zwischen zwei Aufrufen bei Quellcode Evaluierung (Option "eval" des Skript-Befehls oder Info "%s_eval"); ein Hintergrundskript wird für die Evaluierung verwendet; wird diese Option deaktiviert, dann wird das Hintergrundskript nach jeder Evaluierung entfernt: das bedeutet weniger Speicherbedarf, ist aber langsamer]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
// end::lua_options[]
// tag::perl_options[]
* [[option_perl.look.check_license]] *perl.look.check_license*
@@ -3227,20 +3213,6 @@
** Standardwert: `+on+`
// end::php_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** Beschreibung: pass:none[behält den Inhalt zwischen zwei Aufrufen bei Quellcode Evaluierung (Option "eval" des Skript-Befehls oder Info "%s_eval"); ein Hintergrundskript wird für die Evaluierung verwendet; wird diese Option deaktiviert, dann wird das Hintergrundskript nach jeder Evaluierung entfernt: das bedeutet weniger Speicherbedarf, ist aber langsamer]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
// end::lua_options[]
// tag::python_options[]
* [[option_python.look.check_license]] *python.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
@@ -3255,6 +3227,34 @@
** Standardwert: `+on+`
// end::python_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** Beschreibung: pass:none[behält den Inhalt zwischen zwei Aufrufen bei Quellcode Evaluierung (Option "eval" des Skript-Befehls oder Info "%s_eval"); ein Hintergrundskript wird für die Evaluierung verwendet; wird diese Option deaktiviert, dann wird das Hintergrundskript nach jeder Evaluierung entfernt: das bedeutet weniger Speicherbedarf, ist aber langsamer]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
// end::ruby_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
** Beschreibung: pass:none[Überprüft die Lizenz von Skripten, wenn sie geladen werden: Sollte die Lizenz abweichend von der Erweiterungslizenz sein, wird eine Warnung ausgegeben]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
** Beschreibung: pass:none[behält den Inhalt zwischen zwei Aufrufen bei Quellcode Evaluierung (Option "eval" des Skript-Befehls oder Info "%s_eval"); ein Hintergrundskript wird für die Evaluierung verwendet; wird diese Option deaktiviert, dann wird das Hintergrundskript nach jeder Evaluierung entfernt: das bedeutet weniger Speicherbedarf, ist aber langsamer]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
// end::tcl_options[]
// tag::script_options[]
* [[option_script.color.status_autoloaded]] *script.color.status_autoloaded*
** Beschreibung: pass:none[Farbe in der der Status "autoloaded" ("a") dargestellt werden soll]
@@ -16,7 +16,14 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. guile (4007)
. javascript (4006)
. lua (4005)
. perl (4004)
. php (4003)
. python (4002)
. ruby (4001)
. tcl (4000)
. script (3000)
. fset (2000)
// end::plugins_priority[]
+84 -55
View File
@@ -1375,30 +1375,32 @@ To force a string comparison, you can add double quotes around each expression,
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
1. the string itself without evaluation (format: "raw:xxx")
2. an evaluated sub-string (format: "eval:xxx")
3. an evaluated condition (format: "eval_cond:xxx")
4. a string with escaped chars (format: "esc:xxx" or "\xxx")
5. a string with chars to hide (format: "hide:char,string")
6. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
2. a user-defined variable (format: "name")
3. an evaluated sub-string (format: "eval:xxx")
4. an evaluated condition (format: "eval_cond:xxx")
5. a string with escaped chars (format: "esc:xxx" or "\xxx")
6. a string with chars to hide (format: "hide:char,string")
7. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
7. a reversed string (format: "rev:xxx" or "revscr:xxx")
8. a repeated string (format: "repeat:count,string")
9. length of a string (format: "length:xxx" or "lengthscr:xxx")
10. split of a string (format: "split:number,separators,flags,xxx")
11. split of shell argmuents (format: "split_shell:number,xxx")
12. a color (format: "color:xxx", see "Plugin API reference", function "color")
13. a modifier (format: "modifier:name,data,string")
14. an info (format: "info:name,arguments", arguments are optional)
15. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
16. current date/time (format: "date" or "date:format")
17. an environment variable (format: "env:XXX")
18. a ternary operator (format: "if:condition?value_if_true:value_if_false")
19. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
20. a random integer number (format: "random:min,max")
21. a translated string (format: "translate:xxx")
22. an option (format: "file.section.option")
23. a local variable in buffer
24. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
8. a reversed string (format: "rev:xxx" or "revscr:xxx")
9. a repeated string (format: "repeat:count,string")
10. length of a string (format: "length:xxx" or "lengthscr:xxx")
11. split of a string (format: "split:number,separators,flags,xxx")
12. split of shell argmuents (format: "split_shell:number,xxx")
13. a color (format: "color:xxx", see "Plugin API reference", function "color")
14. a modifier (format: "modifier:name,data,string")
15. an info (format: "info:name,arguments", arguments are optional)
16. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
17. current date/time (format: "date" or "date:format")
18. an environment variable (format: "env:XXX")
19. a ternary operator (format: "if:condition?value_if_true:value_if_false")
20. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
21. a random integer number (format: "random:min,max")
22. a translated string (format: "translate:xxx")
23. define a user variable (format: "define:name,value")
24. an option (format: "file.section.option")
25. a local variable in buffer
26. 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/pointer/pointer name, for example:
@@ -1410,38 +1412,39 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings):
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8
Examples (conditions):
/eval -n -c ${window.buffer.number} > 2 ==> 0
@@ -1990,6 +1993,32 @@ Examples:
/set env ABC ""
----
[[command_weechat_toggle]]
* `+toggle+`: toggle value of a config option
----
/toggle <option> [<value> [<value>...]]
option: name of an option
value: possible values for the option (values are split like the shell command arguments: quotes can be used to preserve spaces at the beginning/end of values)
Behavior:
- only an option of type boolean or string can be toggled without a value:
- boolean: toggle between on/off according to current value
- string: toggle between empty string and default value (works only if empty string is allowed for the option)
- with a single value given, toggle between this value and the default value of option
- with multiple values given, toggle between these values: the value used is the one following the current value of option; if the current value of option is not in list, the first value in the list is used
- the special value "null" can be given, but only as first value in the list and without quotes around.
Examples:
toggle display of time in chat area (without displaying the new value used):
/mute /toggle weechat.look.buffer_time_format
switch format of time in chat area (with seconds, without seconds, disabled):
/toggle weechat.look.buffer_time_format "%H:%M:%S" "%H:%M" ""
toggle autojoin of #weechat channel on libera server:
/toggle irc.server.libera.autojoin null #weechat
----
[[command_weechat_unset]]
* `+unset+`: unset/reset config options
+46 -46
View File
@@ -3143,34 +3143,6 @@
** default value: `+""+`
// end::relay_options[]
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** description: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** type: boolean
** values: on, off
** default value: `+on+`
// end::javascript_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** description: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** type: boolean
** values: on, off
** default value: `+on+`
// end::ruby_options[]
// tag::guile_options[]
* [[option_guile.look.check_license]] *guile.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
@@ -3185,19 +3157,33 @@
** default value: `+on+`
// end::guile_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** description: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** type: boolean
** values: on, off
** default value: `+on+`
// end::tcl_options[]
// end::javascript_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** description: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** type: boolean
** values: on, off
** default value: `+on+`
// end::lua_options[]
// tag::perl_options[]
* [[option_perl.look.check_license]] *perl.look.check_license*
@@ -3227,20 +3213,6 @@
** default value: `+on+`
// end::php_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** description: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** type: boolean
** values: on, off
** default value: `+on+`
// end::lua_options[]
// tag::python_options[]
* [[option_python.look.check_license]] *python.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
@@ -3255,6 +3227,34 @@
** default value: `+on+`
// end::python_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** description: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** type: boolean
** values: on, off
** default value: `+on+`
// end::ruby_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
** description: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
** description: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** type: boolean
** values: on, off
** default value: `+on+`
// end::tcl_options[]
// tag::script_options[]
* [[option_script.color.status_autoloaded]] *script.color.status_autoloaded*
** description: pass:none[color for status "autoloaded" ("a")]
+1
View File
@@ -403,6 +403,7 @@ WeeChat "core" is located in following directories:
|       core/ | Root of unit tests for core.
|          test-core-arraylist.cpp | Tests: arraylists.
|          test-core-calc.cpp | Tests: calculation of expressions.
|          test-core-config-file.cpp | Tests: configuration files.
|          test-core-crypto.cpp | Tests: cryptographic functions.
|          test-core-dir.cpp | Tests: directory/file functions.
|          test-core-eval.cpp | Tests: evaluation of expressions.
+15 -2
View File
@@ -2253,7 +2253,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
==== string_eval_expression
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0,
2.2, 2.3, 2.7, 2.9, 3.1, 3.2 and 3.3._
2.2, 2.3, 2.7, 2.9, 3.1, 3.2, 3.3 and 3.4._
Evaluate an expression and return result as a string.
Special variables with format `+${variable}+` are expanded (see table below).
@@ -2574,6 +2574,12 @@ expanded to last):
`+${raw:${info:version}}+` |
`+${info:version}+`
| `+${name}+` +
_(WeeChat ≥ 3.4)_ |
User variable (defined with `+${define:name,value}+`). |
`+${name}+` |
`+value+`
| `+${name}+` |
Variable `name` from hashtable _extra_vars_. |
`+${name}+` |
@@ -2863,6 +2869,13 @@ expanded to last):
`+${translate:Plugin}+` |
`+Extension+` (example in French)
| `+${define:name,value}+` +
_(WeeChat ≥ 3.4)_ |
Define a variable `name` set to `value`, which can then be used in the same
evaluated expression with `+${name}+`. |
`+${define:len,${calc:5+3}}${len}x${len}+` |
`+8x8+`
| `+${sec.data.name}+` |
Value of the secured data `name`. |
`+${sec.data.libera_pass}+` |
@@ -2880,7 +2893,7 @@ expanded to last):
| `+${pointer}+` |
Variable `pointer` from hashtable _pointers_. |
`+${my_pointer}+` |
`+${buffer}+` |
`+0x1234abcd+`
| `+${hdata.var1.var2...}+` +
@@ -16,7 +16,14 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. guile (4007)
. javascript (4006)
. lua (4005)
. perl (4004)
. php (4003)
. python (4002)
. ruby (4001)
. tcl (4000)
. script (3000)
. fset (2000)
// end::plugins_priority[]
+84 -55
View File
@@ -1375,30 +1375,32 @@ Pour forcer une comparaison de chaînes, vous pouvez ajouter des guillemets auto
Des variables sont remplacées dans l'expression, en utilisant le format ${variable}, la variable pouvant être, par ordre de priorité :
1. la chaîne elle-même sans évaluation (format : "raw:xxx")
2. une sous-chaîne évaluée (format : "eval:xxx")
3. une condition évaluée (format : "eval_cond:xxx")
4. une chaîne avec les caractères échappés (format : "esc:xxx" ou "\xxx")
5. une chaîne avec des caractères à cacher (format : "hide:caractère,chaîne")
6. une chaîne avec un maximum de caractères (format : "cut:max,suffixe,chaîne" ou "cut:+max,suffixe,chaîne")
2. une variable définie par l'utilisateur (format : "nom")
3. une sous-chaîne évaluée (format : "eval:xxx")
4. une condition évaluée (format : "eval_cond:xxx")
5. une chaîne avec les caractères échappés (format : "esc:xxx" ou "\xxx")
6. une chaîne avec des caractères à cacher (format : "hide:caractère,chaîne")
7. une chaîne avec un maximum de caractères (format : "cut:max,suffixe,chaîne" ou "cut:+max,suffixe,chaîne")
ou un maximum de caractères affichés à l'écran (format : "cutscr:max,suffixe,chaîne" ou "cutscr:+max,suffixe,chaîne")
7. une chaîne inversée (format : "rev:xxx" ou "revscr:xxx")
8. une chaîne répétée (format : "repeat:nombre,chaîne")
9. longueur d'une chaîne (format : "length:xxx" ou "lengthscr:xxx")
10. découpage d'une chaîne (format : "split:nombre,séparateurs,flags,xxx")
11. découpage de paramètres shell (format : "split_shell:nombre,xxx")
12. une couleur (format : "color:xxx", voir la "Référence API extension", fonction "color")
13. un modificateur (format : "modifier:nom,données,chaîne")
14. une info (format : "info:nom,paramètres", les paramètres sont optionnels)
15. une chaîne encodée/decodée en base 16, 32 ou 64 (format : "base_encode:base,xxx" ou "base_decode:base,xxx")
16. la date/heure courante (format : "date" ou "date:format")
17. une variable d'environnement (format : "env:XXX")
18. un opérateur ternaire (format : "if:condition?valeur_si_vrai:valeur_si_faux")
19. le résultat d'une expression avec parenthèses et les opérateurs + - * / // % ** (format: "calc:xxx")
20. un nombre entier aléatoire (format : "random:min,max")
21. une chaîne traduite (format : "translate:xxx")
22. une option (format : "fichier.section.option")
23. une variable locale du tampon
24. 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.
8. une chaîne inversée (format : "rev:xxx" ou "revscr:xxx")
9. une chaîne répétée (format : "repeat:nombre,chaîne")
10. longueur d'une chaîne (format : "length:xxx" ou "lengthscr:xxx")
11. découpage d'une chaîne (format : "split:nombre,séparateurs,flags,xxx")
12. découpage de paramètres shell (format : "split_shell:nombre,xxx")
13. une couleur (format : "color:xxx", voir la "Référence API extension", fonction "color")
14. un modificateur (format : "modifier:nom,données,chaîne")
15. une info (format : "info:nom,paramètres", les paramètres sont optionnels)
16. une chaîne encodée/decodée en base 16, 32 ou 64 (format : "base_encode:base,xxx" ou "base_decode:base,xxx")
17. la date/heure courante (format : "date" ou "date:format")
18. une variable d'environnement (format : "env:XXX")
19. un opérateur ternaire (format : "if:condition?valeur_si_vrai:valeur_si_faux")
20. le résultat d'une expression avec parenthèses et les opérateurs + - * / // % ** (format : "calc:xxx")
21. un nombre entier aléatoire (format : "random:min,max")
22. une chaîne traduite (format : "translate:xxx")
23. déclaration d'une variable utilisateur (format : "define:nom,valeur")
24. une option (format : "fichier.section.option")
25. une variable locale du tampon
26. 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[liste].var1.var2... : démarrer avec un hdata en utilisant une liste/pointeur/nom de pointeur, par exemple :
@@ -1410,38 +1412,39 @@ Le format du hdata peut être le suivant :
Pour le nom du hdata et des variables, voir la "Référence API extension", fonction "weechat_hdata_get".
Exemples (chaînes simples) :
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8
Exemples (conditions) :
/eval -n -c ${window.buffer.number} > 2 ==> 0
@@ -1990,6 +1993,32 @@ Exemples :
/set env ABC ""
----
[[command_weechat_toggle]]
* `+toggle+`: basculer la valeur d'une option de configuration
----
/toggle <option> [<valeur> [<valeur>...]]
option : nom d'une option
valeur : valeurs possibles pour l'option (les valeurs sont découpées comme le les paramètres d'une commande par le shell : des guillemets peuvent être utilisés pour préserver les espaces au début et à la fin des valeurs)
Comportement :
- seule une option de type booléen ou chaîne peut être basculée sans valeur :
- booléen : basculer on/off selon la valeur courante
- chaîne : basculer entre chaîne vide et la valeur par défaut (fonctionne seulement si une chaîne vide est autorisée pour l'option)
- avec une seule valeur donnée, basculer entre cette valeur et la valeur par défaut de l'option
- avec plusieurs valeurs données, basculer entre les valeurs : la valeur utilisée est celle qui suit la valeur courante de l'option ; si la valeur courante n'est pas dans la liste, la première valeur de la liste est utilisée
- la valeur spéciale "null" peut être donnée, mais seulement comme première valeur dans la liste et sans guillemets autour.
Exemples :
basculer l'affichage de l'heure dans la zone de discussion (sans afficher la nouvelle valeur utilisée) :
/mute /toggle weechat.look.buffer_time_format
basculer le format de l'heure dans la zone de discussion (avec secondes, sans secondes, désactivé) :
/toggle weechat.look.buffer_time_format "%H:%M:%S" "%H:%M" ""
basculer le "join" automatique du canal #weechat sur le serveur libera :
/toggle irc.server.libera.autojoin null #weechat
----
[[command_weechat_unset]]
* `+unset+`: supprimer/réinitialiser des options de configuration
+46 -46
View File
@@ -3143,34 +3143,6 @@
** valeur par défaut: `+""+`
// end::relay_options[]
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** description: pass:none[garder le contexte entre deux appels à l'évaluation de code source (option "eval" de la commande de script ou info "%s_eval") ; un script caché est utilisé pour évaluer le code du script ; si cette option est désactivée, ce script caché est déchargé après chaque eval ; cela utilise moins de mémoire, mais est plus lent]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
// end::javascript_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** description: pass:none[garder le contexte entre deux appels à l'évaluation de code source (option "eval" de la commande de script ou info "%s_eval") ; un script caché est utilisé pour évaluer le code du script ; si cette option est désactivée, ce script caché est déchargé après chaque eval ; cela utilise moins de mémoire, mais est plus lent]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
// end::ruby_options[]
// tag::guile_options[]
* [[option_guile.look.check_license]] *guile.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
@@ -3185,19 +3157,33 @@
** valeur par défaut: `+on+`
// end::guile_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** description: pass:none[garder le contexte entre deux appels à l'évaluation de code source (option "eval" de la commande de script ou info "%s_eval") ; un script caché est utilisé pour évaluer le code du script ; si cette option est désactivée, ce script caché est déchargé après chaque eval ; cela utilise moins de mémoire, mais est plus lent]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
// end::tcl_options[]
// end::javascript_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** description: pass:none[garder le contexte entre deux appels à l'évaluation de code source (option "eval" de la commande de script ou info "%s_eval") ; un script caché est utilisé pour évaluer le code du script ; si cette option est désactivée, ce script caché est déchargé après chaque eval ; cela utilise moins de mémoire, mais est plus lent]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
// end::lua_options[]
// tag::perl_options[]
* [[option_perl.look.check_license]] *perl.look.check_license*
@@ -3227,20 +3213,6 @@
** valeur par défaut: `+on+`
// end::php_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** description: pass:none[garder le contexte entre deux appels à l'évaluation de code source (option "eval" de la commande de script ou info "%s_eval") ; un script caché est utilisé pour évaluer le code du script ; si cette option est désactivée, ce script caché est déchargé après chaque eval ; cela utilise moins de mémoire, mais est plus lent]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
// end::lua_options[]
// tag::python_options[]
* [[option_python.look.check_license]] *python.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
@@ -3255,6 +3227,34 @@
** valeur par défaut: `+on+`
// end::python_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** description: pass:none[garder le contexte entre deux appels à l'évaluation de code source (option "eval" de la commande de script ou info "%s_eval") ; un script caché est utilisé pour évaluer le code du script ; si cette option est désactivée, ce script caché est déchargé après chaque eval ; cela utilise moins de mémoire, mais est plus lent]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
// end::ruby_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
** description: pass:none[vérifier la licence des scripts quand ils sont chargés : si la licence est différente de la licence de l'extension, un avertissement est affiché]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
** description: pass:none[garder le contexte entre deux appels à l'évaluation de code source (option "eval" de la commande de script ou info "%s_eval") ; un script caché est utilisé pour évaluer le code du script ; si cette option est désactivée, ce script caché est déchargé après chaque eval ; cela utilise moins de mémoire, mais est plus lent]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
// end::tcl_options[]
// tag::script_options[]
* [[option_script.color.status_autoloaded]] *script.color.status_autoloaded*
** description: pass:none[couleur du statut "chargé auto" ("a")]
+1
View File
@@ -405,6 +405,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|       core/ | Racine des tests unitaires pour le cœur.
|          test-core-arraylist.cpp | Tests : listes avec tableau (« arraylists »).
|          test-core-calc.cpp | Tests : calcul d'expressions.
|          test-core-config-file.cpp | Tests : fichiers de configuration.
|          test-core-crypto.cpp | Tests : fonctions cryptographiques.
|          test-core-dir.cpp | Tests : répertoires/fichiers.
|          test-core-eval.cpp | Tests : évaluation d'expressions.
+15 -2
View File
@@ -2291,7 +2291,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
==== string_eval_expression
_WeeChat ≥ 0.4.0, mis à jour dans la 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8,
2.0, 2.2, 2.3, 2.7, 2.9, 3.1, 3.2 et 3.3._
2.0, 2.2, 2.3, 2.7, 2.9, 3.1, 3.2, 3.3 et 3.4._
Évaluer l'expression et retourner le résultat sous forme de chaîne.
Les variables spéciales avec le format `+${variable}+` sont étendues (voir le
@@ -2618,6 +2618,12 @@ première étendue à la dernière) :
`+${raw:${info:version}}+` |
`+${info:version}+`
| `+${nom}+` +
_(WeeChat ≥ 3.4)_ |
Variable définie par l'utilisateur (avec `+${define:nom,valeur}+`). |
`+${nom}+` |
`+valeur+`
| `+${nom}+` |
Variable `nom` de la table de hachage _extra_vars_. |
`+${nom}+` |
@@ -2910,6 +2916,13 @@ première étendue à la dernière) :
`+${translate:Plugin}+` |
`+Extension+` (exemple en Français)
| `+${define:nom,valeur}+` +
_(WeeChat ≥ 3.4)_ |
Définir une variable `nom` à `valeur`, qui peut être utilisée dans la même
expression évaluée avec `+${nom}+`. |
`+${define:len,${calc:5+3}}${len}x${len}+` |
`+8x8+`
| `+${sec.data.nom}+` |
Valeur de la donnée sécurisée `nom`. |
`+${sec.data.libera_pass}+` |
@@ -2927,7 +2940,7 @@ première étendue à la dernière) :
| `+${pointeur}+` |
Variable `pointeur` de la table de hachage _pointers_. |
`+${mon_pointeur}+` |
`+${buffer}+` |
`+0x1234abcd+`
| `+${hdata.var1.var2...}+` +
@@ -16,7 +16,14 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. guile (4007)
. javascript (4006)
. lua (4005)
. perl (4004)
. php (4003)
. python (4002)
. ruby (4001)
. tcl (4000)
. script (3000)
. fset (2000)
// end::plugins_priority[]
+84 -55
View File
@@ -1375,30 +1375,32 @@ To force a string comparison, you can add double quotes around each expression,
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
1. the string itself without evaluation (format: "raw:xxx")
2. an evaluated sub-string (format: "eval:xxx")
3. an evaluated condition (format: "eval_cond:xxx")
4. a string with escaped chars (format: "esc:xxx" or "\xxx")
5. a string with chars to hide (format: "hide:char,string")
6. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
2. a user-defined variable (format: "name")
3. an evaluated sub-string (format: "eval:xxx")
4. an evaluated condition (format: "eval_cond:xxx")
5. a string with escaped chars (format: "esc:xxx" or "\xxx")
6. a string with chars to hide (format: "hide:char,string")
7. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
7. a reversed string (format: "rev:xxx" or "revscr:xxx")
8. a repeated string (format: "repeat:count,string")
9. length of a string (format: "length:xxx" or "lengthscr:xxx")
10. split of a string (format: "split:number,separators,flags,xxx")
11. split of shell argmuents (format: "split_shell:number,xxx")
12. a color (format: "color:xxx", see "Plugin API reference", function "color")
13. a modifier (format: "modifier:name,data,string")
14. an info (format: "info:name,arguments", arguments are optional)
15. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
16. current date/time (format: "date" or "date:format")
17. an environment variable (format: "env:XXX")
18. a ternary operator (format: "if:condition?value_if_true:value_if_false")
19. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
20. a random integer number (format: "random:min,max")
21. a translated string (format: "translate:xxx")
22. an option (format: "file.section.option")
23. a local variable in buffer
24. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
8. a reversed string (format: "rev:xxx" or "revscr:xxx")
9. a repeated string (format: "repeat:count,string")
10. length of a string (format: "length:xxx" or "lengthscr:xxx")
11. split of a string (format: "split:number,separators,flags,xxx")
12. split of shell argmuents (format: "split_shell:number,xxx")
13. a color (format: "color:xxx", see "Plugin API reference", function "color")
14. a modifier (format: "modifier:name,data,string")
15. an info (format: "info:name,arguments", arguments are optional)
16. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
17. current date/time (format: "date" or "date:format")
18. an environment variable (format: "env:XXX")
19. a ternary operator (format: "if:condition?value_if_true:value_if_false")
20. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
21. a random integer number (format: "random:min,max")
22. a translated string (format: "translate:xxx")
23. define a user variable (format: "define:name,value")
24. an option (format: "file.section.option")
25. a local variable in buffer
26. 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/pointer/pointer name, for example:
@@ -1410,38 +1412,39 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings):
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8
Examples (conditions):
/eval -n -c ${window.buffer.number} > 2 ==> 0
@@ -1990,6 +1993,32 @@ Examples:
/set env ABC ""
----
[[command_weechat_toggle]]
* `+toggle+`: toggle value of a config option
----
/toggle <option> [<value> [<value>...]]
option: name of an option
value: possible values for the option (values are split like the shell command arguments: quotes can be used to preserve spaces at the beginning/end of values)
Behavior:
- only an option of type boolean or string can be toggled without a value:
- boolean: toggle between on/off according to current value
- string: toggle between empty string and default value (works only if empty string is allowed for the option)
- with a single value given, toggle between this value and the default value of option
- with multiple values given, toggle between these values: the value used is the one following the current value of option; if the current value of option is not in list, the first value in the list is used
- the special value "null" can be given, but only as first value in the list and without quotes around.
Examples:
toggle display of time in chat area (without displaying the new value used):
/mute /toggle weechat.look.buffer_time_format
switch format of time in chat area (with seconds, without seconds, disabled):
/toggle weechat.look.buffer_time_format "%H:%M:%S" "%H:%M" ""
toggle autojoin of #weechat channel on libera server:
/toggle irc.server.libera.autojoin null #weechat
----
[[command_weechat_unset]]
* `+unset+`: annulla/ripristina opzione
+46 -46
View File
@@ -3143,34 +3143,6 @@
** valore predefinito: `+""+`
// end::relay_options[]
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** descrizione: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
// end::javascript_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** descrizione: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
// end::ruby_options[]
// tag::guile_options[]
* [[option_guile.look.check_license]] *guile.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
@@ -3185,19 +3157,33 @@
** valore predefinito: `+on+`
// end::guile_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** descrizione: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
// end::tcl_options[]
// end::javascript_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** descrizione: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
// end::lua_options[]
// tag::perl_options[]
* [[option_perl.look.check_license]] *perl.look.check_license*
@@ -3227,20 +3213,6 @@
** valore predefinito: `+on+`
// end::php_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** descrizione: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
// end::lua_options[]
// tag::python_options[]
* [[option_python.look.check_license]] *python.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
@@ -3255,6 +3227,34 @@
** valore predefinito: `+on+`
// end::python_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** descrizione: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
// end::ruby_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
** descrizione: pass:none[check the license of scripts when they are loaded: if the license is different from the plugin license, a warning is displayed]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
** descrizione: pass:none[keep context between two calls to the source code evaluation (option "eval" of script command or info "%s_eval"); a hidden script is used to eval script code; if this option is disabled, this hidden script is unloaded after each eval: this uses less memory, but is slower]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
// end::tcl_options[]
// tag::script_options[]
* [[option_script.color.status_autoloaded]] *script.color.status_autoloaded*
** descrizione: pass:none[colore per lo status "caricato automaticamente" ("a")]
+15 -2
View File
@@ -2351,7 +2351,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
==== string_eval_expression
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0,
2.2, 2.3, 2.7, 2.9, 3.1, 3.2 and 3.3._
2.2, 2.3, 2.7, 2.9, 3.1, 3.2, 3.3 and 3.4._
Evaluate an expression and return result as a string.
Special variables with format `+${variable}+` are expanded (see table below).
@@ -2672,6 +2672,12 @@ expanded to last):
`+${raw:${info:version}}+` |
`+${info:version}+`
| `+${name}+` +
_(WeeChat ≥ 3.4)_ |
User variable (defined with `+${define:name,value}+`). |
`+${name}+` |
`+value+`
| `+${name}+` |
Variable `name` from hashtable _extra_vars_. |
`+${name}+` |
@@ -2960,6 +2966,13 @@ expanded to last):
`+${translate:Plugin}+` |
`+Extension+` (example in French)
| `+${define:name,value}+` +
_(WeeChat ≥ 3.4)_ |
Define a variable `name` set to `value`, which can then be used in the same
evaluated expression with `+${name}+`. |
`+${define:len,${calc:5+3}}${len}x${len}+` |
`+8x8+`
| `+${sec.data.name}+` |
Value of the secured data `name`. |
`+${sec.data.libera_pass}+` |
@@ -2977,7 +2990,7 @@ expanded to last):
| `+${pointer}+` |
Variable `pointer` from hashtable _pointers_. |
`+${my_pointer}+` |
`+${buffer}+` |
`+0x1234abcd+`
| `+${hdata.var1.var2...}+` +
@@ -16,7 +16,14 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. guile (4007)
. javascript (4006)
. lua (4005)
. perl (4004)
. php (4003)
. python (4002)
. ruby (4001)
. tcl (4000)
. script (3000)
. fset (2000)
// end::plugins_priority[]
+84 -55
View File
@@ -1375,30 +1375,32 @@ To force a string comparison, you can add double quotes around each expression,
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
1. the string itself without evaluation (format: "raw:xxx")
2. an evaluated sub-string (format: "eval:xxx")
3. an evaluated condition (format: "eval_cond:xxx")
4. a string with escaped chars (format: "esc:xxx" or "\xxx")
5. a string with chars to hide (format: "hide:char,string")
6. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
2. a user-defined variable (format: "name")
3. an evaluated sub-string (format: "eval:xxx")
4. an evaluated condition (format: "eval_cond:xxx")
5. a string with escaped chars (format: "esc:xxx" or "\xxx")
6. a string with chars to hide (format: "hide:char,string")
7. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
7. a reversed string (format: "rev:xxx" or "revscr:xxx")
8. a repeated string (format: "repeat:count,string")
9. length of a string (format: "length:xxx" or "lengthscr:xxx")
10. split of a string (format: "split:number,separators,flags,xxx")
11. split of shell argmuents (format: "split_shell:number,xxx")
12. a color (format: "color:xxx", see "Plugin API reference", function "color")
13. a modifier (format: "modifier:name,data,string")
14. an info (format: "info:name,arguments", arguments are optional)
15. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
16. current date/time (format: "date" or "date:format")
17. an environment variable (format: "env:XXX")
18. a ternary operator (format: "if:condition?value_if_true:value_if_false")
19. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
20. a random integer number (format: "random:min,max")
21. a translated string (format: "translate:xxx")
22. an option (format: "file.section.option")
23. a local variable in buffer
24. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
8. a reversed string (format: "rev:xxx" or "revscr:xxx")
9. a repeated string (format: "repeat:count,string")
10. length of a string (format: "length:xxx" or "lengthscr:xxx")
11. split of a string (format: "split:number,separators,flags,xxx")
12. split of shell argmuents (format: "split_shell:number,xxx")
13. a color (format: "color:xxx", see "Plugin API reference", function "color")
14. a modifier (format: "modifier:name,data,string")
15. an info (format: "info:name,arguments", arguments are optional)
16. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
17. current date/time (format: "date" or "date:format")
18. an environment variable (format: "env:XXX")
19. a ternary operator (format: "if:condition?value_if_true:value_if_false")
20. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
21. a random integer number (format: "random:min,max")
22. a translated string (format: "translate:xxx")
23. define a user variable (format: "define:name,value")
24. an option (format: "file.section.option")
25. a local variable in buffer
26. 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/pointer/pointer name, for example:
@@ -1410,38 +1412,39 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings):
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8
Examples (conditions):
/eval -n -c ${window.buffer.number} > 2 ==> 0
@@ -1990,6 +1993,32 @@ option: オプションの名前 (value を指定せずにワイルドカード
/set env ABC ""
----
[[command_weechat_toggle]]
* `+toggle+`: toggle value of a config option
----
/toggle <option> [<value> [<value>...]]
option: name of an option
value: possible values for the option (values are split like the shell command arguments: quotes can be used to preserve spaces at the beginning/end of values)
Behavior:
- only an option of type boolean or string can be toggled without a value:
- boolean: toggle between on/off according to current value
- string: toggle between empty string and default value (works only if empty string is allowed for the option)
- with a single value given, toggle between this value and the default value of option
- with multiple values given, toggle between these values: the value used is the one following the current value of option; if the current value of option is not in list, the first value in the list is used
- the special value "null" can be given, but only as first value in the list and without quotes around.
Examples:
toggle display of time in chat area (without displaying the new value used):
/mute /toggle weechat.look.buffer_time_format
switch format of time in chat area (with seconds, without seconds, disabled):
/toggle weechat.look.buffer_time_format "%H:%M:%S" "%H:%M" ""
toggle autojoin of #weechat channel on libera server:
/toggle irc.server.libera.autojoin null #weechat
----
[[command_weechat_unset]]
* `+unset+`: オプションのアンセット/リセット
+46 -46
View File
@@ -3143,34 +3143,6 @@
** デフォルト値: `+""+`
// end::relay_options[]
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** 説明: pass:none[ソースコード評価 (スクリプトコマンドのオプション "eval" またはインフォ "%s_eval") の呼び出し間にコンテキストを保持します; スクリプトコードを評価する際は隠しスクリプトが使われます; このオプションを無効化した場合、評価毎に隠しスクリプトをアンロードします: メモリ使用量を節約できますが、遅いです]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
// end::javascript_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** 説明: pass:none[ソースコード評価 (スクリプトコマンドのオプション "eval" またはインフォ "%s_eval") の呼び出し間にコンテキストを保持します; スクリプトコードを評価する際は隠しスクリプトが使われます; このオプションを無効化した場合、評価毎に隠しスクリプトをアンロードします: メモリ使用量を節約できますが、遅いです]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
// end::ruby_options[]
// tag::guile_options[]
* [[option_guile.look.check_license]] *guile.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
@@ -3185,19 +3157,33 @@
** デフォルト値: `+on+`
// end::guile_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** 説明: pass:none[ソースコード評価 (スクリプトコマンドのオプション "eval" またはインフォ "%s_eval") の呼び出し間にコンテキストを保持します; スクリプトコードを評価する際は隠しスクリプトが使われます; このオプションを無効化した場合、評価毎に隠しスクリプトをアンロードします: メモリ使用量を節約できますが、遅いです]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
// end::tcl_options[]
// end::javascript_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** 説明: pass:none[ソースコード評価 (スクリプトコマンドのオプション "eval" またはインフォ "%s_eval") の呼び出し間にコンテキストを保持します; スクリプトコードを評価する際は隠しスクリプトが使われます; このオプションを無効化した場合、評価毎に隠しスクリプトをアンロードします: メモリ使用量を節約できますが、遅いです]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
// end::lua_options[]
// tag::perl_options[]
* [[option_perl.look.check_license]] *perl.look.check_license*
@@ -3227,20 +3213,6 @@
** デフォルト値: `+on+`
// end::php_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** 説明: pass:none[ソースコード評価 (スクリプトコマンドのオプション "eval" またはインフォ "%s_eval") の呼び出し間にコンテキストを保持します; スクリプトコードを評価する際は隠しスクリプトが使われます; このオプションを無効化した場合、評価毎に隠しスクリプトをアンロードします: メモリ使用量を節約できますが、遅いです]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
// end::lua_options[]
// tag::python_options[]
* [[option_python.look.check_license]] *python.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
@@ -3255,6 +3227,34 @@
** デフォルト値: `+on+`
// end::python_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** 説明: pass:none[ソースコード評価 (スクリプトコマンドのオプション "eval" またはインフォ "%s_eval") の呼び出し間にコンテキストを保持します; スクリプトコードを評価する際は隠しスクリプトが使われます; このオプションを無効化した場合、評価毎に隠しスクリプトをアンロードします: メモリ使用量を節約できますが、遅いです]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
// end::ruby_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
** 説明: pass:none[スクリプトをロードしたら、ライセンスを確認してください: ライセンスがプラグインのライセンスと異なる場合、警告が表示されます]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
** 説明: pass:none[ソースコード評価 (スクリプトコマンドのオプション "eval" またはインフォ "%s_eval") の呼び出し間にコンテキストを保持します; スクリプトコードを評価する際は隠しスクリプトが使われます; このオプションを無効化した場合、評価毎に隠しスクリプトをアンロードします: メモリ使用量を節約できますが、遅いです]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
// end::tcl_options[]
// tag::script_options[]
* [[option_script.color.status_autoloaded]] *script.color.status_autoloaded*
** 説明: pass:none["自動ロード" 状態 ("a") に対応する色]
+2
View File
@@ -424,6 +424,8 @@ WeeChat "core" は以下のディレクトリに配置されています:
// TRANSLATION MISSING
|          test-core-calc.cpp | Tests: calculation of expressions.
// TRANSLATION MISSING
|          test-core-config-file.cpp | Tests: configuration files.
// TRANSLATION MISSING
|          test-core-crypto.cpp | Tests: cryptographic functions.
// TRANSLATION MISSING
|          test-core-dir.cpp | Tests: directory/file functions.
+17 -2
View File
@@ -2274,7 +2274,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
// TRANSLATION MISSING
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0,
2.2, 2.3, 2.7, 2.9, 3.1, 3.2 and 3.3._
2.2, 2.3, 2.7, 2.9, 3.1, 3.2, 3.3 and 3.4._
式を評価して文字列として返す。`+${variable}+`
という書式で書かれた特殊変数は展開されます (以下の表を参照)。
@@ -2603,6 +2603,13 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
`+${raw:${info:version}}+` |
`+${info:version}+`
// TRANSLATION MISSING
| `+${name}+` +
_(WeeChat ≥ 3.4)_ |
User variable (defined with `+${define:name,value}+`). |
`+${name}+` |
`+value+`
| `+${name}+` |
_extra_vars_ の変数 `name` の値に展開 |
`+${name}+` |
@@ -2907,6 +2914,14 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
`+${translate:Plugin}+` |
`+Extension+` (example in French)
// TRANSLATION MISSING
| `+${define:name,value}+` +
_(WeeChat ≥ 3.4)_ |
Define a variable `name` set to `value`, which can then be used in the same
evaluated expression with `+${name}+`. |
`+${define:len,${calc:5+3}}${len}x${len}+` |
`+8x8+`
| `+${sec.data.name}+` |
セキュアデータ `name` の値 |
`+${sec.data.libera_pass}+` |
@@ -2924,7 +2939,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
| `+${pointer}+` |
_pointers_ の変数 `pointer` の値に展開 |
`+${my_pointer}+` |
`+${buffer}+` |
`+0x1234abcd+`
// TRANSLATION MISSING
@@ -16,7 +16,14 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. guile (4007)
. javascript (4006)
. lua (4005)
. perl (4004)
. php (4003)
. python (4002)
. ruby (4001)
. tcl (4000)
. script (3000)
. fset (2000)
// end::plugins_priority[]
+84 -55
View File
@@ -1374,30 +1374,32 @@ To force a string comparison, you can add double quotes around each expression,
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
1. the string itself without evaluation (format: "raw:xxx")
2. an evaluated sub-string (format: "eval:xxx")
3. an evaluated condition (format: "eval_cond:xxx")
4. a string with escaped chars (format: "esc:xxx" or "\xxx")
5. a string with chars to hide (format: "hide:char,string")
6. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
2. a user-defined variable (format: "name")
3. an evaluated sub-string (format: "eval:xxx")
4. an evaluated condition (format: "eval_cond:xxx")
5. a string with escaped chars (format: "esc:xxx" or "\xxx")
6. a string with chars to hide (format: "hide:char,string")
7. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
7. a reversed string (format: "rev:xxx" or "revscr:xxx")
8. a repeated string (format: "repeat:count,string")
9. length of a string (format: "length:xxx" or "lengthscr:xxx")
10. split of a string (format: "split:number,separators,flags,xxx")
11. split of shell argmuents (format: "split_shell:number,xxx")
12. a color (format: "color:xxx", see "Plugin API reference", function "color")
13. a modifier (format: "modifier:name,data,string")
14. an info (format: "info:name,arguments", arguments are optional)
15. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
16. current date/time (format: "date" or "date:format")
17. an environment variable (format: "env:XXX")
18. a ternary operator (format: "if:condition?value_if_true:value_if_false")
19. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
20. a random integer number (format: "random:min,max")
21. a translated string (format: "translate:xxx")
22. an option (format: "file.section.option")
23. a local variable in buffer
24. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
8. a reversed string (format: "rev:xxx" or "revscr:xxx")
9. a repeated string (format: "repeat:count,string")
10. length of a string (format: "length:xxx" or "lengthscr:xxx")
11. split of a string (format: "split:number,separators,flags,xxx")
12. split of shell argmuents (format: "split_shell:number,xxx")
13. a color (format: "color:xxx", see "Plugin API reference", function "color")
14. a modifier (format: "modifier:name,data,string")
15. an info (format: "info:name,arguments", arguments are optional)
16. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
17. current date/time (format: "date" or "date:format")
18. an environment variable (format: "env:XXX")
19. a ternary operator (format: "if:condition?value_if_true:value_if_false")
20. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
21. a random integer number (format: "random:min,max")
22. a translated string (format: "translate:xxx")
23. define a user variable (format: "define:name,value")
24. an option (format: "file.section.option")
25. a local variable in buffer
26. 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/pointer/pointer name, for example:
@@ -1409,38 +1411,39 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings):
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8
Examples (conditions):
/eval -n -c ${window.buffer.number} > 2 ==> 0
@@ -1989,6 +1992,32 @@ Przykłady:
/set env ABC ""
----
[[command_weechat_toggle]]
* `+toggle+`: toggle value of a config option
----
/toggle <option> [<value> [<value>...]]
option: name of an option
value: possible values for the option (values are split like the shell command arguments: quotes can be used to preserve spaces at the beginning/end of values)
Behavior:
- only an option of type boolean or string can be toggled without a value:
- boolean: toggle between on/off according to current value
- string: toggle between empty string and default value (works only if empty string is allowed for the option)
- with a single value given, toggle between this value and the default value of option
- with multiple values given, toggle between these values: the value used is the one following the current value of option; if the current value of option is not in list, the first value in the list is used
- the special value "null" can be given, but only as first value in the list and without quotes around.
Examples:
toggle display of time in chat area (without displaying the new value used):
/mute /toggle weechat.look.buffer_time_format
switch format of time in chat area (with seconds, without seconds, disabled):
/toggle weechat.look.buffer_time_format "%H:%M:%S" "%H:%M" ""
toggle autojoin of #weechat channel on libera server:
/toggle irc.server.libera.autojoin null #weechat
----
[[command_weechat_unset]]
* `+unset+`: skasuj/zresetuj zmienną konfiguracyjną
+46 -46
View File
@@ -3143,34 +3143,6 @@
** domyślna wartość: `+""+`
// end::relay_options[]
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** opis: pass:none[przechowuj kontekst pomiędzy dwoma odwołaniami do wykonania tego samego kodu źródłowego (opcja "eval" komendy script lub info "%s_eval"); ukryty sktypt jest używany do wykonania kodu skryptu; jeśli ta opcja jest wyłączona, ukryty skrypt jest wyładowywany po każdym wykonaniu: zajmuje to mniej pamięci, ale jest wolniejsze]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
// end::javascript_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** opis: pass:none[przechowuj kontekst pomiędzy dwoma odwołaniami do wykonania tego samego kodu źródłowego (opcja "eval" komendy script lub info "%s_eval"); ukryty sktypt jest używany do wykonania kodu skryptu; jeśli ta opcja jest wyłączona, ukryty skrypt jest wyładowywany po każdym wykonaniu: zajmuje to mniej pamięci, ale jest wolniejsze]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
// end::ruby_options[]
// tag::guile_options[]
* [[option_guile.look.check_license]] *guile.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
@@ -3185,19 +3157,33 @@
** domyślna wartość: `+on+`
// end::guile_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** opis: pass:none[przechowuj kontekst pomiędzy dwoma odwołaniami do wykonania tego samego kodu źródłowego (opcja "eval" komendy script lub info "%s_eval"); ukryty sktypt jest używany do wykonania kodu skryptu; jeśli ta opcja jest wyłączona, ukryty skrypt jest wyładowywany po każdym wykonaniu: zajmuje to mniej pamięci, ale jest wolniejsze]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
// end::tcl_options[]
// end::javascript_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** opis: pass:none[przechowuj kontekst pomiędzy dwoma odwołaniami do wykonania tego samego kodu źródłowego (opcja "eval" komendy script lub info "%s_eval"); ukryty sktypt jest używany do wykonania kodu skryptu; jeśli ta opcja jest wyłączona, ukryty skrypt jest wyładowywany po każdym wykonaniu: zajmuje to mniej pamięci, ale jest wolniejsze]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
// end::lua_options[]
// tag::perl_options[]
* [[option_perl.look.check_license]] *perl.look.check_license*
@@ -3227,20 +3213,6 @@
** domyślna wartość: `+on+`
// end::php_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** opis: pass:none[przechowuj kontekst pomiędzy dwoma odwołaniami do wykonania tego samego kodu źródłowego (opcja "eval" komendy script lub info "%s_eval"); ukryty sktypt jest używany do wykonania kodu skryptu; jeśli ta opcja jest wyłączona, ukryty skrypt jest wyładowywany po każdym wykonaniu: zajmuje to mniej pamięci, ale jest wolniejsze]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
// end::lua_options[]
// tag::python_options[]
* [[option_python.look.check_license]] *python.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
@@ -3255,6 +3227,34 @@
** domyślna wartość: `+on+`
// end::python_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** opis: pass:none[przechowuj kontekst pomiędzy dwoma odwołaniami do wykonania tego samego kodu źródłowego (opcja "eval" komendy script lub info "%s_eval"); ukryty sktypt jest używany do wykonania kodu skryptu; jeśli ta opcja jest wyłączona, ukryty skrypt jest wyładowywany po każdym wykonaniu: zajmuje to mniej pamięci, ale jest wolniejsze]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
// end::ruby_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
** opis: pass:none[sprawdza licencję skryptów podczas ich ładowania: jeśli licencja jest inna niż licencja wtyczki wyświetlane jest ostrzeżenie]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
** opis: pass:none[przechowuj kontekst pomiędzy dwoma odwołaniami do wykonania tego samego kodu źródłowego (opcja "eval" komendy script lub info "%s_eval"); ukryty sktypt jest używany do wykonania kodu skryptu; jeśli ta opcja jest wyłączona, ukryty skrypt jest wyładowywany po każdym wykonaniu: zajmuje to mniej pamięci, ale jest wolniejsze]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
// end::tcl_options[]
// tag::script_options[]
* [[option_script.color.status_autoloaded]] *script.color.status_autoloaded*
** opis: pass:none[kolor dla statusu "automatycznie ładowany" ("a")]
@@ -16,7 +16,14 @@
. xfer (7000)
. irc (6000)
. relay (5000)
. guile, javascript, lua, perl, php, python, ruby, tcl (4000)
. guile (4007)
. javascript (4006)
. lua (4005)
. perl (4004)
. php (4003)
. python (4002)
. ruby (4001)
. tcl (4000)
. script (3000)
. fset (2000)
// end::plugins_priority[]
+84 -55
View File
@@ -1375,30 +1375,32 @@ To force a string comparison, you can add double quotes around each expression,
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
1. the string itself without evaluation (format: "raw:xxx")
2. an evaluated sub-string (format: "eval:xxx")
3. an evaluated condition (format: "eval_cond:xxx")
4. a string with escaped chars (format: "esc:xxx" or "\xxx")
5. a string with chars to hide (format: "hide:char,string")
6. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
2. a user-defined variable (format: "name")
3. an evaluated sub-string (format: "eval:xxx")
4. an evaluated condition (format: "eval_cond:xxx")
5. a string with escaped chars (format: "esc:xxx" or "\xxx")
6. a string with chars to hide (format: "hide:char,string")
7. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
7. a reversed string (format: "rev:xxx" or "revscr:xxx")
8. a repeated string (format: "repeat:count,string")
9. length of a string (format: "length:xxx" or "lengthscr:xxx")
10. split of a string (format: "split:number,separators,flags,xxx")
11. split of shell argmuents (format: "split_shell:number,xxx")
12. a color (format: "color:xxx", see "Plugin API reference", function "color")
13. a modifier (format: "modifier:name,data,string")
14. an info (format: "info:name,arguments", arguments are optional)
15. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
16. current date/time (format: "date" or "date:format")
17. an environment variable (format: "env:XXX")
18. a ternary operator (format: "if:condition?value_if_true:value_if_false")
19. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
20. a random integer number (format: "random:min,max")
21. a translated string (format: "translate:xxx")
22. an option (format: "file.section.option")
23. a local variable in buffer
24. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
8. a reversed string (format: "rev:xxx" or "revscr:xxx")
9. a repeated string (format: "repeat:count,string")
10. length of a string (format: "length:xxx" or "lengthscr:xxx")
11. split of a string (format: "split:number,separators,flags,xxx")
12. split of shell argmuents (format: "split_shell:number,xxx")
13. a color (format: "color:xxx", see "Plugin API reference", function "color")
14. a modifier (format: "modifier:name,data,string")
15. an info (format: "info:name,arguments", arguments are optional)
16. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
17. current date/time (format: "date" or "date:format")
18. an environment variable (format: "env:XXX")
19. a ternary operator (format: "if:condition?value_if_true:value_if_false")
20. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
21. a random integer number (format: "random:min,max")
22. a translated string (format: "translate:xxx")
23. define a user variable (format: "define:name,value")
24. an option (format: "file.section.option")
25. a local variable in buffer
26. 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/pointer/pointer name, for example:
@@ -1410,38 +1412,39 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings):
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:3,+,test} ==> tes+
/eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
/eval -n ${rev:Hello} ==> olleH
/eval -n ${repeat:5,-} ==> -----
/eval -n ${length:test} ==> 4
/eval -n ${split:1,,,abc,def,ghi} ==> abc
/eval -n ${split:-1,,,abc,def,ghi} ==> ghi
/eval -n ${split:count,,,abc,def,ghi} ==> 3
/eval -n ${split:random,,,abc,def,ghi} ==> def
/eval -n ${split_shell:1,"arg 1" arg2} ==> arg 1
/eval -n ${split_shell:-1,"arg 1" arg2} ==> arg2
/eval -n ${split_shell:count,"arg 1" arg2} ==> 2
/eval -n ${split_shell:random,"arg 1" arg2} ==> arg2
/eval -n ${calc:(5+2)*3} ==> 21
/eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension
/eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8
Examples (conditions):
/eval -n -c ${window.buffer.number} > 2 ==> 0
@@ -1990,6 +1993,32 @@ passphrase: измена тајне реченице (без passphrase, под
/set env ABC ""
----
[[command_weechat_toggle]]
* `+toggle+`: toggle value of a config option
----
/toggle <option> [<value> [<value>...]]
option: name of an option
value: possible values for the option (values are split like the shell command arguments: quotes can be used to preserve spaces at the beginning/end of values)
Behavior:
- only an option of type boolean or string can be toggled without a value:
- boolean: toggle between on/off according to current value
- string: toggle between empty string and default value (works only if empty string is allowed for the option)
- with a single value given, toggle between this value and the default value of option
- with multiple values given, toggle between these values: the value used is the one following the current value of option; if the current value of option is not in list, the first value in the list is used
- the special value "null" can be given, but only as first value in the list and without quotes around.
Examples:
toggle display of time in chat area (without displaying the new value used):
/mute /toggle weechat.look.buffer_time_format
switch format of time in chat area (with seconds, without seconds, disabled):
/toggle weechat.look.buffer_time_format "%H:%M:%S" "%H:%M" ""
toggle autojoin of #weechat channel on libera server:
/toggle irc.server.libera.autojoin null #weechat
----
[[command_weechat_unset]]
* `+unset+`: уклањање/ресетовање конфиг опција
+46 -46
View File
@@ -3143,34 +3143,6 @@
** подразумевана вредност: `+""+`
// end::relay_options[]
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+off+`
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** опис: pass:none[задржава се контекст између два позива израчунавања изворног кода (опција „eval” команде script или info „%s_eval”); за израчунавање кода скрипте се користи скривена скрипта; ако је ова опција искључена, ова скривена скрипта се уклања из меморије након сваког израчунавања: ово троши мање меморије, али је спорије]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
// end::javascript_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** опис: pass:none[задржава се контекст између два позива израчунавања изворног кода (опција „eval” команде script или info „%s_eval”); за израчунавање кода скрипте се користи скривена скрипта; ако је ова опција искључена, ова скривена скрипта се уклања из меморије након сваког израчунавања: ово троши мање меморије, али је спорије]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
// end::ruby_options[]
// tag::guile_options[]
* [[option_guile.look.check_license]] *guile.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
@@ -3185,19 +3157,33 @@
** подразумевана вредност: `+on+`
// end::guile_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
// tag::javascript_options[]
* [[option_javascript.look.check_license]] *javascript.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
* [[option_javascript.look.eval_keep_context]] *javascript.look.eval_keep_context*
** опис: pass:none[задржава се контекст између два позива израчунавања изворног кода (опција „eval” команде script или info „%s_eval”); за израчунавање кода скрипте се користи скривена скрипта; ако је ова опција искључена, ова скривена скрипта се уклања из меморије након сваког израчунавања: ово троши мање меморије, али је спорије]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
// end::tcl_options[]
// end::javascript_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** опис: pass:none[задржава се контекст између два позива израчунавања изворног кода (опција „eval” команде script или info „%s_eval”); за израчунавање кода скрипте се користи скривена скрипта; ако је ова опција искључена, ова скривена скрипта се уклања из меморије након сваког израчунавања: ово троши мање меморије, али је спорије]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
// end::lua_options[]
// tag::perl_options[]
* [[option_perl.look.check_license]] *perl.look.check_license*
@@ -3227,20 +3213,6 @@
** подразумевана вредност: `+on+`
// end::php_options[]
// tag::lua_options[]
* [[option_lua.look.check_license]] *lua.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+off+`
* [[option_lua.look.eval_keep_context]] *lua.look.eval_keep_context*
** опис: pass:none[задржава се контекст између два позива израчунавања изворног кода (опција „eval” команде script или info „%s_eval”); за израчунавање кода скрипте се користи скривена скрипта; ако је ова опција искључена, ова скривена скрипта се уклања из меморије након сваког израчунавања: ово троши мање меморије, али је спорије]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
// end::lua_options[]
// tag::python_options[]
* [[option_python.look.check_license]] *python.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
@@ -3255,6 +3227,34 @@
** подразумевана вредност: `+on+`
// end::python_options[]
// tag::ruby_options[]
* [[option_ruby.look.check_license]] *ruby.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+off+`
* [[option_ruby.look.eval_keep_context]] *ruby.look.eval_keep_context*
** опис: pass:none[задржава се контекст између два позива израчунавања изворног кода (опција „eval” команде script или info „%s_eval”); за израчунавање кода скрипте се користи скривена скрипта; ако је ова опција искључена, ова скривена скрипта се уклања из меморије након сваког израчунавања: ово троши мање меморије, али је спорије]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
// end::ruby_options[]
// tag::tcl_options[]
* [[option_tcl.look.check_license]] *tcl.look.check_license*
** опис: pass:none[провера лиценце скрипти када се учитавају: ако се лиценца разликује од лиценце додатка, исписује се упозорење]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+off+`
* [[option_tcl.look.eval_keep_context]] *tcl.look.eval_keep_context*
** опис: pass:none[задржава се контекст између два позива израчунавања изворног кода (опција „eval” команде script или info „%s_eval”); за израчунавање кода скрипте се користи скривена скрипта; ако је ова опција искључена, ова скривена скрипта се уклања из меморије након сваког израчунавања: ово троши мање меморије, али је спорије]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
// end::tcl_options[]
// tag::script_options[]
* [[option_script.color.status_autoloaded]] *script.color.status_autoloaded*
** опис: pass:none[боја за статус „аутоучитана” („a”)]
+2
View File
@@ -403,6 +403,8 @@ WeeChat „језгро” се налази у следећим директо
|       core/ | Корен unit тестова језгра.
|          test-core-arraylist.cpp | Тестови: arraylists.
|          test-core-calc.cpp | Тестови: калкулација израза.
// TRANSLATION MISSING
|          test-core-config-file.cpp | Tests: configuration files.
|          test-core-crypto.cpp | Тестови: криптографске функције.
|          test-core-dir.cpp | Тестови: функције директоријума/фајла.
|          test-core-eval.cpp | Тестови: израчунавање израза.
+17 -2
View File
@@ -2159,7 +2159,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
==== string_eval_expression
_WeeChat ≥ 0.4.0, ажурирано у верзијама 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0, 2.2, 2.3, 2.7, 2.9, 3.1, 3.2 и 3.3._
_WeeChat ≥ 0.4.0, ажурирано у верзијама 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0, 2.2, 2.3, 2.7, 2.9, 3.1, 3.2, 3.3 и 3.4._
Израчунава израз и враћа вредност као стринг. Специјалне променљиве у формату `+${променљива}+` се развијају (погледајте табелу испод).
@@ -2457,6 +2457,13 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
`+${raw:${info:version}}+` |
`+${info:version}+`
// TRANSLATION MISSING
| `+${name}+` +
_(WeeChat ≥ 3.4)_ |
User variable (defined with `+${define:name,value}+`). |
`+${name}+` |
`+value+`
| `+${име}+` |
Променљива `name` из хеш табеле _extra_vars_. |
`+${име}+` |
@@ -2748,6 +2755,14 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
`+${translate:Plugin}+` |
`+Extension+` (пример из француског)
// TRANSLATION MISSING
| `+${define:name,value}+` +
_(WeeChat ≥ 3.4)_ |
Define a variable `name` set to `value`, which can then be used in the same
evaluated expression with `+${name}+`. |
`+${define:len,${calc:5+3}}${len}x${len}+` |
`+8x8+`
| `+${sec.data.име}+` |
Вредност обезбеђених података `име`. |
`+${sec.data.libera_pass}+` |
@@ -2765,7 +2780,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
| `+${pointer}+` |
Променљива `pointer` из хеш табеле _pointers_. |
`+${my_pointer}+` |
`+${buffer}+` |
`+0x1234abcd+`
| `+${hdata.пром1.пром2...}+` +
+100 -56
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1599,36 +1599,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1650,38 +1652,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2475,6 +2478,47 @@ msgstr ""
" nastaví slovo pro zvýrazňování:\n"
" /set weechat.look.highlight \"word\""
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "hodnoty pro konfigurační nastavení"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<soubor> [<soubor>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "odnastavit/resetovat konfigurační možnosti"
+156 -84
View File
@@ -24,8 +24,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"PO-Revision-Date: 2021-09-10 09:56+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-10-02 19:48+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
"Language: de\n"
@@ -1740,36 +1740,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1791,38 +1793,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -1891,42 +1894,44 @@ msgstr ""
"\n"
"Einige Variablen werden im Ausdruck mittels der Formatierung ${variable} "
"ersetzt. Mögliche Variablen sind, nach Reihenfolge ihrer Priorität:\n"
" 1. die Zeichenfolge selbst ohne Auswertung (Format: \"raw:xxx\")\\n\n"
" 2. eine evaluierte Teilzeichenkette (Format: \"eval:xxx\")\n"
" 3. eine evaluierte Bedingung (Format: \"eval_cond:xxx\")\n"
" 4. eine Zeichenkette mit Escapesequenzen (Format: \"esc:xxx\" oder \"\\xxx"
" 1. die Zeichenfolge selbst ohne Auswertung (Format: \"raw:xxx\")\n"
" 2. eine benutzerdefinierte Variable (Format: \"name\")\n"
" 3. eine evaluierte Teilzeichenkette (Format: \"eval:xxx\")\n"
" 4. eine evaluierte Bedingung (Format: \"eval_cond:xxx\")\n"
" 5. eine Zeichenkette mit Escapesequenzen (Format: \"esc:xxx\" oder \"\\xxx"
"\")\n"
" 5. Zeichen, die in einer Zeichenkette nicht dargestellt werden sollen "
" 6. Zeichen, die in einer Zeichenkette nicht dargestellt werden sollen "
"(Format: \"hide:Zeichen,Zeichenkette\")\n"
" 6. eine Zeichenkette mit einer maximalen Anzahl an Zeichen (Format: \"cut:"
" 7. eine Zeichenkette mit einer maximalen Anzahl an Zeichen (Format: \"cut:"
"max,suffix,string\" oder \"cut:+max,suffix,string\")\n"
" oder maximale Anzahl an Zeichen die auf dem Bildschirm angezeigt werden "
"sollen (Format: \"cutscr:Max,Suffix,Zeichenkette oder \"cutscr:+Max,Suffix,"
"Zeichenkette\")\n"
" 7. eine Zeichenkette umkehren (Format: \"rev:xxx\" oder \"revscr:xxx\")\n"
" 8. eine Zeichenkette wiederholen (Format: \"repeat:Anzahl,Zeichenkette\")\n"
" 9. Länge einer Zeichenkette (Format: \"length:xxx\" oder \"lengthscr:xxx"
" 8. eine Zeichenkette umkehren (Format: \"rev:xxx\" oder \"revscr:xxx\")\n"
" 9. eine Zeichenkette wiederholen (Format: \"repeat:Anzahl,Zeichenkette\")\n"
" 10. Länge einer Zeichenkette (Format: \"length:xxx\" oder \"lengthscr:xxx"
"\")\n"
" 10. Aufteilen einer Zeichenkette (Format: \"split:Anzahl,Trennzeichen,"
" 11. Aufteilen einer Zeichenkette (Format: \"split:Anzahl,Trennzeichen,"
"Flags,xxx\")\n"
" 11. Aufteilen von Shell-Argumenten (Format: \"split_shell:Anzahl,xxx\")\n"
" 12. eine Farbe (Format: \"color:xxx\", siehe \"Anleitung für API "
" 12. Aufteilen von Shell-Argumenten (Format: \"split_shell:Anzahl,xxx\")\n"
" 13. eine Farbe (Format: \"color:xxx\", siehe \"Anleitung für API "
"Erweiterung\", Funktion \"color\")\n"
" 13. zum modifizieren (Format: \"modifier:name,data,string\")\n"
" 14. eine Info (Format: \"Info:Name,Argumente\", Argumente sind optional)\n"
" 15. eine Basis 16/32/64 kodierte / dekodierte Zeichenfolge (Format: "
" 14. zum modifizieren (Format: \"modifier:name,data,string\")\n"
" 15. eine Info (Format: \"Info:Name,Argumente\", Argumente sind optional)\n"
" 16. eine Basis 16/32/64 kodierte / dekodierte Zeichenfolge (Format: "
"\"base_encode:base,xxx\" oder \"base_decode:base,xxx\")\n"
" 16. aktuelles Datum/Uhrzeit (Format: \"date\" oder \"date:format\")\n"
" 17. eine Umgebungsvariable (Format: \"env:XXX\")\n"
" 18. ein Dreifachoperand (Format: \"if:Bedingung?Wert_falls_wahr:"
" 17. aktuelles Datum/Uhrzeit (Format: \"date\" oder \"date:format\")\n"
" 18. eine Umgebungsvariable (Format: \"env:XXX\")\n"
" 19. ein Dreifachoperand (Format: \"if:Bedingung?Wert_falls_wahr:"
"Wert_falls_unwahr\")\n"
" 19. Ergebnis eines Ausdrucks mit Klammern und Operatoren + - * / // % ** "
" 20. Ergebnis eines Ausdrucks mit Klammern und Operatoren + - * / // % ** "
"(Format: \"calc:xxx\")\n"
" 20. eine zufällige ganze Zahl (Format: \"random:min,max\")\n"
" 21. eine übersetzte Zeichenkette (Format: \"translate:xxx\")\n"
" 22. eine Option (Format: \"file.section.option\")\n"
" 23. eine lokale Variable eines Buffers\n"
" 24. ein(e) hdata - Name/Variable (der Wert wird automatisch in eine "
" 21. eine zufällige ganze Zahl (Format: \"random:min,max\")\n"
" 22. eine übersetzte Zeichenkette (Format: \"translate:xxx\")\n"
" 23. eine Benutzervariable definieren (Format: \"define:Name,Wert\")\n"
" 24. eine Option (Format: \"file.section.option\")\n"
" 25. eine lokale Variable eines Buffers\n"
" 26. ein(e) hdata - Name/Variable (der Wert wird automatisch in eine "
"Zeichenkette konvertiert), standardmäßig wird für \"window\" und \"buffer\" "
"das aktuelle Fenster/Buffer verwendet.\n"
"Das Format für hdata kann wie folgt aufgebaut sein:\n"
@@ -1980,6 +1985,7 @@ msgstr ""
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Erweiterung\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Beispiele (Bedingungen):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2629,9 +2635,6 @@ msgstr ""
msgid "list/load/unload plugins"
msgstr "Erweiterungen verwalten (auflisten/installieren/beenden)"
#| msgid ""
#| "list|listfull [<name>] || load <filename> [<arguments>] || autoload "
#| "[<arguments>] || reload [<name>|* [<arguments>]] || unload [<name>]"
msgid ""
"list [-o|-ol|-i|-il|<name>] || listfull [<name>] || load <filename> "
"[<arguments>] || autoload [<arguments>] || reload [<name>|* [<arguments>]] "
@@ -3157,6 +3160,75 @@ msgstr ""
" entfernt die Umgebungsvariable ABC:\n"
" /set env ABC \"\""
msgid "toggle value of a config option"
msgstr "den Wert einer Konfigurationsoption umschalten"
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "<option> [<value> [<value>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
"option: Name einer Option\n"
" value: mögliche Werte für die Option (Werte werden wie bei Shell-"
"Befehlsargumente aufgeteilt: Anführungszeichen können verwendet werden, um "
"Leerzeichen am Anfang/Ende von Werten zu nutzen)\n"
"\n"
"Verhalten:\n"
" - nur eine Option vom Typ Boolean oder String kann ohne Wert umgeschaltet "
"werden:\n"
" - boolean: zwischen Ein/Aus Status umschalten, entsprechend dem "
"aktuellen Wert\n"
" - string: Umschalten zwischen leerem String und Standardwert "
"(funktioniert nur, wenn für die Option ein leerer String erlaubt ist)\n"
" - mit einem vorgegeben einzelnen Wert, zwischen diesem Wert und dem "
"Standardwert der Option umschalten\n"
" - sind mehrere Werte angegeben, schalten Sie zwischen diesen Werten um: "
"Der verwendete Wert ist der, der dem aktuellen Wert der Option folgt; wenn "
"der aktuelle Wert der Option nicht in der Liste enthalten ist, wird der "
"erste Wert aus der Liste verwendet\n"
" - der Sonderwert \"null\" kann genutzt werden, jedoch nur als erster Wert "
"in der Liste und ohne Anführungszeichen.\n"
"\n"
"Beispiele:\n"
" die Uhrzeit im Chat-Bereich umschalten (die Ausgabe des neuen Wertes wird "
"unterdrückt):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" Zeitformat im Chat-Bereich ändern (mit Sekunden, ohne Sekunden, "
"deaktiviert):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" den automatischen Beitritt des #weechat-Kanals auf dem libera-Server "
"umschalten:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgid "unset/reset config options"
msgstr "Konfigurationsparameter freigeben/zurücksetzen"
+100 -56
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1627,36 +1627,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1678,38 +1680,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2581,6 +2584,47 @@ msgstr ""
" mostrar opciones cambiadas en el plugin irc:\n"
" /set diff irc.*"
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "valores de una opción de configuración"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<archivo> [<archivo>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "deshacer/reiniciar opciones de configuración"
+187 -113
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"PO-Revision-Date: 2021-09-09 21:13+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-10-01 22:53+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -1713,36 +1713,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1764,38 +1766,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -1861,40 +1864,43 @@ msgstr ""
"Des variables sont remplacées dans l'expression, en utilisant le format "
"${variable}, la variable pouvant être, par ordre de priorité :\n"
" 1. la chaîne elle-même sans évaluation (format : \"raw:xxx\")\n"
" 2. une sous-chaîne évaluée (format : \"eval:xxx\")\n"
" 3. une condition évaluée (format : \"eval_cond:xxx\")\n"
" 4. une chaîne avec les caractères échappés (format : \"esc:xxx\" ou \"\\xxx"
" 2. une variable définie par l'utilisateur (format : \"nom\")\n"
" 3. une sous-chaîne évaluée (format : \"eval:xxx\")\n"
" 4. une condition évaluée (format : \"eval_cond:xxx\")\n"
" 5. une chaîne avec les caractères échappés (format : \"esc:xxx\" ou \"\\xxx"
"\")\n"
" 5. une chaîne avec des caractères à cacher (format : \"hide:caractère,"
" 6. une chaîne avec des caractères à cacher (format : \"hide:caractère,"
"chaîne\")\n"
" 6. une chaîne avec un maximum de caractères (format : \"cut:max,suffixe,"
" 7. une chaîne avec un maximum de caractères (format : \"cut:max,suffixe,"
"chaîne\" ou \"cut:+max,suffixe,chaîne\")\n"
" ou un maximum de caractères affichés à l'écran (format : \"cutscr:max,"
"suffixe,chaîne\" ou \"cutscr:+max,suffixe,chaîne\")\n"
" 7. une chaîne inversée (format : \"rev:xxx\" ou \"revscr:xxx\")\n"
" 8. une chaîne répétée (format : \"repeat:nombre,chaîne\")\n"
" 9. longueur d'une chaîne (format : \"length:xxx\" ou \"lengthscr:xxx\")\n"
" 10. découpage d'une chaîne (format : \"split:nombre,séparateurs,flags,xxx"
" 8. une chaîne inversée (format : \"rev:xxx\" ou \"revscr:xxx\")\n"
" 9. une chaîne répétée (format : \"repeat:nombre,chaîne\")\n"
" 10. longueur d'une chaîne (format : \"length:xxx\" ou \"lengthscr:xxx\")\n"
" 11. découpage d'une chaîne (format : \"split:nombre,séparateurs,flags,xxx"
"\")\n"
" 11. découpage de paramètres shell (format : \"split_shell:nombre,xxx\")\n"
" 12. une couleur (format : \"color:xxx\", voir la \"Référence API extension"
" 12. découpage de paramètres shell (format : \"split_shell:nombre,xxx\")\n"
" 13. une couleur (format : \"color:xxx\", voir la \"Référence API extension"
"\", fonction \"color\")\n"
" 13. un modificateur (format : \"modifier:nom,données,chaîne\")\n"
" 14. une info (format : \"info:nom,paramètres\", les paramètres sont "
" 14. un modificateur (format : \"modifier:nom,données,chaîne\")\n"
" 15. une info (format : \"info:nom,paramètres\", les paramètres sont "
"optionnels)\n"
" 15. une chaîne encodée/decodée en base 16, 32 ou 64 (format : "
" 16. une chaîne encodée/decodée en base 16, 32 ou 64 (format : "
"\"base_encode:base,xxx\" ou \"base_decode:base,xxx\")\n"
" 16. la date/heure courante (format : \"date\" ou \"date:format\")\n"
" 17. une variable d'environnement (format : \"env:XXX\")\n"
" 18. un opérateur ternaire (format : \"if:condition?valeur_si_vrai:"
" 17. la date/heure courante (format : \"date\" ou \"date:format\")\n"
" 18. une variable d'environnement (format : \"env:XXX\")\n"
" 19. un opérateur ternaire (format : \"if:condition?valeur_si_vrai:"
"valeur_si_faux\")\n"
" 19. le résultat d'une expression avec parenthèses et les opérateurs + - "
"* / // % ** (format: \"calc:xxx\")\n"
" 20. un nombre entier aléatoire (format : \"random:min,max\")\n"
" 21. une chaîne traduite (format : \"translate:xxx\")\n"
" 22. une option (format : \"fichier.section.option\")\n"
" 23. une variable locale du tampon\n"
" 24. un hdata/variable (la valeur est automatiquement convertie en chaîne), "
" 20. le résultat d'une expression avec parenthèses et les opérateurs + - "
"* / // % ** (format : \"calc:xxx\")\n"
" 21. un nombre entier aléatoire (format : \"random:min,max\")\n"
" 22. une chaîne traduite (format : \"translate:xxx\")\n"
" 23. déclaration d'une variable utilisateur (format : \"define:nom,valeur"
"\")\n"
" 24. une option (format : \"fichier.section.option\")\n"
" 25. une variable locale du tampon\n"
" 26. 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.\n"
"Le format du hdata peut être le suivant :\n"
@@ -1917,38 +1923,39 @@ msgstr ""
"fonction \"weechat_hdata_get\".\n"
"\n"
"Exemples (chaînes simples) :\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Exemples (conditions) :\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -3079,6 +3086,73 @@ msgstr ""
" réinitialiser la variable d'environnement ABC :\n"
" /set env ABC \"\""
msgid "toggle value of a config option"
msgstr "basculer la valeur d'une option de configuration"
msgid "<option> [<value> [<value>...]]"
msgstr "<option> [<valeur> [<valeur>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
"option : nom d'une option\n"
"valeur : valeurs possibles pour l'option (les valeurs sont découpées comme "
"le les paramètres d'une commande par le shell : des guillemets peuvent être "
"utilisés pour préserver les espaces au début et à la fin des valeurs)\n"
"\n"
"Comportement :\n"
" - seule une option de type booléen ou chaîne peut être basculée sans "
"valeur :\n"
" - booléen : basculer on/off selon la valeur courante\n"
" - chaîne : basculer entre chaîne vide et la valeur par défaut "
"(fonctionne seulement si une chaîne vide est autorisée pour l'option)\n"
" - avec une seule valeur donnée, basculer entre cette valeur et la valeur "
"par défaut de l'option\n"
" - avec plusieurs valeurs données, basculer entre les valeurs : la valeur "
"utilisée est celle qui suit la valeur courante de l'option ; si la valeur "
"courante n'est pas dans la liste, la première valeur de la liste est "
"utilisée\n"
" - la valeur spéciale \"null\" peut être donnée, mais seulement comme "
"première valeur dans la liste et sans guillemets autour.\n"
"\n"
"Exemples :\n"
" basculer l'affichage de l'heure dans la zone de discussion (sans afficher "
"la nouvelle valeur utilisée) :\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" basculer le format de l'heure dans la zone de discussion (avec secondes, "
"sans secondes, désactivé) :\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" basculer le \"join\" automatique du canal #weechat sur le serveur "
"libera :\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgid "unset/reset config options"
msgstr "supprimer/réinitialiser des options de configuration"
+97 -56
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1513,36 +1513,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1564,38 +1566,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2256,6 +2259,44 @@ msgid ""
" /set env ABC \"\""
msgstr ""
#, fuzzy
msgid "toggle value of a config option"
msgstr "Nem található az opció\n"
msgid "<option> [<value> [<value>...]]"
msgstr ""
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
#, fuzzy
msgid "unset/reset config options"
msgstr "konfigurációs paraméterek beállítása"
+100 -56
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1610,36 +1610,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1661,38 +1663,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2631,6 +2634,47 @@ msgstr ""
" mostra le opzioni modificate nel plugin irc:\n"
" /set diff irc.*"
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "valori per una opzione di configurazione"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<file> [<file....>]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "annulla/ripristina opzione"
+100 -56
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -1694,36 +1694,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1745,38 +1747,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -3024,6 +3027,47 @@ msgstr ""
" 環境変数 ABC の値を削除する:\n"
" /set env ABC \"\""
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "設定オプションの値"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<file> [<file>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "オプションのアンセット/リセット"
+100 -56
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -1844,36 +1844,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1895,38 +1897,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -3215,6 +3218,47 @@ msgstr ""
" kasuje zmienną środowiskową ABC:\n"
" /set env ABC \"\""
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "wartości opcji konfiguracyjnych"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<plik> [<plik>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "skasuj/zresetuj zmienną konfiguracyjną"
+100 -56
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -1698,36 +1698,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1749,38 +1751,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -3018,6 +3021,47 @@ msgstr ""
" não definir a variável de ambiente ABC:\n"
" /set env ABC \"\""
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "valores de uma opção de configuração"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<ficheiro> [<ficheiro>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "repor ou não definir opções de configuração"
+100 -56
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1673,36 +1673,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1724,38 +1726,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2691,6 +2694,47 @@ msgstr ""
" indefine a variável de ambiente ABC:\n"
" /set env ABC \"\""
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "valores para uma opção de configuração"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<arquivo> [<arquivo>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "indefine/restaura opções de configuração"
+97 -56
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1536,36 +1536,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1587,38 +1589,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2280,6 +2283,44 @@ msgid ""
" /set env ABC \"\""
msgstr ""
#, fuzzy
msgid "toggle value of a config option"
msgstr "Не найден параметр\n"
msgid "<option> [<value> [<value>...]]"
msgstr ""
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
#, fuzzy
msgid "unset/reset config options"
msgstr "настроить параметры конфигурации"
+100 -56
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-09-01 02:38+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1831,36 +1831,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1882,38 +1884,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -3143,6 +3146,47 @@ msgstr ""
" уклања променљиву окружења ABC:\n"
" /set env ABC \"\""
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "вредности за опцију конфигурације"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<фајл> [<фајл>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "уклањање/ресетовање конфиг опција"
+100 -56
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2021-07-10 16:01+0200\n"
"Last-Translator: Emir SARI <bitigchi@me.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1683,36 +1683,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1734,38 +1736,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2554,6 +2557,47 @@ msgid ""
" /set env ABC \"\""
msgstr ""
#, fuzzy
#| msgid "values for a configuration option"
msgid "toggle value of a config option"
msgstr "bir yapılandırma seçeneğinin değerleri"
#, fuzzy
#| msgid "[<file> [<file>...]]"
msgid "<option> [<value> [<value>...]]"
msgstr "[<dosya> [<dosya>...]]"
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr "yapılandırma seçeneklerini geri al/sıfırla"
+96 -56
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-09-09 21:07+0200\n"
"POT-Creation-Date: 2021-10-01 22:52+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1369,36 +1369,38 @@ msgid ""
"Some variables are replaced in expression, using the format ${variable}, "
"variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:"
"+max,suffix,string\")\n"
" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" "
"or \"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 10. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or \"lengthscr:xxx\")\n"
" 11. split of a string (format: \"split:number,separators,flags,xxx\")\n"
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API reference\", function "
"\"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are optional)\n"
" 16. a base 16/32/64 encoded/decoded string (format: \"base_encode:base,xxx"
"\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: \"if:condition?value_if_true:value_if_false"
"\")\n"
" 19. result of an expression with parentheses and operators + - * / // % ** "
" 20. result of an expression with parentheses and operators + - * / // % ** "
"(format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted to "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted to "
"string), by default \"window\" and \"buffer\" point to current window/"
"buffer.\n"
"Format for hdata can be one of following:\n"
@@ -1420,38 +1422,39 @@ msgid ""
"function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -2080,6 +2083,43 @@ msgid ""
" /set env ABC \"\""
msgstr ""
msgid "toggle value of a config option"
msgstr ""
msgid "<option> [<value> [<value>...]]"
msgstr ""
msgid ""
"option: name of an option\n"
" value: possible values for the option (values are split like the shell "
"command arguments: quotes can be used to preserve spaces at the beginning/"
"end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled without a "
"value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value (works only if "
"empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and the default "
"value of option\n"
" - with multiple values given, toggle between these values: the value used "
"is the one following the current value of option; if the current value of "
"option is not in list, the first value in the list is used\n"
" - the special value \"null\" can be given, but only as first value in the "
"list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the new value "
"used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without seconds, "
"disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" \"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"
msgstr ""
msgid "unset/reset config options"
msgstr ""
+166 -55
View File
@@ -6302,6 +6302,78 @@ COMMAND_CALLBACK(set)
return WEECHAT_RC_OK;
}
/*
* Callback for command "/toggle": toggles value of configuration option.
*/
COMMAND_CALLBACK(toggle)
{
char **sargv;
int sargc, rc;
struct t_config_option *ptr_option;
/* make C compiler happy */
(void) pointer;
(void) data;
(void) buffer;
COMMAND_MIN_ARGS(2, "");
config_file_search_with_string (argv[1], NULL, NULL, &ptr_option, NULL);
if (!ptr_option)
{
gui_chat_printf (NULL,
_("%sOption \"%s\" not found"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
argv[1]);
return WEECHAT_RC_OK;
}
if ((ptr_option->type != CONFIG_OPTION_TYPE_BOOLEAN)
&& (ptr_option->type != CONFIG_OPTION_TYPE_STRING))
{
/* only boolean options can be toggled without a value */
COMMAND_MIN_ARGS(3, "");
}
if (argc > 2)
{
sargv = string_split_shell (argv_eol[2], &sargc);
if (!sargv)
COMMAND_ERROR;
if (string_strcasecmp (argv[2], WEECHAT_CONFIG_OPTION_NULL) == 0)
{
if (sargv[0])
free (sargv[0]);
sargv[0] = NULL;
}
}
else
{
sargv = NULL;
sargc = 0;
}
rc = config_file_option_toggle (ptr_option, (const char **)sargv, sargc, 1);
string_free_split (sargv);
switch (rc)
{
case WEECHAT_CONFIG_OPTION_SET_ERROR:
gui_chat_printf (NULL,
_("%sFailed to set option \"%s\""),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
argv[1]);
return WEECHAT_RC_OK;
case WEECHAT_CONFIG_OPTION_SET_OK_CHANGED:
command_set_display_option (ptr_option, _("Option changed: "));
break;
default:
break;
}
return WEECHAT_RC_OK;
}
/*
* Unsets/resets one option.
*/
@@ -7658,40 +7730,42 @@ command_init ()
"Some variables are replaced in expression, using the format "
"${variable}, variable can be, by order of priority:\n"
" 1. the string itself without evaluation (format: \"raw:xxx\")\n"
" 2. an evaluated sub-string (format: \"eval:xxx\")\n"
" 3. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 4. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 5. a string with chars to hide (format: \"hide:char,string\")\n"
" 6. a string with max chars (format: \"cut:max,suffix,string\" "
" 2. a user-defined variable (format: \"name\")\n"
" 3. an evaluated sub-string (format: \"eval:xxx\")\n"
" 4. an evaluated condition (format: \"eval_cond:xxx\")\n"
" 5. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 6. a string with chars to hide (format: \"hide:char,string\")\n"
" 7. a string with max chars (format: \"cut:max,suffix,string\" "
"or \"cut:+max,suffix,string\")\n"
" or max chars displayed on screen "
"(format: \"cutscr:max,suffix,string\" or "
"\"cutscr:+max,suffix,string\")\n"
" 7. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 8. a repeated string (format: \"repeat:count,string\")\n"
" 9. length of a string (format: \"length:xxx\" or "
" 8. a reversed string (format: \"rev:xxx\" or \"revscr:xxx\")\n"
" 9. a repeated string (format: \"repeat:count,string\")\n"
" 10. length of a string (format: \"length:xxx\" or "
"\"lengthscr:xxx\")\n"
" 10. split of a string (format: "
" 11. split of a string (format: "
"\"split:number,separators,flags,xxx\")\n"
" 11. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 12. a color (format: \"color:xxx\", see \"Plugin API "
" 12. split of shell argmuents (format: \"split_shell:number,xxx\")\n"
" 13. a color (format: \"color:xxx\", see \"Plugin API "
"reference\", function \"color\")\n"
" 13. a modifier (format: \"modifier:name,data,string\")\n"
" 14. an info (format: \"info:name,arguments\", arguments are "
" 14. a modifier (format: \"modifier:name,data,string\")\n"
" 15. an info (format: \"info:name,arguments\", arguments are "
"optional)\n"
" 15. a base 16/32/64 encoded/decoded string (format: "
" 16. a base 16/32/64 encoded/decoded string (format: "
"\"base_encode:base,xxx\" or \"base_decode:base,xxx\")\n"
" 16. current date/time (format: \"date\" or \"date:format\")\n"
" 17. an environment variable (format: \"env:XXX\")\n"
" 18. a ternary operator (format: "
" 17. current date/time (format: \"date\" or \"date:format\")\n"
" 18. an environment variable (format: \"env:XXX\")\n"
" 19. a ternary operator (format: "
"\"if:condition?value_if_true:value_if_false\")\n"
" 19. result of an expression with parentheses and operators "
" 20. result of an expression with parentheses and operators "
"+ - * / // % ** (format: \"calc:xxx\")\n"
" 20. a random integer number (format: \"random:min,max\")\n"
" 21. a translated string (format: \"translate:xxx\")\n"
" 22. an option (format: \"file.section.option\")\n"
" 23. a local variable in buffer\n"
" 24. a hdata name/variable (the value is automatically converted "
" 21. a random integer number (format: \"random:min,max\")\n"
" 22. a translated string (format: \"translate:xxx\")\n"
" 23. define a user variable (format: \"define:name,value\")\n"
" 24. an option (format: \"file.section.option\")\n"
" 25. a local variable in buffer\n"
" 26. a hdata name/variable (the value is automatically converted "
"to string), by default \"window\" and \"buffer\" point to current "
"window/buffer.\n"
"Format for hdata can be one of following:\n"
@@ -7713,38 +7787,39 @@ command_init ()
"reference\", function \"weechat_hdata_get\".\n"
"\n"
"Examples (simple strings):\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${raw:${info:version}} ==> ${info:version}\n"
" /eval -n ${eval_cond:${window.win_width}>100} ==> 1\n"
" /eval -n ${info:version} ==> 0.4.3\n"
" /eval -n ${env:HOME} ==> /home/user\n"
" /eval -n ${weechat.look.scroll_amount} ==> 3\n"
" /eval -n ${sec.data.password} ==> secret\n"
" /eval -n ${window} ==> 0x2549aa0\n"
" /eval -n ${window.buffer} ==> 0x2549320\n"
" /eval -n ${window.buffer.full_name} ==> core.weechat\n"
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:3,+,test} ==> tes+\n"
" /eval -n ${cut:+3,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
" /eval -n ${rev:Hello} ==> olleH\n"
" /eval -n ${repeat:5,-} ==> -----\n"
" /eval -n ${length:test} ==> 4\n"
" /eval -n ${split:1,,,abc,def,ghi} ==> abc\n"
" /eval -n ${split:-1,,,abc,def,ghi} ==> ghi\n"
" /eval -n ${split:count,,,abc,def,ghi} ==> 3\n"
" /eval -n ${split:random,,,abc,def,ghi} ==> def\n"
" /eval -n ${split_shell:1,\"arg 1\" arg2} ==> arg 1\n"
" /eval -n ${split_shell:-1,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${split_shell:count,\"arg 1\" arg2} ==> 2\n"
" /eval -n ${split_shell:random,\"arg 1\" arg2} ==> arg2\n"
" /eval -n ${calc:(5+2)*3} ==> 21\n"
" /eval -n ${random:0,10} ==> 3\n"
" /eval -n ${base_encode:64,test} ==> dGVzdA==\n"
" /eval -n ${base_decode:64,dGVzdA==} ==> test\n"
" /eval -n ${translate:Plugin} ==> Extension\n"
" /eval -n ${define:len,${calc:5+3}}${len}x${len} ==> 8x8\n"
"\n"
"Examples (conditions):\n"
" /eval -n -c ${window.buffer.number} > 2 ==> 0\n"
@@ -8422,6 +8497,42 @@ command_init ()
" || diff %(config_options)|%*"
" || env %(env_vars) %(env_value)",
&command_set, NULL, NULL);
hook_command (
NULL, "toggle",
N_("toggle value of a config option"),
N_("<option> [<value> [<value>...]]"),
N_("option: name of an option\n"
" value: possible values for the option (values are split like the "
"shell command arguments: quotes can be used to preserve spaces at "
"the beginning/end of values)\n"
"\n"
"Behavior:\n"
" - only an option of type boolean or string can be toggled "
"without a value:\n"
" - boolean: toggle between on/off according to current value\n"
" - string: toggle between empty string and default value "
"(works only if empty string is allowed for the option)\n"
" - with a single value given, toggle between this value and "
"the default value of option\n"
" - with multiple values given, toggle between these values: "
"the value used is the one following the current value of option; "
"if the current value of option is not in list, the first value in "
"the list is used\n"
" - the special value \"null\" can be given, but only as first "
"value in the list and without quotes around.\n"
"\n"
"Examples:\n"
" toggle display of time in chat area (without displaying the "
"new value used):\n"
" /mute /toggle weechat.look.buffer_time_format\n"
" switch format of time in chat area (with seconds, without "
"seconds, disabled):\n"
" /toggle weechat.look.buffer_time_format \"%H:%M:%S\" "
"\"%H:%M\" \"\"\n"
" toggle autojoin of #weechat channel on libera server:\n"
" /toggle irc.server.libera.autojoin null #weechat"),
"%(config_options) %(config_option_values)",
&command_toggle, NULL, NULL);
hook_command (
NULL, "unset",
N_("unset/reset config options"),
+120 -4
View File
@@ -835,6 +835,9 @@ config_file_search_option (struct t_config_file *config_file,
struct t_config_option *ptr_option;
int rc;
if (!option_name)
return NULL;
if (section)
{
for (ptr_option = section->last_option; ptr_option;
@@ -844,7 +847,7 @@ config_file_search_option (struct t_config_file *config_file,
if (rc == 0)
return ptr_option;
else if (rc < 0)
return NULL;
break;
}
}
else if (config_file)
@@ -859,7 +862,7 @@ config_file_search_option (struct t_config_file *config_file,
if (rc == 0)
return ptr_option;
else if (rc < 0)
return NULL;
break;
}
}
}
@@ -889,6 +892,9 @@ config_file_search_section_option (struct t_config_file *config_file,
*section_found = NULL;
*option_found = NULL;
if (!option_name)
return;
if (section)
{
for (ptr_option = section->last_option; ptr_option;
@@ -902,7 +908,7 @@ config_file_search_section_option (struct t_config_file *config_file,
return;
}
else if (rc < 0)
return;
break;
}
}
else if (config_file)
@@ -921,7 +927,7 @@ config_file_search_section_option (struct t_config_file *config_file,
return;
}
else if (rc < 0)
return;
break;
}
}
}
@@ -953,6 +959,9 @@ config_file_search_with_string (const char *option_name,
if (pos_option_name)
*pos_option_name = NULL;
if (!option_name)
return;
ptr_config = NULL;
ptr_section = NULL;
ptr_option = NULL;
@@ -1511,6 +1520,110 @@ config_file_option_set (struct t_config_option *option, const char *value,
return rc;
}
/*
* Toggles value of an option.
*
* Returns:
* WEECHAT_CONFIG_OPTION_SET_OK_CHANGED: OK, value has been changed
* WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE: OK, value not changed
* WEECHAT_CONFIG_OPTION_SET_ERROR: error
*/
int
config_file_option_toggle (struct t_config_option *option,
const char **values, int num_values,
int run_callback)
{
char *current_value;
const char *ptr_new_value, *empty_string = "";
int i, rc, index_found, value_is_null, reset_value;
if (!option || (num_values < 0))
return WEECHAT_CONFIG_OPTION_SET_ERROR;
rc = WEECHAT_CONFIG_OPTION_SET_ERROR;
ptr_new_value = NULL;
reset_value = 0;
value_is_null = (option->value == NULL);
current_value = config_file_option_value_to_string (option, 0, 0, 0);
switch (option->type)
{
case CONFIG_OPTION_TYPE_BOOLEAN:
if (!values)
{
ptr_new_value = (option->value && CONFIG_BOOLEAN(option)) ?
config_boolean_false[0] : config_boolean_true[0];
}
break;
case CONFIG_OPTION_TYPE_INTEGER:
if (!values)
goto end;
break;
case CONFIG_OPTION_TYPE_STRING:
if (!values)
{
if (option->value && (strcmp (CONFIG_STRING(option), "") == 0))
ptr_new_value = CONFIG_STRING_DEFAULT(option);
else
ptr_new_value = empty_string;
}
break;
case CONFIG_OPTION_TYPE_COLOR:
if (!values)
goto end;
break;
case CONFIG_NUM_OPTION_TYPES:
/* make C compiler happy */
break;
}
/* search new value to use with the provided list of values */
if (!ptr_new_value && values)
{
index_found = -1;
for (i = 0; i < num_values; i++)
{
if ((value_is_null && !values[i])
|| (!value_is_null && current_value && values[i]
&& strcmp (current_value, values[i]) == 0))
{
index_found = i;
break;
}
}
if (index_found >= 0)
{
if (index_found + 1 < num_values)
{
ptr_new_value = values[index_found + 1];
}
else
{
if (num_values < 2)
reset_value = 1;
else
ptr_new_value = values[0];
}
}
else
{
ptr_new_value = values[0];
}
}
if (reset_value)
rc = config_file_option_reset (option, run_callback);
else
rc = config_file_option_set (option, ptr_new_value, run_callback);
end:
if (current_value)
free (current_value);
return rc;
}
/*
* Sets null (undefined) value for an option.
*
@@ -1739,6 +1852,9 @@ config_file_option_value_to_string (struct t_config_option *option,
const char *ptr_value;
int enabled, length;
if (!option)
return NULL;
if ((default_value && !option->default_value)
|| (!default_value && !option->value))
{
+3
View File
@@ -259,6 +259,9 @@ extern int config_file_option_set (struct t_config_option *option,
const char *value, int run_callback);
extern int config_file_option_set_null (struct t_config_option *option,
int run_callback);
extern int config_file_option_toggle (struct t_config_option *option,
const char **values, int num_values,
int run_callback);
extern int config_file_option_unset (struct t_config_option *option);
extern void config_file_option_rename (struct t_config_option *option,
const char *new_name);
+49 -2
View File
@@ -1068,6 +1068,28 @@ eval_string_translate (const char *text)
return strdup ((ptr_string) ? ptr_string : "");
}
/*
* Defines a variable.
*/
void
eval_string_define (const char *text, struct t_eval_context *eval_context)
{
char *pos, *name;
pos = strchr (text, ',');
if (!pos)
return;
name = strndup (text, pos - text);
if (!name)
return;
hashtable_set (eval_context->user_vars, name, pos + 1);
free (name);
}
/*
* Gets value of hdata using "path" to a variable.
*
@@ -1352,7 +1374,7 @@ end:
/*
* Replaces variables, which can be, by order of priority:
* 1. the string itself without evaluation (format: raw:xxx)
* 2. an extra variable from hashtable "extra_vars"
* 2. a variable from hashtable "user_vars" or "extra_vars"
* 3. a WeeChat home directory, one of: "weechat_config_dir",
* "weechat_data_dir", "weechat_cache_dir", "weechat_runtime_dir"
* 4. a string to evaluate (format: eval:xxx)
@@ -1421,7 +1443,13 @@ eval_replace_vars_cb (void *data, const char *text)
goto end;
}
/* 2. variable in hashtable "extra_vars" */
/* 2. variable in hashtable "user_vars" or "extra_vars" */
ptr_value = hashtable_get (eval_context->user_vars, text);
if (ptr_value)
{
value = strdup (ptr_value);
goto end;
}
if (eval_context->extra_vars)
{
ptr_value = hashtable_get (eval_context->extra_vars, text);
@@ -1668,6 +1696,14 @@ eval_replace_vars_cb (void *data, const char *text)
goto end;
}
/* 25. define a variable */
if (strncmp (text, "define:", 7) == 0)
{
eval_string_define (text + 7, eval_context);
value = strdup ("");
goto end;
}
/* 25. option: if found, return this value */
if (strncmp (text, "sec.data.", 9) == 0)
{
@@ -2333,6 +2369,7 @@ eval_expression (const char *expr, struct t_hashtable *pointers,
struct t_hashtable *extra_vars, struct t_hashtable *options)
{
struct t_eval_context context, *eval_context;
struct t_hashtable *user_vars;
int condition, rc, pointers_allocated, regex_allocated, debug_id;
int ptr_window_added, ptr_buffer_added;
long number;
@@ -2347,6 +2384,7 @@ eval_expression (const char *expr, struct t_hashtable *pointers,
return NULL;
condition = 0;
user_vars = NULL;
pointers_allocated = 0;
regex_allocated = 0;
regex = NULL;
@@ -2371,10 +2409,17 @@ eval_expression (const char *expr, struct t_hashtable *pointers,
pointers_allocated = 1;
}
user_vars = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
NULL);
eval_context = &context;
eval_context->pointers = pointers;
eval_context->extra_vars = extra_vars;
eval_context->user_vars = user_vars;
eval_context->extra_vars_eval = 0;
eval_context->prefix = default_prefix;
eval_context->suffix = default_suffix;
@@ -2506,6 +2551,8 @@ eval_expression (const char *expr, struct t_hashtable *pointers,
if (ptr_buffer_added)
hashtable_remove (pointers, "buffer");
}
if (user_vars)
hashtable_free (user_vars);
if (regex && regex_allocated)
{
regfree (regex);
+1
View File
@@ -73,6 +73,7 @@ struct t_eval_context
{
struct t_hashtable *pointers; /* pointers used in eval */
struct t_hashtable *extra_vars; /* extra variables used in eval */
struct t_hashtable *user_vars; /* user-defined variables */
int extra_vars_eval; /* 1 if extra vars must be evaluated */
const char *prefix; /* prefix (default is "${") */
const char *suffix; /* suffix (default is "}") */
+38 -5
View File
@@ -366,8 +366,10 @@ gui_chat_string_next_char (struct t_gui_window *window, struct t_gui_line *line,
*/
int
gui_chat_display_word_raw (struct t_gui_window *window, struct t_gui_line *line,
gui_chat_display_word_raw (struct t_gui_window *window,
struct t_gui_line *line,
const char *string,
const char *url,
int max_chars_on_screen, int simulate,
int apply_style_inactive,
int nick_offline)
@@ -385,6 +387,17 @@ gui_chat_display_word_raw (struct t_gui_window *window, struct t_gui_line *line,
chars_displayed = 0;
x = window->win_chat_cursor_x;
if (url)
{
/* doesn't work: raw codes are displayed as-is */
waddstr (GUI_WINDOW_OBJECTS(window)->win_chat, "\33]8;;");
waddstr (GUI_WINDOW_OBJECTS(window)->win_chat, url);
waddstr (GUI_WINDOW_OBJECTS(window)->win_chat, "\33\\");
/* doesn't work: no effect */
fprintf (stderr, "\33]8;;%s\33\\", url);
fflush (stderr);
}
while (string && string[0])
{
string = gui_chat_string_next_char (window, line,
@@ -392,7 +405,7 @@ gui_chat_display_word_raw (struct t_gui_window *window, struct t_gui_line *line,
apply_style_inactive,
nick_offline);
if (!string)
return chars_displayed;
goto end;
next_char = (char *)utf8_next_char (string);
if (next_char)
@@ -414,7 +427,7 @@ gui_chat_display_word_raw (struct t_gui_window *window, struct t_gui_line *line,
if ((max_chars_on_screen > 0)
&& (chars_displayed + size_on_screen > max_chars_on_screen))
{
return chars_displayed;
goto end;
}
if (display_char && (size_on_screen >= 0))
{
@@ -442,6 +455,15 @@ gui_chat_display_word_raw (struct t_gui_window *window, struct t_gui_line *line,
string = next_char;
}
end:
if (url)
{
/* doesn't work: raw codes are displayed as-is */
waddstr (GUI_WINDOW_OBJECTS(window)->win_chat, "\33]8;;\33\\");
/* doesn't work: no effect */
fprintf (stderr, "\33]8;;\33\\");
fflush (stderr);
}
return chars_displayed;
}
@@ -461,7 +483,7 @@ gui_chat_display_word (struct t_gui_window *window,
int apply_style_inactive,
int nick_offline)
{
char *data, *ptr_data, *end_line, saved_char, str_space[] = " ";
char *data, *ptr_data, *url, *end_line, saved_char, str_space[] = " ";
int chars_displayed, pos_saved_char, chars_to_display, num_displayed;
int length_align;
@@ -485,6 +507,8 @@ gui_chat_display_word (struct t_gui_window *window,
else
word_end = NULL;
url = (strncmp (data, "http", 4) == 0) ? strdup (data) : NULL;
ptr_data = data;
while (ptr_data && ptr_data[0])
{
@@ -518,12 +542,14 @@ gui_chat_display_word (struct t_gui_window *window,
}
chars_displayed += gui_chat_display_word_raw (window, line,
CONFIG_STRING(config_look_prefix_suffix),
NULL,
0, simulate,
apply_style_inactive,
nick_offline);
window->win_chat_cursor_x += gui_chat_strlen_screen (CONFIG_STRING(config_look_prefix_suffix));
chars_displayed += gui_chat_display_word_raw (window, line,
str_space,
NULL,
0, simulate,
apply_style_inactive,
nick_offline);
@@ -553,6 +579,7 @@ gui_chat_display_word (struct t_gui_window *window,
{
chars_displayed += gui_chat_display_word_raw (window, line,
ptr_data,
url,
0, simulate,
apply_style_inactive,
nick_offline);
@@ -561,6 +588,7 @@ gui_chat_display_word (struct t_gui_window *window,
{
chars_displayed += gui_chat_display_word_raw (window, line,
ptr_data,
url,
0, 0,
apply_style_inactive,
nick_offline);
@@ -575,6 +603,7 @@ gui_chat_display_word (struct t_gui_window *window,
{
chars_displayed += gui_chat_display_word_raw (window, line,
ptr_data,
url,
0, simulate,
apply_style_inactive,
nick_offline);
@@ -583,6 +612,7 @@ gui_chat_display_word (struct t_gui_window *window,
{
chars_displayed += gui_chat_display_word_raw (window, line,
ptr_data,
url,
0, 0,
apply_style_inactive,
nick_offline);
@@ -606,6 +636,8 @@ gui_chat_display_word (struct t_gui_window *window,
}
free (data);
if (url)
free (url);
return chars_displayed;
}
@@ -677,6 +709,7 @@ gui_chat_display_day_changed (struct t_gui_window *window,
gui_chat_clrtoeol (window);
gui_chat_display_word_raw (window, NULL,
(message_with_color) ? message_with_color : message,
NULL,
0, simulate, 0, 0);
window->win_chat_cursor_x = window->win_chat_width;
@@ -1670,7 +1703,7 @@ gui_chat_display_line_y (struct t_gui_window *window, struct t_gui_line *line,
}
/* display the line */
if (gui_chat_display_word_raw (window, line, ptr_data,
if (gui_chat_display_word_raw (window, line, ptr_data, NULL,
window->win_chat_width, 0,
CONFIG_BOOLEAN(config_look_color_inactive_message),
0) < window->win_chat_width)
+1 -1
View File
@@ -44,7 +44,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Support of scheme scripts (with Guile)"));
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
WEECHAT_PLUGIN_PRIORITY(4000);
WEECHAT_PLUGIN_PRIORITY(4007);
struct t_weechat_plugin *weechat_guile_plugin = NULL;
+4
View File
@@ -32,12 +32,16 @@ struct t_irc_ctcp_reply
};
extern const char *irc_ctcp_get_default_reply (const char *ctcp);
extern const char *irc_ctcp_get_reply (struct t_irc_server *server,
const char *ctcp);
extern void irc_ctcp_display_reply_from_nick (struct t_irc_server *server,
time_t date,
const char *command,
const char *nick,
const char *address,
const char *arguments);
extern char *irc_ctcp_replace_variables (struct t_irc_server *server,
const char *format);
extern void irc_ctcp_recv (struct t_irc_server *server, time_t date,
const char *command, struct t_irc_channel *channel,
const char *address, const char *nick,
+66 -52
View File
@@ -715,6 +715,9 @@ irc_protocol_cap_sync (struct t_irc_server *server, int sasl)
* Callback for the IRC message "CAP": client capability.
*
* Message looks like:
* CAP * LS :identify-msg multi-prefix sasl
* CAP * ACK :sasl
* CAP * NAK :sasl
* :server CAP * LS :identify-msg multi-prefix sasl
* :server CAP * ACK :sasl
* :server CAP * NAK :sasl
@@ -725,24 +728,26 @@ IRC_PROTOCOL_CALLBACK(cap)
char *ptr_caps, **caps_supported, **caps_added, **caps_removed;
char **caps_enabled, *pos_value, *str_name, **str_caps;
char str_msg_auth[512], **str_caps_enabled, **str_caps_disabled;
int num_caps_supported, num_caps_added, num_caps_removed;
int arg_cmd, num_caps_supported, num_caps_added, num_caps_removed;
int num_caps_enabled, sasl_to_do, sasl_mechanism;
int i, timeout, last_reply;
IRC_PROTOCOL_MIN_ARGS(4);
arg_cmd = (argv[0][0] == ':') ? 1 : 0;
if (strcmp (argv[3], "LS") == 0)
IRC_PROTOCOL_MIN_ARGS(arg_cmd + 3);
if (strcmp (argv[arg_cmd + 2], "LS") == 0)
{
if (argc > 4)
if (argc > arg_cmd + 3)
{
if (argc > 5 && (strcmp (argv[4], "*") == 0))
if (argc > arg_cmd + 4 && (strcmp (argv[arg_cmd + 3], "*") == 0))
{
ptr_caps = argv_eol[5];
ptr_caps = argv_eol[arg_cmd + 4];
last_reply = 0;
}
else
{
ptr_caps = argv_eol[4];
ptr_caps = argv_eol[arg_cmd + 3];
last_reply = 1;
}
@@ -814,18 +819,18 @@ IRC_PROTOCOL_CALLBACK(cap)
weechat_string_free_split (caps_supported);
}
}
else if (strcmp (argv[3], "LIST") == 0)
else if (strcmp (argv[arg_cmd + 2], "LIST") == 0)
{
if (argc > 4)
if (argc > arg_cmd + 3)
{
if (argc > 5 && (strcmp (argv[4], "*") == 0))
if (argc > arg_cmd + 4 && (strcmp (argv[arg_cmd + 3], "*") == 0))
{
ptr_caps = argv_eol[5];
ptr_caps = argv_eol[arg_cmd + 4];
last_reply = 0;
}
else
{
ptr_caps = argv_eol[4];
ptr_caps = argv_eol[arg_cmd + 3];
last_reply = 1;
}
@@ -893,11 +898,12 @@ IRC_PROTOCOL_CALLBACK(cap)
weechat_string_free_split (caps_enabled);
}
}
else if (strcmp (argv[3], "ACK") == 0)
else if (strcmp (argv[arg_cmd + 2], "ACK") == 0)
{
if (argc > 4)
if (argc > arg_cmd + 3)
{
ptr_caps = (argv_eol[4][0] == ':') ? argv_eol[4] + 1 : argv_eol[4];
ptr_caps = (argv_eol[arg_cmd + 3][0] == ':') ?
argv_eol[arg_cmd + 3] + 1 : argv_eol[arg_cmd + 3];
sasl_to_do = 0;
str_caps_enabled = weechat_string_dyn_alloc (128);
@@ -996,11 +1002,12 @@ IRC_PROTOCOL_CALLBACK(cap)
}
}
}
else if (strcmp (argv[3], "NAK") == 0)
else if (strcmp (argv[arg_cmd + 2], "NAK") == 0)
{
if (argc > 4)
if (argc > arg_cmd + 3)
{
ptr_caps = (argv_eol[4][0] == ':') ? argv_eol[4] + 1 : argv_eol[4];
ptr_caps = (argv_eol[arg_cmd + 3][0] == ':') ?
argv_eol[arg_cmd + 3] + 1 : argv_eol[arg_cmd + 3];
weechat_printf_date_tags (
server->buffer, date, NULL,
_("%s%s: client capability, refused: %s"),
@@ -1009,11 +1016,12 @@ IRC_PROTOCOL_CALLBACK(cap)
irc_server_sendf (server, 0, NULL, "CAP END");
}
}
else if (strcmp (argv[3], "NEW") == 0)
else if (strcmp (argv[arg_cmd + 2], "NEW") == 0)
{
if (argc > 4)
if (argc > arg_cmd + 3)
{
ptr_caps = (argv_eol[4][0] == ':') ? argv_eol[4] + 1 : argv_eol[4];
ptr_caps = (argv_eol[arg_cmd + 3][0] == ':') ?
argv_eol[arg_cmd + 3] + 1 : argv_eol[arg_cmd + 3];
weechat_printf_date_tags (
server->buffer, date, NULL,
_("%s%s: client capability, now available: %s"),
@@ -1056,11 +1064,12 @@ IRC_PROTOCOL_CALLBACK(cap)
irc_protocol_cap_sync (server, 0);
}
}
else if (strcmp (argv[3], "DEL") == 0)
else if (strcmp (argv[arg_cmd + 2], "DEL") == 0)
{
if (argc > 4)
if (argc > arg_cmd + 3)
{
ptr_caps = (argv_eol[4][0] == ':') ? argv_eol[4] + 1 : argv_eol[4];
ptr_caps = (argv_eol[arg_cmd + 3][0] == ':') ?
argv_eol[arg_cmd + 3] + 1 : argv_eol[arg_cmd + 3];
weechat_printf_date_tags (
server->buffer, date, NULL,
_("%s%s: client capability, removed: %s"),
@@ -2978,12 +2987,14 @@ IRC_PROTOCOL_CALLBACK(setname)
*
* Message looks like:
* @msgid=6gqz7dxd22v7r3x9pvu;+typing=active :nick!user@host TAGMSG #channel
* @msgid=6gqz7dxd22v7r3x9pvu;+typing=active :nick!user@host TAGMSG :#channel
*/
IRC_PROTOCOL_CALLBACK(tagmsg)
{
struct t_irc_channel *ptr_channel;
const char *ptr_typing_value;
char *pos_channel;
int state;
IRC_PROTOCOL_MIN_ARGS(3);
@@ -2994,10 +3005,12 @@ IRC_PROTOCOL_CALLBACK(tagmsg)
if (!tags)
return WEECHAT_RC_OK;
pos_channel = (argv[2][0] == ':') ? argv[2] + 1 : argv[2];
ptr_channel = NULL;
if (irc_channel_is_channel (server, argv[2]))
ptr_channel = irc_channel_search (server, argv[2]);
else if (irc_server_strcasecmp (server, argv[2], server->nick) == 0)
if (irc_channel_is_channel (server, pos_channel))
ptr_channel = irc_channel_search (server, pos_channel);
else if (irc_server_strcasecmp (server, pos_channel, server->nick) == 0)
ptr_channel = irc_channel_search (server, nick);
if (!ptr_channel)
return WEECHAT_RC_OK;
@@ -3044,14 +3057,18 @@ IRC_PROTOCOL_CALLBACK(server_mode_reason)
((argv_eol[3][0] == ':') ? argv_eol[3] + 1 : argv_eol[3]) : NULL;
}
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s: %s",
weechat_prefix ("network"),
pos_mode,
(pos_args) ? pos_args : "");
if (pos_mode)
{
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s%s%s",
weechat_prefix ("network"),
pos_mode,
(pos_args) ? ": " : "",
(pos_args) ? pos_args : "");
}
return WEECHAT_RC_OK;
}
@@ -3076,13 +3093,16 @@ IRC_PROTOCOL_CALLBACK(numeric)
pos_args = (argv_eol[2][0] == ':') ? argv_eol[2] + 1 : argv_eol[2];
}
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s",
weechat_prefix ("network"),
pos_args);
if (pos_args)
{
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s",
weechat_prefix ("network"),
pos_args);
}
return WEECHAT_RC_OK;
}
@@ -7060,12 +7080,9 @@ irc_protocol_recv_command (struct t_irc_server *server,
else
{
weechat_printf (server->buffer,
_("%s%s: command \"%s\" not found:"),
_("%s%s: command \"%s\" not found: \"%s\""),
weechat_prefix ("error"), IRC_PLUGIN_NAME,
msg_command);
weechat_printf (server->buffer,
"%s%s",
weechat_prefix ("error"), irc_message);
msg_command, irc_message);
goto end;
}
}
@@ -7116,12 +7133,9 @@ irc_protocol_recv_command (struct t_irc_server *server,
{
weechat_printf (server->buffer,
_("%s%s: failed to parse command \"%s\" (please "
"report to developers):"),
"report to developers): \"%s\""),
weechat_prefix ("error"), IRC_PLUGIN_NAME,
msg_command);
weechat_printf (server->buffer,
"%s%s",
weechat_prefix ("error"), irc_message);
cmd_name, irc_message);
}
/* send signal with received command (if message is not ignored) */
+1 -1
View File
@@ -39,7 +39,7 @@ WEECHAT_PLUGIN_DESCRIPTION("Support of javascript scripts");
WEECHAT_PLUGIN_AUTHOR("Koka El Kiwi <kokakiwi@kokakiwi.net>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
WEECHAT_PLUGIN_PRIORITY(4000);
WEECHAT_PLUGIN_PRIORITY(4006);
struct t_weechat_plugin *weechat_js_plugin = NULL;
+1 -1
View File
@@ -40,7 +40,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Support of lua scripts"));
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
WEECHAT_PLUGIN_PRIORITY(4000);
WEECHAT_PLUGIN_PRIORITY(4005);
struct t_weechat_plugin *weechat_lua_plugin = NULL;
+1 -1
View File
@@ -37,7 +37,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Support of perl scripts"));
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
WEECHAT_PLUGIN_PRIORITY(4000);
WEECHAT_PLUGIN_PRIORITY(4004);
struct t_weechat_plugin *weechat_perl_plugin = NULL;
+1 -1
View File
@@ -53,7 +53,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Support of PHP scripts"));
WEECHAT_PLUGIN_AUTHOR("Adam Saponara <as@php.net>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
WEECHAT_PLUGIN_PRIORITY(4000);
WEECHAT_PLUGIN_PRIORITY(4003);
struct t_weechat_plugin *weechat_php_plugin = NULL;
+1 -1
View File
@@ -40,7 +40,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Support of python scripts"));
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
WEECHAT_PLUGIN_PRIORITY(4000);
WEECHAT_PLUGIN_PRIORITY(4002);
struct t_weechat_plugin *weechat_python_plugin = NULL;
+1 -1
View File
@@ -61,7 +61,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Support of ruby scripts"));
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
WEECHAT_PLUGIN_PRIORITY(4000);
WEECHAT_PLUGIN_PRIORITY(4001);
struct t_weechat_plugin *weechat_ruby_plugin = NULL;
+1
View File
@@ -26,6 +26,7 @@ include_directories(${CPPUTEST_INCLUDE_DIRS} ${PROJECT_BINARY_DIR} ${PROJECT_SOU
set(LIB_WEECHAT_UNIT_TESTS_CORE_SRC
unit/core/test-core-arraylist.cpp
unit/core/test-core-calc.cpp
unit/core/test-core-config-file.cpp
unit/core/test-core-crypto.cpp
unit/core/test-core-dir.cpp
unit/core/test-core-eval.cpp
+1
View File
@@ -23,6 +23,7 @@ noinst_LIBRARIES = lib_weechat_unit_tests_core.a
lib_weechat_unit_tests_core_a_SOURCES = unit/core/test-core-arraylist.cpp \
unit/core/test-core-calc.cpp \
unit/core/test-core-config-file.cpp \
unit/core/test-core-crypto.cpp \
unit/core/test-core-dir.cpp \
unit/core/test-core-eval.cpp \
+1 -1
View File
@@ -183,7 +183,7 @@ TEST(Scripts, API)
/* check that there was no errors in script generation */
LONGS_EQUAL(0, api_tests_errors);
/* unload generator scritp */
/* unload generator script */
snprintf (str_command, sizeof (str_command),
"/script unload testapigen.py");
run_cmd (str_command);
+141 -9
View File
@@ -34,6 +34,7 @@ extern "C"
#define HAVE_CONFIG_H
#endif
#include "src/core/weechat.h"
#include "src/core/wee-arraylist.h"
#include "src/core/wee-dir.h"
#include "src/core/wee-hook.h"
#include "src/core/wee-input.h"
@@ -61,6 +62,7 @@ extern "C"
/* core */
IMPORT_TEST_GROUP(CoreArraylist);
IMPORT_TEST_GROUP(CoreCalc);
IMPORT_TEST_GROUP(CoreConfigFile);
IMPORT_TEST_GROUP(CoreCrypto);
IMPORT_TEST_GROUP(CoreDir);
IMPORT_TEST_GROUP(CoreEval);
@@ -85,6 +87,10 @@ IMPORT_TEST_GROUP(Scripts);
struct t_gui_buffer *ptr_core_buffer = NULL;
/* recording of messages: to test if a message is actually displayed */
int record_messages = 0;
struct t_arraylist *recorded_messages = NULL;
/*
* Callback for exec_on_files (to remove all files in WeeChat home directory).
@@ -100,7 +106,7 @@ exec_on_files_cb (void *data, const char *filename)
}
/*
* Callback for any message displayed by WeeChat or a plugin.
* Callback for any message displayed by WeeChat or a plugin (colors stripped).
*/
int
@@ -108,6 +114,9 @@ test_print_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
time_t date, int tags_count, const char **tags, int displayed,
int highlight, const char *prefix, const char *message)
{
const char *buffer_full_name;
char str_recorded[8192];
/* make C++ compiler happy */
(void) pointer;
(void) data;
@@ -118,21 +127,134 @@ test_print_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
(void) displayed;
(void) highlight;
/* keep only messages displayed on core buffer */
if (strcmp (gui_buffer_get_string (buffer, "full_name"),
"core.weechat") != 0)
buffer_full_name = gui_buffer_get_string (buffer, "full_name");
if (record_messages)
{
return WEECHAT_RC_OK;
snprintf (str_recorded, sizeof (str_recorded),
"%s: \"%s%s%s\"",
buffer_full_name,
(prefix && prefix[0]) ? prefix : "",
(prefix && prefix[0]) ? " " : "",
(message && message[0]) ? message : "");
arraylist_add (recorded_messages, strdup (str_recorded));
}
printf ("%s%s%s\n", /* with color: "\33[34m%s%s%s\33[0m\n" */
(prefix && prefix[0]) ? prefix : "",
(prefix && prefix[0]) ? " " : "",
(message && message[0]) ? message : "");
/* keep only messages displayed on core buffer */
if (strcmp (buffer_full_name, "core.weechat") == 0)
{
printf ("%s%s%s\n", /* with color: "\33[34m%s%s%s\33[0m\n" */
(prefix && prefix[0]) ? prefix : "",
(prefix && prefix[0]) ? " " : "",
(message && message[0]) ? message : "");
}
return WEECHAT_RC_OK;
}
/*
* Callback used to compare two recorded messages.
*/
int
record_cmp_cb (void *data, struct t_arraylist *arraylist,
void *pointer1, void *pointer2)
{
/* make C++ compiler happy */
(void) data;
(void) arraylist;
return strcmp ((char *)pointer1, (char *)pointer2);
}
/*
* Callback used to free a recorded message.
*/
void
record_free_cb (void *data, struct t_arraylist *arraylist, void *pointer)
{
/* make C++ compiler happy */
(void) data;
(void) arraylist;
free (pointer);
}
/*
* Starts recording of messages displayed.
*/
void
record_start ()
{
record_messages = 1;
if (recorded_messages)
{
arraylist_clear (recorded_messages);
}
else
{
recorded_messages = arraylist_new (16, 0, 1,
&record_cmp_cb, NULL,
&record_free_cb, NULL);
}
}
/*
* Stops recording of messages displayed.
*/
void
record_stop ()
{
record_messages = 0;
}
/*
* Searches if a message has been displayed in a buffer.
*
* The format of "message" argument is: "prefix message" (prefix and message
* separated by a space).
*
* Returns:
* 1: message has been displayed
* 0: message has NOT been displayed
*/
int
record_search (const char *buffer, const char *message)
{
char str_message[8192];
snprintf (str_message, sizeof (str_message),
"%s: \"%s\"",
buffer, message);
return (arraylist_search (recorded_messages, str_message,
NULL, NULL) != NULL);
}
/*
* Adds all recorded messages to the dynamic string "msg".
*/
void
record_dump (char **msg)
{
int i;
for (i = 0; i < arraylist_size (recorded_messages); i++)
{
string_dyn_concat (msg, " ", -1);
string_dyn_concat (msg,
(const char *)arraylist_get (recorded_messages, i),
-1);
string_dyn_concat (msg, "\n", -1);
}
}
/*
* Initializes GUI for tests.
*/
@@ -171,6 +293,16 @@ run_cmd (const char *command)
input_data (ptr_core_buffer, command, NULL);
}
/*
* Runs a command on a buffer (do not display the command executed).
*/
void
run_cmd_quiet (const char *command)
{
input_data (ptr_core_buffer, command, NULL);
}
/*
* Runs tests in WeeChat environment.
*/
+8
View File
@@ -32,6 +32,14 @@
} \
free (str);
extern struct t_arraylist *recorded_messages;
extern void record_start ();
extern void record_stop ();
extern int record_search (const char *buffer, const char *message);
extern void record_dump (char **msg);
extern void run_cmd (const char *command);
extern void run_cmd_quiet (const char *command);
#endif /* WEECHAT_TESTS_H */
File diff suppressed because it is too large Load Diff
+8
View File
@@ -853,6 +853,14 @@ TEST(CoreEval, EvalExpression)
WEE_CHECK_EVAL("", "${translate:}");
WEE_CHECK_EVAL("abcdef", "${translate:abcdef}");
/* test user variables */
WEE_CHECK_EVAL("", "${define:}");
WEE_CHECK_EVAL("", "${define:test}");
WEE_CHECK_EVAL("", "${define:test,value}");
WEE_CHECK_EVAL("value", "${define:test,value}${test}");
WEE_CHECK_EVAL("8", "${define:test,${calc:5+3}}${test}");
WEE_CHECK_EVAL("value", "${define:buffer,value}${buffer}");
/* test option */
hashtable_set (secure_hashtable_data, "sec_option", "sec_value");
WEE_CHECK_EVAL("sec_value", "${sec.data.sec_option}");
File diff suppressed because it is too large Load Diff
+6 -8
View File
@@ -1050,19 +1050,17 @@ TEST_GROUP(IrcServerConnected)
"/command -buffer irc.server." IRC_FAKE_SERVER " irc "
"/server fakerecv %s",
command);
run_cmd (str_command);
run_cmd_quiet (str_command);
}
void setup ()
{
printf ("\n");
/* create a fake server (no I/O) */
run_cmd ("/server add " IRC_FAKE_SERVER " fake:127.0.0.1 "
"-nicks=nick1,nick2,nick3");
run_cmd_quiet ("/mute /server add " IRC_FAKE_SERVER " fake:127.0.0.1 "
"-nicks=nick1,nick2,nick3");
/* connect to the fake server */
run_cmd ("/connect " IRC_FAKE_SERVER);
run_cmd_quiet ("/mute /connect " IRC_FAKE_SERVER);
/* get the server pointer */
ptr_server = irc_server_search (IRC_FAKE_SERVER);
@@ -1071,8 +1069,8 @@ TEST_GROUP(IrcServerConnected)
void teardown ()
{
/* disconnect and delete the fake server */
run_cmd ("/disconnect " IRC_FAKE_SERVER);
run_cmd ("/server del " IRC_FAKE_SERVER);
run_cmd_quiet ("/mute /disconnect " IRC_FAKE_SERVER);
run_cmd_quiet ("/mute /server del " IRC_FAKE_SERVER);
ptr_server = NULL;
}
};
+2 -2
View File
@@ -33,8 +33,8 @@
#
WEECHAT_STABLE=3.3
WEECHAT_DEVEL=3.3
WEECHAT_DEVEL_FULL=3.3
WEECHAT_DEVEL=3.4
WEECHAT_DEVEL_FULL=3.4-dev
if [ $# -lt 1 ]; then
echo >&2 "Syntax: $0 stable|devel|devel-full|devel-major|devel-minor|devel-patch"