1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Compare commits

...

149 Commits

Author SHA1 Message Date
Sébastien Helleu 6a98f747e6 Version 3.7.1 2022-10-21 13:01:44 +02:00
Sébastien Helleu dc034e2685 trigger: execute trigger command on appropriate buffer (issue #1841)
This affects the following hook types:

- command
- command_run
- line
- modifier
- print

This fixes a regression introduced in WeeChat 3.7 by commit
0f67f55098.
2022-10-20 20:39:39 +02:00
Sébastien Helleu a0bba1325a Version 3.7.1-dev 2022-10-20 20:39:09 +02:00
Sébastien Helleu 484f679e60 Version 3.7 2022-10-09 08:06:53 +02:00
Trygve Aaberge fdb1ff3781 tests: Use LONGS_EQUAL for version number tests
util_version_number returns an int, but BYTES_EQUAL only compares the
last byte of the int, so it wouldn't test the rest of the int.

I see other tests for functions returning an int use LONGS_EQUAL, so
that seems correct to use.
2022-10-08 18:13:00 +02:00
Sébastien Helleu 193aa0448f core: fix compilation warning on isdigit function 2022-10-08 12:18:09 +02:00
Sébastien Helleu 3932cf5a00 xfer: add missing include of netinet/in.h
This fixes compilation on FreeBSD 13.0.
2022-10-08 12:11:12 +02:00
Sébastien Helleu 8555cf465e debian: update changelog 2022-10-08 11:52:44 +02:00
Sébastien Helleu 11f0d57dfd debian: bump Standards-Version to 4.6.1.0 2022-10-08 11:52:14 +02:00
Nils Görs 1fd5dd4c34 doc: update German documentation 2022-10-06 15:02:08 +02:00
Sébastien Helleu 1fec7e8856 core: fix page scroll in bare display (closes #1830) 2022-10-05 20:33:35 +02:00
Trygve Aaberge 236d22e364 python: Include constant values in python stub
This is useful for two reasons:

1. When running unit tests for a script weechat needs to be mocked. By
   having the constant values available in the stub file, they can be
   loaded from that, instead of having to define the constants manually
   for the mock.

2. If you log a constant value you have to look up what it means. This
   makes it easier, in the same vein as PR #1824.
2022-10-02 20:25:17 +02:00
Sébastien Helleu 4d3a3c67ac irc: set local variable "filter" when doing /server raw xxx with raw buffer already opened (closes #1448) 2022-10-01 17:06:31 +02:00
Sébastien Helleu ae61137216 trigger: add variable ${tg_hook_type} (closes #1765) 2022-09-30 21:32:27 +02:00
Trygve Aaberge 6bb4bed8bb doc/api: Fix config_new_option types for non English docs
Only English was changed in commit 197a7a01e.
2022-09-30 07:53:37 +02:00
Sébastien Helleu 92cdcee8f6 api: change type of argument object_id in upgrade_new callback from string to integer (in scripts) 2022-09-29 21:38:04 +02:00
Sébastien Helleu b2b110f1a3 api: change type of argument remaining_calls in hook_timer callback from string to integer (in scripts) 2022-09-29 21:21:01 +02:00
Trygve Aaberge 89400cbf7a doc/api: Remove unnecessary cast in Python example
The highlight argument is already an int, so no point in casting it.
2022-09-29 17:13:19 +02:00
Trygve Aaberge e0c117e14f doc/api: Add types for Python callbacks 2022-09-29 17:13:19 +02:00
Sébastien Helleu b978de5f84 debian: remove ubuntu/xenial patch (distro not supported any more)
As zstd is too old in ubuntu/xenial (0.5.1 while min version is 0.8.1), this
distro is not supported any more.
2022-09-29 16:04:58 +02:00
Sébastien Helleu fd43ad6387 core: fix compilation with zstd < 1.4.0
Note: zstd ≥ 0.8.1 is now required to compile WeeChat.
2022-09-29 15:59:01 +02:00
Sébastien Helleu 009a7821b1 doc: update German auto-generated file 2022-09-29 11:07:38 +02:00
Nils Görs 5cfcec7212 doc: update German documentation 2022-09-29 11:06:13 +02:00
Nils Görs c6671fc9db core: update German translations 2022-09-29 11:04:56 +02:00
Sébastien Helleu 8295ea6da8 doc/user: remove tag "translation missing" in French user's guide 2022-09-29 09:47:50 +02:00
Sébastien Helleu 9817372553 doc/user: add chapter on log file rotation/compression 2022-09-29 09:46:43 +02:00
Sébastien Helleu 486df38a8d php: add missing arginfo_weechat_string_parse_size in legacy arginfo 2022-09-29 07:48:55 +02:00
Trygve Aaberge 76d4cc7e3f doc/api: Add values for hook_process constants
When logging this value I just see a number so I have to look up what it
means. Previously you would have to check the code or print the value of
each of these constants to see it. Seeing the value directly in the
documentation makes this much easier.
2022-09-28 21:42:21 +02:00
Sébastien Helleu 135960859d doc/api: add note about C API for constant WEECHAT_HOOK_PROCESS_CHILD (function hook_process) 2022-09-28 21:01:01 +02:00
Sébastien Helleu 9f62c4a842 doc/api: fix typo 2022-09-28 20:58:29 +02:00
Sébastien Helleu 7711ed95c5 logger: add options to rotate and compress log files (closes #314)
New options:

- logger.file.rotation_compression_level
- logger.file.rotation_compression_type
- logger.file.rotation_size_max
2022-09-28 20:52:59 +02:00
Sébastien Helleu 26e6fdc645 api: add function file_compress 2022-09-27 20:49:12 +02:00
Sébastien Helleu e7b6e8c60f api: restrict number to integer in function string_parse_size 2022-09-27 15:50:43 +02:00
Sébastien Helleu 4d74a89cfc api: add function string_parse_size 2022-09-27 15:50:43 +02:00
Nils Görs be6a29a596 doc: update German documentation 2022-09-27 10:56:11 +02:00
Sébastien Helleu 34c043453b irc: fix use of uninitialized variable ptr_nick 2022-09-26 21:21:27 +02:00
Sébastien Helleu 6f8aab186d doc: update German auto-generated file 2022-09-20 19:23:57 +02:00
Nils Görs 201b24a02a core: update German translations 2022-09-20 19:10:13 +02:00
Sébastien Helleu 01cf98e8fb core: add key alt+backspace, change behavior of key ctrl+w (closes #559)
The key ctrl+w now deletes one word until whitespace.

The new key alt+backspace deletes one word (same behavior as ctrl+w in previous
releases).
2022-09-18 23:26:49 +02:00
Sébastien Helleu d7c0e896b2 core: fix style in ChangeLog 2022-09-18 17:44:55 +02:00
Sébastien Helleu 389f9f436b trigger: escape arguments with double quotes in output of /trigger input|output|recreate (closes #190) 2022-09-18 17:44:05 +02:00
Sébastien Helleu fe62d93dd0 build: update version of Debian/Ubuntu distros in examples 2022-09-18 14:39:36 +02:00
Sébastien Helleu d5c285f0a6 build: remove patches for Debian/Raspbian Stretch 2022-09-18 14:39:02 +02:00
Sébastien Helleu a00edcf50e tests: add tests on filter functions 2022-09-17 18:56:35 +02:00
Sébastien Helleu be7380f9b3 core: fix order of filters after renaming a filter (issue #1695) 2022-09-17 16:01:02 +02:00
Sébastien Helleu 5284921701 irc: fix message when disconnecting from server in case of high lag when server option autoreconnect is off (closes #1708) 2022-09-17 12:12:06 +02:00
Sébastien Helleu 36d2e7427e core: fix wrong terminal title on terminal resize (closes #1702) 2022-09-17 11:56:03 +02:00
Sébastien Helleu 0df582c7c1 core: sort filters by name (closes #1695) 2022-09-17 11:07:22 +02:00
Sébastien Helleu a99fc17d40 spell: allow special dict value "-" to disable spell checking on a specific buffer (closes #1699) 2022-09-17 10:44:21 +02:00
Sébastien Helleu 2b2ba62600 doc/api: add version 3.7 for priority in function hook_line 2022-09-17 07:52:39 +02:00
Sébastien Helleu 21683def12 doc: update German auto-generated file 2022-09-16 21:06:33 +02:00
Sébastien Helleu 96c22c41ba api: add support of priority in function hook_line (closes #1821) 2022-09-16 21:05:51 +02:00
Nils Görs ba27ec8d65 core: update German translations 2022-09-16 08:23:27 +02:00
Sébastien Helleu c6d8b54459 irc: add option irc.look.display_pv_nick_change 2022-09-15 20:31:06 +02:00
Sébastien Helleu 82f59d2a98 doc: update auto-generated files 2022-09-11 16:30:55 +02:00
Nils Görs 731f7e4243 core: update German translations 2022-09-11 16:25:17 +02:00
Ivan Pešić 2178440b7c core: Update Serbian translation
Includes documentation update.
2022-09-11 11:50:35 +02:00
Sébastien Helleu 57af62c1c0 doc/api: move function hook_completion in chapter on hook priority 2022-09-11 11:45:02 +02:00
Sébastien Helleu 742773e070 doc/api: update chapter on hook priority 2022-09-11 10:52:25 +02:00
Sébastien Helleu ac646da4fb doc/api: update note about priority in hook functions 2022-09-11 09:50:47 +02:00
Sébastien Helleu 9cb68b13a9 irc: replace chars "\01" by spaces in CTCP replies (closes #1819)
This prevents any attack due to an external security issue in the Linux
netfilter implementation (nf_conntrack_irc).

See: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2663
2022-09-10 13:43:45 +02:00
Sébastien Helleu 5070a6330c xfer: use larger buffer for IP address
This removes a gcc warning about a too small buffer.
2022-09-09 19:20:41 +02:00
Sébastien Helleu d5cbd6c49a irc: fix display of message 350 (whois, gateway) (closes #1815) 2022-09-05 22:12:17 +02:00
Sébastien Helleu 2a32456f19 tests: add missing include of string.h 2022-09-05 20:49:59 +02:00
Sébastien Helleu b0bf2fbc97 core: remove debug print 2022-09-03 22:38:12 +02:00
Sébastien Helleu e8524ea2c4 xfer: fix DCC file receive on Termux (closes #1811)
This fixes such error displayed on Termux when receiving a DCC file:

xfer: invalid address "96747949": error 8 hostname nor servname provided, or not known
2022-09-03 22:29:46 +02:00
Sébastien Helleu 7cf9399616 core: rename argument "length" to "bytes" in function string_strndup (header files)
Argument was already renamed in commit f8915129bf
but it was incomplete (missing header files).
2022-08-31 22:51:47 +02:00
Sébastien Helleu 68ecfb16a1 irc: fix target buffer of generic errors when they contain a target nick (closes #1814) 2022-08-29 22:45:28 +02:00
Sébastien Helleu f5604510cd script: use API function weechat_crypto_hash_file in script_repo_sha512sum_file 2022-08-16 21:40:02 +02:00
Sébastien Helleu 0090695f7d api: add function crypto_hash_file 2022-08-16 21:33:50 +02:00
Sébastien Helleu e614410815 irc: fix extract of isupport value when it is last in list and without value (closes #1807) 2022-08-15 18:14:03 +02:00
Sébastien Helleu fb14e67364 buflist: improve help on option buflist.look.enabled 2022-08-15 14:43:25 +02:00
Sébastien Helleu a31de83a3c core: move line from "New features" to "Bug fixes" 2022-08-15 13:11:08 +02:00
Sébastien Helleu b26fb7fba6 core: add new option trigger.color.identifier in ChangeLog 2022-08-15 13:10:29 +02:00
Sébastien Helleu 0f67f55098 trigger: add elapsed time for trigger execution on monitor buffer when trigger debug is set (closes #1806) 2022-08-15 12:44:16 +02:00
Sébastien Helleu 1ce2d7f56d trigger: fix error on monitor buffer creation when trigger debug is >= 1 and monitor buffer is closed 2022-08-15 12:42:26 +02:00
Sébastien Helleu 223eefef67 irc: display ACCOUNT command in private buffers 2022-08-13 22:58:37 +02:00
Sébastien Helleu aee3da5452 irc: add options and display SETNAME command in channels and private buffers (closes #1805)
New options:

- irc.color.message_setname
- irc.look.smart_filter_setname
2022-08-13 22:47:22 +02:00
Sébastien Helleu d3b84eaf6c irc: display CHGHOST command in private buffers 2022-08-13 22:16:46 +02:00
Sébastien Helleu ac50a5dda7 doc: update auto-generated files 2022-08-13 19:07:56 +02:00
Sébastien Helleu a36fa2faea logger: improve help on option logger.file.auto_log 2022-08-13 19:02:55 +02:00
Sébastien Helleu 1e0d59a5e6 irc: add missing tag "irc_numeric" in all numeric IRC commands (closes #1804) 2022-08-13 17:34:43 +02:00
Sébastien Helleu 06b6f457d9 tests: add tests on dynamic string functions with NULL string 2022-08-13 14:38:08 +02:00
Sébastien Helleu 57c0a82557 core: fix CMake warning in Python detection 2022-08-13 14:37:00 +02:00
Sébastien Helleu dd65938a85 doc: update German auto-generated file 2022-08-09 23:35:57 +02:00
Nils Görs ff417f88ea core: update German translations 2022-08-08 10:22:56 +02:00
Nils Görs 2857b7b4b7 core: update German translations 2022-08-08 10:08:44 +02:00
Sébastien Helleu a8080505f3 tests: add tests on function xfer_file_search_crc32 2022-08-08 08:06:23 +02:00
Sébastien Helleu bbe8afcbd4 xfer: move and rename function xfer_filename_crc32 to xfer-file.c 2022-08-08 06:57:39 +02:00
Sébastien Helleu 25f25073b9 irc: fix parsing of messages with trailing spaces and no trailing parameter (closes #1803) 2022-08-07 23:28:11 +02:00
Sébastien Helleu d068fe0de5 core: add option -save in command /upgrade (closes #1630) 2022-08-07 16:48:12 +02:00
Sébastien Helleu d91cddc909 xfer: disconnect all active DCC chats and files on /upgrade 2022-08-07 11:15:03 +02:00
Sébastien Helleu 9fd71067e7 xfer: fix refresh of xfer buffer after /upgrade 2022-08-07 11:11:10 +02:00
Sébastien Helleu 441d532f15 relay: fix refresh of relay buffer after /upgrade 2022-08-07 10:04:47 +02:00
Sébastien Helleu 57c9f371bc relay: use enum type for websocket status in client 2022-08-07 09:31:24 +02:00
Sébastien Helleu 4fa278c2c3 doc: update German auto-generated file 2022-08-05 22:34:40 +02:00
Nils Görs 0edae0d93d Merge branch 'master' of https://github.com/weechat/weechat 2022-08-05 09:49:59 +02:00
Nils Görs fbc2e86d0e core: update German translations 2022-08-05 09:49:27 +02:00
Sébastien Helleu 06622b5acb doc: update German auto-generated file 2022-08-04 22:14:28 +02:00
Nils Görs 9bb903cbc8 core: update German translations 2022-08-04 12:46:04 +02:00
Sébastien Helleu e9b8c9b6aa ci: fix Ubuntu code name when applying Debian patch 2022-08-03 22:05:45 +02:00
Sébastien Helleu b0eb3c9347 ci: remove macOS 10.15, add macOS 12 in CI 2022-08-03 21:57:44 +02:00
Sébastien Helleu 2102ef742b core: update ChangeLog 2022-08-03 21:56:55 +02:00
Sébastien Helleu 5d51e7286c ci: remove tests on macOS 10.15 2022-08-03 21:52:47 +02:00
Sébastien Helleu fe892460ba tests: fix pylint errors 2022-08-03 21:51:51 +02:00
Sébastien Helleu 0bb7a34748 doc: fix pylint errors 2022-08-03 21:51:51 +02:00
Sébastien Helleu ee1efedbd7 ci: switch from Ubuntu 20.04 to 22.04 2022-08-03 21:51:51 +02:00
Emir SARI 492a68b3de Update Turkish translations
Fixes plural structure to comply with gettext Turkish specification.
2022-08-03 21:20:31 +02:00
Sébastien Helleu 2bd3d32f0d irc: mention how to remove capability in /help cap 2022-08-03 21:18:17 +02:00
Sébastien Helleu 6b28cc001f tests: fix _ast_num in script generator 2022-08-02 23:52:31 +02:00
Sébastien Helleu 23707a12ea tests: fix scripting API tests with Python 3.8 2022-08-02 21:35:33 +02:00
Sébastien Helleu a7364d055b tests: disable pylint errors in testapi.py 2022-08-02 21:21:07 +02:00
Sébastien Helleu 4d4a6f99f9 tests: add tests on hdata functions (scripting API) 2022-08-02 21:11:45 +02:00
Sébastien Helleu a4c73b9ae7 tests: fix assignment in tcl script generator 2022-08-02 20:55:59 +02:00
Sébastien Helleu 3bc0453cae tests: fix assignment in perl script generator 2022-08-02 20:55:36 +02:00
Sébastien Helleu 2ed281af02 tests: use double quotes instead of simple quotes in ruby script generator
This allows to use escaped chars in strings.
2022-08-02 20:54:35 +02:00
Sébastien Helleu 05abbac297 tests: add subscript in script generator 2022-08-02 20:52:40 +02:00
Sébastien Helleu 237c37e719 tests: fix unary op in script generator 2022-08-02 20:51:40 +02:00
Sébastien Helleu 39f2b2f7b9 ruby: fix function hdata_get_string 2022-08-02 20:50:48 +02:00
Sébastien Helleu 8f6395e889 guile: fix function hdata_get_string 2022-08-02 20:50:24 +02:00
Sébastien Helleu 53df45de48 php: fix function hdata_compare 2022-08-02 20:49:35 +02:00
Sébastien Helleu bcb8647aa4 scripts: fix issue with long interval in function hook_timer
Affected plugins: python, ruby, lua, tcl, guile, javascript, php.
2022-08-01 22:18:38 +02:00
Sébastien Helleu b1404b0277 scripts: fix issue with year ≥ 2038 in functions print_date_tags and print_y_date_tags
Affected plugins: python, lua, tcl, guile, javascript.
2022-08-01 21:03:44 +02:00
Sébastien Helleu 1514570ff0 scripts: fix issue with year ≥ 2038 in function infolist_new_var_time
Affected plugins: python, lua, tcl, guile, javascript.
2022-08-01 20:32:09 +02:00
Sébastien Helleu 2475ba43a3 javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time 2022-08-01 20:13:01 +02:00
Sébastien Helleu d2c2f9e6cd tests: fix run of Guile test script 2022-08-01 20:02:35 +02:00
Sébastien Helleu d8abdc57ee core: fix styles in ChangeLog 2022-07-31 09:59:18 +02:00
Sébastien Helleu e77ea9dc26 buflist: add variable "${hotlist_priority_number}" (integer version of "${hotlist_priority}") 2022-07-31 09:58:29 +02:00
Emir SARI 324f0aaa2d Update Turkish translations 2022-07-30 07:53:40 +02:00
Nils Görs ae273b2714 core: update German translations 2022-07-28 13:45:27 +02:00
Sébastien Helleu 06a05fd674 doc: update German auto-generated files 2022-07-27 22:07:50 +02:00
Sébastien Helleu a50143fdf8 irc: display an error message when using command /dcc without xfer plugin loaded 2022-07-27 22:07:24 +02:00
Sébastien Helleu 56b82fb115 xfer: fix crash when closing DCC chat buffer 2022-07-27 22:06:48 +02:00
Nils Görs 9b4f52ac13 core: update German translations 2022-07-26 13:45:37 +02:00
Sébastien Helleu 906ac1d1e1 relay: exit function relay_irc_recv if params can not be allocated 2022-07-24 23:02:09 +02:00
Sébastien Helleu 2a145d7cc1 core: remove dead assignments 2022-07-24 23:01:38 +02:00
Sébastien Helleu 68ad24f2df core: add option weechat.look.highlight_disable_regex and buffer property "highlight_disable_regex" (closes #1798) 2022-07-24 22:43:48 +02:00
Sébastien Helleu 1796634d83 core: use dynamic string in function gui_bar_item_get_value 2022-07-24 21:18:26 +02:00
Sébastien Helleu a37c46c21e doc: use non-breaking spaces before links to notes 2022-07-22 17:24:44 +02:00
Sébastien Helleu d43b9e99c1 doc/scripting: add missing fields "paramN" and "num_params" in output of "irc_message_parse"
These new fields were added in version 3.4 with major improvements of the IRC
message parser.
2022-07-22 17:06:49 +02:00
Sébastien Helleu d5c4342bce irc: fix display of TOPIC message with an empty trailing parameter 2022-07-21 11:16:50 +02:00
Sébastien Helleu 569c93c6fb irc: fix display of QUIT message with an empty trailing parameter (closes #1797)
The regression was introduced with the new way to parse IRC message parameters,
in version 3.4.
2022-07-21 11:10:29 +02:00
Sébastien Helleu 96ed471261 relay: fix parsing of IRC messages received from clients (closes #1796)
The IRC parser improved in version 3.4 is now used to parse command
parameters (variables "num_params" and "paramN" in output of parser function).
2022-07-21 10:20:10 +02:00
Sébastien Helleu 6b59fc8557 irc: use API function string_rebuild_split_string in irc_protocol_string_params 2022-07-20 13:20:07 +02:00
Sébastien Helleu b7441bd7a3 api: add arguments "index_start" and "index_end" in function string_rebuild_split_string 2022-07-20 13:16:35 +02:00
Sébastien Helleu 62e68f965f api: rename function string_build_with_split_string to string_rebuild_split_string 2022-07-20 12:14:40 +02:00
Sébastien Helleu 0440309cee irc: fix duplicated channels in autojoin option when autojoin_dynamic is enabled (closes #1795) 2022-07-16 14:05:48 +02:00
Sébastien Helleu e057c16b36 api: add info "uptime_current"
This info returns time duration between the start of the current WeeChat
process and now (so upgrades with /upgrade are ignored).
2022-07-10 13:02:35 +02:00
Sébastien Helleu c4cade3550 Version 3.7-dev 2022-07-10 09:41:57 +02:00
221 changed files with 14541 additions and 4965 deletions
+5 -5
View File
@@ -5,7 +5,7 @@ on:
- pull_request
env:
WEECHAT_DEPENDENCIES: devscripts equivs python3-pip libenchant-dev autopoint cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python2-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-2.2-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php8.0-dev libphp8.0-embed libargon2-dev libsodium-dev pylint python3-bandit asciidoctor ruby-pygments.rb
WEECHAT_DEPENDENCIES: devscripts equivs python3-pip autopoint cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python2-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-2.2-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php8.0-dev libphp8.0-embed libargon2-dev libsodium-dev pylint python3-bandit asciidoctor ruby-pygments.rb
jobs:
@@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
config:
- { name: "cmake_gcc", cc: "gcc", cxx: "g++", tool: "cmake", args: "" }
- { name: "cmake_gcc_ninja", cc: "gcc", cxx: "g++", tool: "cmake", args: "-G Ninja" }
@@ -89,8 +89,8 @@ jobs:
strategy:
matrix:
os:
- macos-12
- macos-11
- macos-10.15
config:
- { name: "cmake_gcc", cc: "gcc", cxx: "g++" }
- { name: "cmake_clang", cc: "clang", cxx: "clang++" }
@@ -133,7 +133,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
name: "Build Debian on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
@@ -153,7 +153,7 @@ jobs:
run: ./tools/build-debian.sh test-patches
- name: Build Debian packages
run: ./tools/build-debian.sh devel ubuntu/focal
run: ./tools/build-debian.sh devel ubuntu/jammy
- name: Install Debian packages
run: sudo dpkg -i ../weechat-devel*.deb
+2 -1
View File
@@ -151,6 +151,8 @@ endif()
add_definitions(-DHAVE_CONFIG_H)
include(FindPkgConfig)
include(CheckIncludeFiles)
include(CheckFunctionExists)
include(CheckSymbolExists)
@@ -198,7 +200,6 @@ list(APPEND EXTRA_LIBS gnutls)
find_package(ZLIB REQUIRED)
# Check for zstd
include(FindPkgConfig)
pkg_check_modules(LIBZSTD REQUIRED libzstd)
# Check for iconv
+75 -3
View File
@@ -15,6 +15,78 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
(file _ReleaseNotes.adoc_ in sources).
[[v3.7.1]]
== Version 3.7.1 (2022-10-21)
Bug fixes::
* trigger: execute trigger command on appropriate buffer for hooks command, command_run, line, modifier and print (issue #1841)
[[v3.7]]
== Version 3.7 (2022-10-09)
New features::
* core: add option `-save` in command `/upgrade` (issue #1630)
* core: add option weechat.look.highlight_disable_regex and buffer property "highlight_disable_regex" (issue #1798)
* core: sort filters by name (issue #1695)
* core: add key kbd:[Alt+Backspace] to delete previous word, change key kbd:[Ctrl+w] to delete previous word until whitespace (issue #559)
* api: rename function string_build_with_split_string to string_rebuild_split_string, add arguments "index_start" and "index_end"
* api: add info "uptime_current"
* api: add function crypto_hash_file
* api: add support of priority in function hook_line (issue #1821)
* api: add function string_parse_size
* api: add function file_compress
* buflist: add variable `${hotlist_priority_number}` (integer version of `${hotlist_priority}`)
* irc: display SETNAME command in channels and private buffers, add options irc.color.message_setname and irc.look.smart_filter_setname (issue #1805)
* irc: add option irc.look.display_pv_nick_change
* logger: add options to rotate and compress log files: logger.file.rotation_compression_level, logger.file.rotation_compression_type and logger.file.rotation_size_max (issue #314)
* spell: allow special dict value "-" to disable spell checking on a specific buffer (issue #1699)
* trigger: add elapsed time for trigger execution on monitor buffer when trigger debug is set, add option trigger.color.identifier (issue #1806)
* trigger: add variable `${tg_hook_type}` (issue #1765)
Bug fixes::
* core: fix wrong terminal title on terminal resize (issue #1702)
* core: fix page scroll in bare display (issue #1830)
* api: change type of argument remaining_calls in hook_timer callback from string to integer (in scripts)
* api: change type of argument object_id in upgrade_new callback from string to integer (in scripts)
* irc: fix duplicated channels in autojoin option when autojoin_dynamic is enabled (issue #1795)
* irc: fix display of TOPIC and QUIT messages with an empty trailing parameter (issue #1797)
* irc: fix parsing of messages with trailing spaces and no trailing parameter (issue #1803)
* irc: add missing tag "irc_numeric" in all numeric IRC commands (issue #1804)
* irc: display an error message when using command `/dcc` without xfer plugin loaded
* irc: display ACCOUNT and CHGHOST commands in private buffers
* irc: fix extract of isupport value when it is last in list and without value (issue #1807)
* irc: fix target buffer of generic errors when they contain a target nick (issue #1814)
* irc: fix display of message 350 (whois, gateway) (issue #1815)
* irc: replace chars "\01" by spaces in CTCP replies (issue #1819)
* irc: fix message when disconnecting from server in case of high lag when server option autoreconnect is off (issue #1708)
* irc: set local variable "filter" when doing `/server raw xxx` with raw buffer already opened (issue #1448)
* guile: fix function hdata_get_string
* javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time
* php: fix function hdata_compare
* relay: fix parsing of IRC messages received from clients (issue #1796)
* relay: fix refresh of relay buffer after `/upgrade`
* ruby: fix function hdata_get_string
* scripts: fix issue with year ≥ 2038 in functions infolist_new_var_time, print_date_tags and print_y_date_tags (plugins: python/lua/tcl/guile/javascript)
* scripts: fix issue with long interval in function hook_timer (plugins: python/ruby/lua/tcl/guile/javascript/php)
* trigger: fix error on monitor buffer creation when trigger debug is >= 1 and monitor buffer is closed
* trigger: escape arguments with double quotes in output of `/trigger input|output|recreate` (issue #190)
* xfer: fix crash when closing DCC chat buffer
* xfer: disconnect all active DCC chats and files on `/upgrade`
* xfer: fix refresh of xfer buffer after `/upgrade`
* xfer: fix DCC file receive on Termux (issue #1811)
Tests::
* core: switch from Ubuntu 20.04 to 22.04 in CI
* core: remove macOS 10.15, add macOS 12 in CI
* core: add tests on filter functions
* scripts: add tests on hdata functions
* scripts: fix run of Guile test script
* xfer: add tests on file functions
[[v3.6]]
== Version 3.6 (2022-07-10)
@@ -237,7 +309,7 @@ Bug fixes::
* core: set server name when connecting to server with TLS (SNI extension) only if it's not an IPV4/IPv6 (issue #1635)
* core: use function mallinfo2 instead of mallinfo when available (issue #1636)
* core: display a warning when the file with certificate authorities is not found (option weechat.network.gnutls_ca_file)
* core: evaluate left/right part of comparison after split on the comparison operator in ${if:xxx} (issue #1627)
* core: evaluate left/right part of comparison after split on the comparison operator in `${if:xxx}` (issue #1627)
* core: prevent switching to start of visited buffers when jumping to next (issue #1591, issue #1592)
* core: recreate buflist and fset bars on `/reload` when WeeChat is started without configuration files (issue #1618)
* buflist: fix comparison of hotlists in option buflist.look.sort (issue #1621)
@@ -646,7 +718,7 @@ New features::
* api: add functions string_base_encode and string_base_decode, remove functions string_encode_base64 and string_decode_base64
* api: add support of Time-based One-Time Password (TOTP), add infos "totp_generate" and "totp_validate"
* buflist: add default keys kbd:[Ctrl+F1]/kbd:[Ctrl+F2] to scroll up/down one page in buflist (same action as kbd:[F1]/kbd:[F2])
* buflist: add variable ${number2}, always set with the indented buffer number
* buflist: add variable `${number2}`, always set with the indented buffer number
* exec: add option exec.command.shell to customize the shell used with `/exec -sh`
* relay: add support of close frame in websocket connection (issue #1281)
* relay: add support of Time-based One-Time Password (TOTP) as second authentication factor in weechat protocol
@@ -793,7 +865,7 @@ New features::
* api: add hashtable with variables in plugin structure
* api: add time in info "date" (WeeChat compilation date/time) (issue #1138)
* irc: add server option "split_msg_max_length"
* irc: allow ${irc_server.xxx} and ${server} in server evaluated options (issue #1144)
* irc: allow `${irc_server.xxx}` and `${server}` in server evaluated options (issue #1144)
* logger: add option logger.file.fsync (issue #1145)
* logger: add option logger.look.backlog_conditions (issue #1132)
* script: change default value of option script.look.sort from "p,n" to "i,p,n"
+82 -2
View File
@@ -17,6 +17,79 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
(file _ChangeLog.adoc_ in sources).
[[v3.7.1]]
== Version 3.7.1 (2022-10-21)
Bug fix and maintenance release.
[[v3.7]]
== Version 3.7 (2022-10-09)
[[v3.7_upgrade_new_callback_object_id]]
=== Argument "object_id" in callback of upgrade_new
In all script languages (except PHP), the argument "object_id" sent to the
callback of "upgrade_new" is now an integer (it was a string in older releases).
To be compatible with all versions, it is recommended to convert the argument
to integer before testing it, for example in Python:
[source,python]
----
if int(object_id) == 1:
# ...
----
[[v3.7_hook_timer_callback_remaining_calls]]
=== Argument "remaining_calls" in callback of hook_timer
In all script languages (except PHP), the argument "remaining_calls" sent to the
callback of "hook_timer" is now an integer (it was a string in older releases).
To be compatible with all versions, it is recommended to convert the argument
to integer before testing it, for example in Python:
[source,python]
----
if int(remaining_calls) > 0:
# ...
----
[[v3.7_delete_previous_word_whitespace]]
=== Delete previous word until whitespace
A new parameter `delete_previous_word_whitespace` has been added in `/input`
command to delete previous word until backspace. +
This is now bound by default to the key kbd:[Ctrl+w] (see issue #559).
A new key kbd:[Alt+Backspace] has been added to delete word, like kbd:[Ctrl+w]
did in previous releases.
You can get the new behavior for kbd:[Ctrl+w] with this command:
----
/key bind ctrl-W /input delete_previous_word_whitespace
----
And add the new key kbd:[Alt+Backspace] with this command:
----
/key missing
----
[[v3.7_api_string_rebuild_split_string]]
=== Function string_rebuild_split_string
The API function string_build_with_split_string has been renamed to
link:https://weechat.org/doc/plugin/#_string_rebuild_split_string[string_rebuild_split_string]
and two new arguments have been added: _index_start_ and _index_end_.
To stay compatible, the existing calls to the function must be done with the
new function name and these values:
* _index_start_: `0`
* _index_end_: `-1`
[[v3.6]]
== Version 3.6 (2022-07-10)
@@ -1766,9 +1839,16 @@ between your current keys and WeeChat default keys.
=== Function hook_print
In scripts, the arguments "displayed" and "highlight" sent to the callback of
"hook_print" are now integers (they were strings in older releases). +
"hook_print" are now integers (they were strings in older releases).
To be compatible with all versions, it is recommended to convert the argument
to integer before testing it, for example in Python: `if int(highlight):`.
to integer before testing it, for example in Python:
[source,python]
----
if int(highlight):
# ...
----
[[v0.4.3]]
== Version 0.4.3 (2014-02-09)
-2
View File
@@ -28,8 +28,6 @@
# PYTHON_LIBRARIES = path to where libpython.so* can be found
# PYTHON_LDFLAGS = python compiler options for linking
include(FindPkgConfig)
if(ENABLE_PYTHON2)
pkg_check_modules(PYTHON python2 IMPORTED_TARGET GLOBAL)
else()
+7
View File
@@ -1,3 +1,10 @@
weechat (3.6-1) unstable; urgency=medium
* New upstream release
* Bump Standards-Version to 4.6.1.0
-- Emmanuel Bouthenot <kolter@debian.org> Sat, 23 Jul 2022 09:56:24 +0000
weechat (3.5-1) unstable; urgency=medium
* New upstream release
+1 -1
View File
@@ -22,7 +22,7 @@ Build-Depends:
libgnutls28-dev,
libzstd-dev,
zlib1g-dev
Standards-Version: 4.6.0.1
Standards-Version: 4.6.1.0
Homepage: https://weechat.org/
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
Vcs-Browser: https://salsa.debian.org/kolter/weechat
@@ -631,6 +631,8 @@ _text_search_input_   (string) +
_highlight_words_   (string) +
_highlight_regex_   (string) +
_highlight_regex_compiled_   (pointer) +
_highlight_disable_regex_   (string) +
_highlight_disable_regex_compiled_   (pointer) +
_highlight_tags_restrict_   (string) +
_highlight_tags_restrict_count_   (integer) +
_highlight_tags_restrict_array_   (pointer, array_size: "highlight_tags_restrict_count") +
@@ -128,6 +128,8 @@
| weechat | uptime | Laufzeit von WeeChat (Format: "days:hh:mm:ss") | "days" (Anzahl der Tage) oder "seconds" (Anzahl der Sekunden) (optional)
| weechat | uptime_current | WeeChat-Betriebszeit für den aktuellen Prozess (Upgrades mit /upgrade Befehlwerden ignoriert) (Format: "Tage:hh:mm:ss") | "days" (Anzahl der Tage) oder "seconds" (Anzahl der Sekunden) (optional)
| weechat | version | WeeChat-Version | -
| weechat | version_git | WeeChat Git Version (Ausgabe des Befehls "git describe", ausschließlich für eine Entwicklerversion. Eine stabile Version gibt keine Information zurück) | -
@@ -6,7 +6,7 @@
// tag::url_options[]
[width="100%",cols="2,^1,7",options="header"]
|===
| Einstellung | Type ^(1)^ | Konstanten ^(2)^
| Einstellung | Type ^(1)^ | Konstanten ^(2)^
| verbose | long |
+28 -11
View File
@@ -187,8 +187,14 @@ Fähigkeiten die von WeeChat unterstützt werden: account-notify, away-notify, c
Fähigkeiten die standardmäßig genutzt werden sollen, können mit der Option irc.server_default.capabilities gesetzt werden (oder individuell für jeden Server mit der Option irc.server.xxx.capabilities).
Beispiele:
/cap
/cap req multi-prefix away-notify
zeigt unterstützte und aktivierte Funktionen an:
/cap
Fähigkeiten multi-prefix und away-notify anfordern:
/cap req multi-prefix away-notify
Fähigkeit extended-join anfordern, Fähigkeit multi-prefix entfernen:
/cap req extended-join -multi-prefix
Fähigkeit away-notify entfernen
/cap req -away-notify
----
[[command_irc_connect]]
@@ -1608,6 +1614,7 @@ Auflistung der möglichen Aktionen:
delete_previous_char: entfernt vorheriges Zeichen
delete_next_char: entfernt nächstes Zeichen
delete_previous_word: entfernt vorheriges Wort
delete_previous_word_whitespace: vorheriges Wort löschen (bis zum Leerzeichen)
delete_next_word: entfernt nächstes Wort
delete_beginning_of_line: entfernt alle Zeichen ab Zeilenanfang bis zum Cursor
delete_end_of_line: entfernt alle Zeichen ab Cursor bis zum Ende der Zeile
@@ -2116,20 +2123,23 @@ Beispiele:
----
[[command_weechat_upgrade]]
* `+upgrade+`: WeeChat Binärdatei neu laden, ohne die Verbindung zum Server zu trennen
* `+upgrade+`: Speichern der WeeChat-Sitzung und laden der WeeChat-Binärdatei, ohne die Verbindung zu Servern zu trennen
----
/upgrade [-yes] [<path_to_binary>|-quit]
/upgrade [-yes] [<path_to_binary>|-save|-quit]
-yes: wird benötigt, sobald Option "weechat.look.confirm_upgrade" aktiviert ist
path_to_binary: Pfad zu einer ausführbaren WeeChat Binärdatei (Standardeinstellung ist die aktuell ausführbare Datei)
-dummy: ohne Funktion (dient lediglich dazu, um nicht versehentlich die "-quit" Funktion auszuführen)
-save: speichert nur die aktuelle Sitzung, WeeChat wird nicht beendet oder neu gestartet. DieKonfigurationsdateien werden hierbei nicht gespeichert (falls dies gewünscht wird, nutze vorher /save)
-quit: trennt *ALLE* Verbindungen, speichert die aktuelle Sitzung und beendet WeeChat, um den aktuellen Zustand später wiederherstellen (siehe unten)
Dieser Befehl führt ein Upgrade von WeeChat durch und startet die laufende Sitzung neu. Bevor dieser Befehl ausgeführt wird, sollte eine neue Version von WeeChat entweder vorab kompiliert, oder mit einem Paketmanager installiert worden sein.
Hinweis: SSL Verbindungen werden während eines Upgrades unterbrochen, da diese Verbindungen zur Zeit nicht mit GnuTLS gehalten werden können. Nach einem erfolgten Upgrade findet eine automatische Verbindung zu diesen Servern statt.
Wichtig: Die Verwendung der Option -save kann gefährlich sein. Für ein Standard-Upgrade oder einen Neustart wird empfohlen, nur den /upgrade (oder mit -quit) Befehl zu nutzen.Mit der Option -save kann eine Sitzung regelmäßig gespeichert und dann wiederhergestellt werden,falls Weechat abnormal beendet wird (Stromausfall, Absturz etc.)
Der Upgrade Vorgang besteht aus vier Schritten:
1. Sicherung der Sitzung, in Dateien für Core und Erweiterungen (buffers, history, ..)
2. alle Erweiterungen werden ausgeschaltet (Konfigurationen *.conf werden gesichert)
@@ -2142,9 +2152,13 @@ Nutzt man die "-quit" Funktion ist die Abfolge geringfügig anders:
3. alle Erweiterungen werden ausgeschaltet
4. die WeeChat Konfiguration wird gesichert
5. WeeChat wird beendet
Die Sitzung kann zu einem späteren Zeitpunkt wiederhergestellt werden: weechat --upgrade
WICHTIG: Die Sitzung muss mit exakt den selben Konfigurationsdateien wiederhergestellt werden (*.conf)
Es ist möglich, die WeeChat-Sitzung auf einem anderen Computer wiederherzustellen, wenn Sie den Inhalt der WeeChat Verzeichnisse kopieren (siehe / debug dirs).
Mit der Option "-save" ist der Ablauf:
1. Die Sitzung wird in Dateien (*.upgrade) gesichert, allerdings mit dem Status das IRC und Client Verbindungen unterbrochen sind (es findet aber keine Trennung der Verbindung statt!)
Durch nutzen von -quit oder -save kann eine Sitzung zu einem späteren Zeitpunkt wiederhergestellt werden:weechat --upgrade
WICHTIG: Die Sitzung muss mit exakt den selben Konfigurationsdateien wiederhergestellt werden (*.conf) und wenn möglich mit der selben Version von WeeChat (oder einer neueren Version).
Es ist möglich, die WeeChat-Sitzung auf einem anderen Computer wiederherzustellen, wenn Sie den Inhalt der WeeChat Verzeichnisse kopieren (siehe /debug dirs).
----
[[command_weechat_uptime]]
@@ -2328,6 +2342,7 @@ Die folgenden Variablen können in den obigen Optionen genutzt werden:
- ${format_hotlist}: die formatierte Hotlist (evaluiert aus Option buflist.format.hotlist)
- ${hotlist}: die Hotlist in der Rohform
- ${hotlist_priority}: "none", "low", "message", "private" oder "highlight"
- ${hotlist_priority_number}: -1 = keine, 0 = niedrig, 1 = Nachricht, 2 = private, 3 = Hervorhebungen
- ${format_lag}: die Verzögerung für einen IRC Server-Buffer, ist leer falls es keine Verzögerung gibt (evaluiert aus Option buflist.format.lag)
- ${format_tls_version}: Indikator der TLS Version für den Serverbuffer, Channels bleiben unberührt (evaluiert aus Option buflist.format.tls_version)
----
@@ -3049,7 +3064,7 @@ Beispiele:
----
/spell enable|disable|toggle
listdict
setdict <dict>[,<dict>...]
setdict -|<dict>[,<dict>...]
deldict
addword [<dict>] <word>
@@ -3057,7 +3072,7 @@ Beispiele:
disable: Rechtschreibprüfung wird deaktiviert
toggle: Funktionalität der Rechtschreibprüfung umschalten
listdict: die, auf dem System, installierten Wörterbücher werden aufgelistet
setdict: Wörterbuch für den aktuellen Buffer einstellen (mehrere Wörterbücher müssen durch Kommata getrennt werden)
setdict: Wörterbuch für den aktuellen Buffer einstellen (mehrere Wörterbücher müssen durch Kommata getrennt werden (spezieller Wert "-" deaktiviert die Rechtschreibprüfung für den aktuellen Buffer))
deldict: Wörterbuch für den aktuellen Buffer entfernen
addword: fügt ein Wort in das persönliche Wörterbuch hinzu
@@ -3165,7 +3180,7 @@ post_action: Aktion welche nach der Abarbeitung des Triggers ausgeführt werden
restart: startet Trigger neu (Hook(s) werden neu erstellt)
show: zeigt detaillierte Informationen zu einem Trigger (inklusive einer kleinen Statistik)
del: entfernt einen Trigger
-all: führt eine Aktion aus, die alle Trigger beinhaltet
-all: führt eine Aktion aus, die alle Trigger betrifft
restore: stellt Trigger mit Standardwerten wieder her (funktioniert nur bei vorgegebenen Triggern)
default: stellt die standardmäßigen Trigger wieder her
monitor: öffnet den Trigger Monitor-Buffer, mit optionaler Filterfunktion:
@@ -3179,13 +3194,15 @@ Wenn ein Trigger-Callback aufgerufen wird, dann wird folgende Befehlskette ausge
5. Aktion welche nach der Abarbeitung des Triggers ausgeführt werden soll
Beispiele (die standardmäßig verfügbaren Trigger kann man sich mit "/trigger listdefault" anzeigen lassen):
fügt einer Nachricht die Textattribute *fett*, _unterstrichen_ und /kursiv/ hinzu:
fügt einer Nachricht die Textattribute *fett*, _unterstrichen_ und /kursiv/ hinzu (nur in User-Nachrichten):
/trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/"
verbirgt die Nicklist auf kleineren Terminals:
/trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist"
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
speichert die Konfiguration jede Stunde ab:
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
speichert, ohne Ausgabe von Text, eine Weechat-Sitzung um Mitternach (siehe /help upgrade):
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
öffnet den Trigger Monitor und zeigt ausschließlich modifier und Trigger an, die mit "resize" im Namen beginnen:
/trigger monitor @modifier,resize*
----
+51 -3
View File
@@ -750,6 +750,12 @@
** Werte: beliebige Zeichenkette
** Standardwert: `+""+`
* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
** Beschreibung: pass:none[Erweiterter regulärer POSIX-Ausdruck, der verwendet wird, um jede Hervorhebung von einer Nachricht zu verhindern: Diese Option hat eine höhere Priorität als andere Hervorhebungsoptionen (sofern die Zeichenkette in der Nachricht gefunden wird, die Hervorhebung deaktiviert ist und die andereOptionen ignoriert werden), bei regulären Ausdrücken wird die Groß-/Kleinschreibung nicht beachtet (verwenden Sie "(?-i)" am Anfang, um Groß- und Kleinschreibung zu beachten), Beispiele: "<flash.*>", "(?-i)<Flash.*>"]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+""+`
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** Beschreibung: pass:none[Suchmuster (erweiterter regulärer POSIX Ausdruck) welches genutzt werden soll, um zu überprüfen ob eine Nachricht ein Highlight enthält oder nicht. Mindestens eine Zeichenkette muss dabei auf das Suchmuster passen (alphanumerisch, "-", "_" oder "|"). Das Suchmuster unterscheidet dabei nicht zwischen Groß-und Kleinschreibung (um zwischen Groß-und Kleinschreibung zu unterscheiden muss am Wortanfang "(?-i)" genutzt werden). Beispiele: "flashcode|flashy", "(?-i)FlashCode|flashy"]
** Typ: Zeichenkette
@@ -1397,7 +1403,7 @@
** Standardwert: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** Beschreibung: pass:none[speichert automatisch den Inhalt eines Buffers in eine Datei (sofern das Protokollieren für den Buffer nicht deaktiviert sein sollte)]
** Beschreibung: pass:none[speichert automatisch den Inhalt eines Buffers in eine Datei (sofern das Protokollieren für den Buffer nicht deaktiviert sein sollte); Falls deaktiviert, wird die Protokollierung für alle Buffer deaktiviert]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
@@ -1462,6 +1468,24 @@
** Werte: beliebige Zeichenkette
** Standardwert: `+"_"+`
* [[option_logger.file.rotation_compression_level]] *logger.file.rotation_compression_level*
** Beschreibung: pass:none[Komprimierungsstufe für rotierende Protokolldateien (mit Dateierweiterung „.1“, „.2“,etc.), falls die Option logger.file.rotation_compression_type aktiviert ist: 1 = niedrigeKomprimierung / schnell ... 100 = beste Komprimierung / langsam; Der Wert des Prozentsatzes wird umgewandelt in 1-9 für gzip und 1-19 für zstd; der Standardwert wird hierbeiempfohlen, denn er bietet einen guten Kompromiss zwischen Komprimierung und Geschwindigkeit]
** Typ: integer
** Werte: 1 .. 100
** Standardwert: `+20+`
* [[option_logger.file.rotation_compression_type]] *logger.file.rotation_compression_type*
** Beschreibung: pass:none[Komprimierungstyp für rotierende Protokolldateien; wenn "none" genutzt wird, findet keine Komprimierung der Protokolldateien statt; WARNUNG: wenn die Rotation mit einer anderen Stufe der Komprimierung (oder gar keiner Komprimierung) aktiviert wurde, muss zuerst die Logger-Erweiterung beendet werden., dann de-komprimieren Sie die Dateien mit dem neuen Typ, danach muss die Option in der Datei logger.conf angepasst werden, bevor die Logger-Erweiterung neu geladen wird]
** Typ: integer
** Werte: none, gzip, zstd
** Standardwert: `+none+`
* [[option_logger.file.rotation_size_max]] *logger.file.rotation_size_max*
** Beschreibung: pass:none[Wenn diese Größe erreicht ist, wird eine Rotation der Protokolldateien durchgeführt: dievorhandene rotierte Protokolldateien werden umbenannt (.1 wird zu .2, .2 wird zu .3 usw.).Die aktuelle Datei erhält wird umbenannt und erhält .1 als Erweiterung; eine ganze Zahl mitSuffix ist erlaubt: b = Bytes (Standard, wenn keine Einheit angegeben ist), k = Kilobytes, m =Megabyte, g = Gigabyte, t = Terabyte; Beispiel: "2g" bewirkt eine Rotationsobald die Dateigröße > 2.000.000.000 Byte ist; wenn auf „0“ gesetzt, erfolgt keine Rotationder Dateien (unbegrenzte Protokollgröße); WARNUNG: Bevor Sie diese Option ändern,sollte sie zuerst den Komprimierungstyp über die Option logger.file festlegen.rotation_compression_type]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"0"+`
* [[option_logger.file.time_format]] *logger.file.time_format*
** Beschreibung: pass:none[Zeitstempel in Protokoll-Datei nutzen (siehe man strftime, welche Platzhalter für das Datum und die Uhrzeit verwendet werden)]
** Typ: Zeichenkette
@@ -1544,6 +1568,12 @@
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
** Standardwert: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** Beschreibung: pass:none[Textfarbe für Trigger-Kontextkennung im Monitorbuffer]
** Typ: Farbe
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
** Standardwert: `+cyan+`
* [[option_trigger.color.regex]] *trigger.color.regex*
** Beschreibung: pass:none[Textfarbe für reguläre Ausdrücke]
** Typ: Farbe
@@ -1771,7 +1801,7 @@
** Standardwert: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** Beschreibung: pass:none[buflist aktivieren]
** Beschreibung: pass:none[Buflist aktivieren; Es wird empfohlen, diese Option zu verwenden, anstatt nur die Bar zu verstecken, da hiermit auch interne Hooks entfernt werden, die nicht benötigt werden, falls die Leiste ausgeblendet wird; Sie können auch den Befehl "/buflist toggle" verwenden oder die Standardtastenbelegung alt+shift+b]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
@@ -2127,7 +2157,7 @@
** Standardwert: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** Beschreibung: pass:none[Textfarbe in der chghost Nachrichten dargestellt werden]
** Beschreibung: pass:none[Textfarbe in der "chghost" Nachrichten dargestellt werden]
** Typ: Farbe
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
** Standardwert: `+brown+`
@@ -2150,6 +2180,12 @@
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
** Standardwert: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** Beschreibung: pass:none[Textfarbe in der "setname" Nachrichten dargestellt werden]
** Typ: Farbe
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
** Standardwert: `+brown+`
* [[option_irc.color.mirc_remap]] *irc.color.mirc_remap*
** Beschreibung: pass:none[ersetzt mirc Farben in Nachrichten mittels einer Hashtabelle: Schlüssel sind "fg,bg" als Ganzzahl zwischen -1 (nicht näher bezeichnet) und 15. Als Wert ist der Farbname oder die Farbnummer von WeeChat möglich (Format: "1,-1:Farbe1;2,7:Farbe2"), Beispiel: "1,-1:darkgray;1,2:white,blue" ersetzt schwarz durch "darkgray" und schwarz auf blau durch "white,blue"; Tabelle der Standard-IRC-Farben von WeeChat (in Klammern der Farbname, wie er von WeeChat genutzt wird): 0=weiß (white), 1=schwarz (black), 2=blau (blue), 3=grün (green), 4=hellrot (lightred), 5=rot (red), 6=violett (magenta), 7=braun (brown), 8=gelb (yellow), 9= hell-grün (lightgreen), 10=türkis (cyan), 11=hell-türkis (lightcyan), 12=hellblau (lightblue), 13=hell-violett (lightmagenta), 14=dunkel-grau (darkgray), 15=grau (gray)]
** Typ: Zeichenkette
@@ -2330,6 +2366,12 @@
** Werte: on, off
** Standardwert: `+on+`
* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change*
** Beschreibung: pass:none[Nickänderung im privaten Buffer anzeigen]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
* [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address*
** Beschreibung: pass:none[zeigt eine Warnung in einem privaten Buffer an, sobald sich die Adresse eines Remote-Nick geändert hat; diese Option ist standardmäßig ausgeschaltet, da Server wie bitlbee eine solche Warnung unvermittelt auslösen (die Adresse des Remote-Nick ändert sich während eines Login mehrfach)]
** Typ: boolesch
@@ -2546,6 +2588,12 @@
** Werte: on, off
** Standardwert: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** Beschreibung: pass:none[aktiviert einen intelligenten Filter für "setname" Nachrichten]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
* [[option_irc.look.temporary_servers]] *irc.look.temporary_servers*
** Beschreibung: pass:none[aktiviert die Erstellung von temporären Servern mit dem Befehl /connect]
** Typ: boolesch
+13 -1
View File
@@ -589,6 +589,7 @@ Liste der Skript API Funktionen:
string_has_highlight_regex +
string_mask_to_regex +
string_format_size +
string_parse_size +
string_color_code_size +
string_remove_color +
string_is_command_char +
@@ -1334,7 +1335,7 @@ Das Ergebnis ist eine Hashtabelle mit folgenden Schlüsseln
[width="100%",cols="3,^2,10,7",options="header"]
|===
| Schlüssel | Seit WeeChat ^(1)^ | Beschreibung | Beispiel
| Schlüssel | Seit WeeChat ^(1)^ | Beschreibung | Beispiel
| Tags | 0.4.0
| Tags in der Nachricht (kann leer sein).
@@ -1376,6 +1377,14 @@ Das Ergebnis ist eine Hashtabelle mit folgenden Schlüsseln
| der Text (zum Beispiel eine Nachricht eines Users).
| `+hello!+`
| paramN | 3.4
| Befehlsparameter (von 1 bis N).
| `+#weechat+`
| num_params | 3.4
| Anzahl der Befehlsparameter.
| `+2+`
| pos_command | 1.3
| Index von _command_ innerhalb einer Nachricht ("-1" falls _command_ nicht gefunden wird).
| `+47+`
@@ -1414,6 +1423,9 @@ dict = weechat.info_get_hashtable(
# "channel": "#weechat",
# "arguments": "#weechat :hello!",
# "text": "hello!",
# "param1": "#weechat",
# "param2": "hello!",
# "num_params": "2",
# "pos_command": "65",
# "pos_arguments": "73",
# "pos_channel": "73",
+162 -65
View File
@@ -114,16 +114,38 @@ WeeChat *erforderlich* sind:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Paket ^(1)^ | Version | Funktion
| C compiler (gcc / clang) | | zum Erstellen der Binärdatei.
| cmake | ≥ 3.0 | zum kompilieren (autotools ist möglich. CMake wird aber empfohlen).
| pkg-config | | entdeckt installierte Bibliotheken.
| libncursesw5-dev ^(2)^ | | Ncurses Oberfläche.
| libcurl4-gnutls-dev | | URL Transfer.
| libgcrypt20-dev | | Geschützte Daten, IRC SASL Authentifikation.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | SSL Verbindung zu einem IRC Server, Unterstützung von SSL in der Relay-Erweiterung, IRC SASL Authentifikation (ECDSA-NIST256P-CHALLENGE).
| zlib1g-dev | | Kompression von Nachrichten (WeeChat -> client) mit https://zlib.net/[zlib ^↗^,window=_blank] in relay Erweitertungen (weechat Protokoll), Skript-Erweiterung übertragen werden.
| libzstd-dev | | Kompression von Nachrichten (WeeChat -> client) mit https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] in relay Erweiterung (weechat Protokoll).
| Paket ^(1)^ | Version | Funktionen
| C compiler (gcc / clang) |
| zum Erstellen der Binärdatei.
| cmake | ≥ 3.0
| zum kompilieren (autotools ist möglich. CMake wird aber empfohlen).
| pkg-config |
| entdeckt installierte Bibliotheken.
| libncursesw5-dev ^(2)^ |
| Ncurses Oberfläche.
| libcurl4-gnutls-dev |
| URL Transfer.
| libgcrypt20-dev |
| Geschützte Daten, IRC SASL Authentifikation.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^
| IRC-Erweiterung: Unterstützung von TLS Verbindungen, IRC SASL Authentifikation (ECDSA-NIST256P-CHALLENGE). +
Relay-Erweiterung: Untersützung von TLS Verbindungen.
| zlib1g-dev |
| Logger-Erweitertung: Kompression von rotierenden Protokolldateien (gzip). +
Relay-Erweiterung: Kompression von Nachrichten (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] (weechat protocol). +
Script-Erweiterung: Lesen der Repository-Indexdatei (gzip).
| libzstd-dev | ≥ 0.8.1
| Logger-Erweiterung: Kompression von rotierenden Protokolldateien. +
Relay-Erweiterung: Kompression von Nachrichten (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] (weechat protocol).
|===
[NOTE]
@@ -141,12 +163,12 @@ WeeChat optional sind:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Paket ^(1)^ | Version | Funktion
| Paket ^(1)^ | Version | Funktionen
| {cpp} compiler (pass:[g++ / clang++]) | | zum Erstellen der Binärdatei und um Test auszuführen, JavaScript Erweiterung.
| gettext | | Internationalisierung (Übersetzung der Mitteilungen; Hauptsprache ist englisch).
| ca-certificates | | Zertifikate für SSL Verbindungen.
| libaspell-dev / libenchant-dev | | Spell Erweiterung.
| python3-dev ^(2)^ | | Python Erweiterung.
| python3-dev ^(2)^ | | Python Erweiterung.
| libperl-dev | | Perl Erweiterung.
| ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby Erweiterung.
| liblua5.4-dev | | Lua Erweiterung.
@@ -740,26 +762,26 @@ Es gibt folgende WeeChat Verzeichnisse:
[width="100%",cols="1m,3",options="header"]
|===
| Pfad ^(1)^ | Beschreibung
| Pfad ^(1)^ | Beschreibung
| ~/.config/weechat/ | WeeChat Konfigurationsdateien: `*.conf`, Zertifikate, etc.
| ~/.local/share/weechat/ | WeeChat Daten: Protokolldateien, Skripts, Skriptdaten, xfer-Daten, etc.
|    logs/ | Logdateien (eine Datei pro Buffer).
|    python/ | Python-Skripten.
|       autoload/ | Python-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|       autoload/ | Python-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|    perl/ | Perl-Skripten.
|       autoload/ | Perl-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|       autoload/ | Perl-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|    ruby/ | Ruby-Skripten.
|       autoload/ | Ruby-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|       autoload/ | Ruby-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|    lua/ | Lua-Skripten.
|       autoload/ | Lua-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|       autoload/ | Lua-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|    tcl/ | Tcl-Skripten.
|       autoload/ | Tcl-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|       autoload/ | Tcl-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|    guile/ | Guile-Skripten.
|       autoload/ | Guile-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|       autoload/ | Guile-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|    javascript/ | JavaScript-Skripten.
|       autoload/ | JavaScript-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|       autoload/ | JavaScript-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|    php/ | PHP-Skripten.
|       autoload/ | PHP-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
|       autoload/ | PHP-Skripten die beim Start automatisch ausgeführt werden ^(2)^.
| ~/.cache/weechat/ | WeeChat Cache-Dateien: Skriptcache.
| /run/user/1000/weechat/ | WeeChat Laufzeitdateien: FIFO-Pipe, Relay UNIX sockets.
|===
@@ -1292,10 +1314,10 @@ Tags die häufig verwendet werden (keine vollständige Auflistung):
| no_highlight | die Zeile kann nicht gehiglighted werden.
| no_log | Zeile wird nicht in die Log-Datei geschrieben.
| log0 … log9 | Grad der Protokollierung (siehe `/help logger`).
| notify_none | Diese Zeile wird erzeugt keinen Hotlist-Eintrag. ^(1)^
| notify_message | Diese Zeile ist eine User Nachricht. ^(1)^
| notify_private | Diese Zeile ist eine private Nachricht. ^(1)^
| notify_highlight | Diese Zeile beinhaltet eine Highlight Nachricht. ^(1)^
| notify_none | Diese Zeile wird erzeugt keinen Hotlist-Eintrag. ^(1)^
| notify_message | Diese Zeile ist eine User Nachricht. ^(1)^
| notify_private | Diese Zeile ist eine private Nachricht. ^(1)^
| notify_highlight | Diese Zeile beinhaltet eine Highlight Nachricht. ^(1)^
| self_msg | eigene Nachricht.
| nick_xxx | Nachricht ist vom Nick "xxx".
| prefix_nick_ccc | Präfix für den Nick mit der Farbe "ccc".
@@ -1512,27 +1534,28 @@ Sie können mit dem Befehl <<command_weechat_key,/key>> geändert und neue hinzu
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| Taste | Beschreibung | Befehl
| Taste | Beschreibung | Befehl
| kbd:[Del] +
kbd:[Ctrl+d] | entfernt in der Befehlszeile das nächste Zeichen. | `+/input delete_next_char+`
kbd:[Ctrl+d] | entfernt in der Befehlszeile das nächste Zeichen. | `+/input delete_next_char+`
| kbd:[Backspace] +
kbd:[Ctrl+h] | entfernt in der Befehlszeile das vorherige Zeichen. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | entfernt alle Zeichen vom Cursor bis zum Ende der Zeile (die Zeichenkette wird dabei in die interne Zwischenablage kopiert). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Zeichen austauschen. | `+/input transpose_chars+`
| kbd:[Ctrl+u] | entfernt alle Zeichen vom Cursor bis zum Anfang der Zeile (die Zeichenkette wird dabei in die interne Zwischenablage kopiert). | `+/input delete_beginning_of_line+`
| kbd:[Ctrl+w] | entfernt das Wort links vom Cursor (die Zeichenkette wird dabei in die interne Zwischenablage kopiert). | `+/input delete_previous_word+`
| kbd:[Ctrl+y] | fügt den Inhalt der internen Zwischenablage ein. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Rückgängig machen der letzten Aktion, in der Befehlszeile. | `+/input undo+`
| kbd:[Alt+_] | Wiederherstellen der letzten Aktion, in der Befehlszeile. | `+/input redo+`
| kbd:[Tab] | Vervollständigung von Befehlen oder Nicks (nochmaliges kbd:[Tab]: findet nächste Vervollständigung). | `+/input complete_next+`
| kbd:[Shift+Tab] | ohne Vervollständigung: führt eine teilweise Vervollständigung durch. Bei unerledigter Vervollständigung : wird die vorherige Vervollständigung genutzt. | `+/input complete_previous+`
kbd:[Ctrl+h] | entfernt in der Befehlszeile das vorherige Zeichen. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | entfernt alle Zeichen vom Cursor bis zum Ende der Zeile (die Zeichenkette wird dabei in die interne Zwischenablage kopiert). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Zeichen austauschen. | `+/input transpose_chars+`
| kbd:[Ctrl+u] | entfernt alle Zeichen vom Cursor bis zum Anfang der Zeile (die Zeichenkette wird dabei in die interne Zwischenablage kopiert). | `+/input delete_beginning_of_line+`
| kbd:[Alt+Backspace] | entfernt das Wort links vom Cursor (die Zeichenkette wird dabei in die interne Zwischenablage kopiert). | `+/input delete_previous_word+`
| kbd:[Ctrl+w] | Vorheriges Wort der Befehlszeile löschen bis zum Leerzeichen (gelöschte Zeichenfolge wird in die interne Zwischenablage kopiert). | `+/input delete_previous_word_whitespace+`
| kbd:[Ctrl+y] | fügt den Inhalt der internen Zwischenablage ein. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Rückgängig machen der letzten Aktion, in der Befehlszeile. | `+/input undo+`
| kbd:[Alt+_] | Wiederherstellen der letzten Aktion, in der Befehlszeile. | `+/input redo+`
| kbd:[Tab] | Vervollständigung von Befehlen oder Nicks (nochmaliges kbd:[Tab]: findet nächste Vervollständigung). | `+/input complete_next+`
| kbd:[Shift+Tab] | ohne Vervollständigung: führt eine teilweise Vervollständigung durch. Bei unerledigter Vervollständigung : wird die vorherige Vervollständigung genutzt. | `+/input complete_previous+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | führt einen Befehl aus oder sendet den Text (im Such-Modus: stoppt Suche). | `+/input return+`
| kbd:[Alt+Enter] | Zeilenvorschub einfügen. | `+/input insert \n+`
| kbd:[Alt+d] | löscht das Wort rechts vom Cursor (die Zeichenkette wird dabei in die interne Zwischenablage kopiert). | `+/input delete_next_word+`
| kbd:[Alt+k] | zeigt den Tastencode, einschließlich des eingebundenen Befehls, einer Tastenkombination an und fügt diesen in die Befehlszeile ein. | `+/input grab_key_command+`
| kbd:[Alt+r] | komplette Eingabezeile lösche.n| `+/input delete_line+`
kbd:[Ctrl+m] | führt einen Befehl aus oder sendet den Text (im Such-Modus: stoppt Suche). | `+/input return+`
| kbd:[Alt+Enter] | Zeilenvorschub einfügen. | `+/input insert \n+`
| kbd:[Alt+d] | löscht das Wort rechts vom Cursor (die Zeichenkette wird dabei in die interne Zwischenablage kopiert). | `+/input delete_next_word+`
| kbd:[Alt+k] | zeigt den Tastencode, einschließlich des eingebundenen Befehls, einer Tastenkombination an und fügt diesen in die Befehlszeile ein. | `+/input grab_key_command+`
| kbd:[Alt+r] | komplette Eingabezeile lösche.n| `+/input delete_line+`
|===
[[key_bindings_cmdline_color_codes]]
@@ -1724,7 +1747,7 @@ wurde (Befehl: `+/mouse toggle+`).
[width="100%",cols="^.^3,^.^3,^.^3,.^8,.^8",options="header"]
|===
| Maustaste/Mausrad ^(1)^ | Mausgeste | Bereich | Beschreibung | Befehl
| Maustaste/Mausrad ^(1)^ | Mausgeste | Bereich | Beschreibung | Befehl
| ◾◽◽ | - | Chat | wechselt zum Fenster. | `+/window ${_window_number}+`
| ◾◽◽ | links | Chat | zum vorherigen Buffer springen. | `+/window ${_window_number};/buffer +1+`
| ◾◽◽ | rechts | Chat | zum nächsten Buffer springen. | `+/window ${_window_number};/buffer +1+`
@@ -1776,7 +1799,7 @@ Diese Tasten und Aktionen werden im fset-Buffer verwendet (siehe <<fset,Fset Erw
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Taste | Action ^(1)^ | Beschreibung | Befehl
| Taste | Action ^(1)^ | Beschreibung | Befehl
| kbd:[↑] | | einen Eintrag nach oben. | `+/fset -up+`
| kbd:[↓] | | einen Eintrag nach unten. | `+/fset -down+`
| kbd:[PgUp] | | eine Seite hoch blättern. | `+/window page_up+`
@@ -1822,7 +1845,7 @@ Diese Tasten und Aktionen werden im fset-Buffer verwendet (siehe <<script_manage
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Taste | Action ^(1)^ | Beschreibung | Befehl
| Taste | Action ^(1)^ | Beschreibung | Befehl
| kbd:[↑] | | eine Zeile nach oben. | `+/script up+`
| kbd:[↓] | | eine Zeile nach unten. | `+/script down+`
| kbd:[PgUp] | | eine Seite hoch blättern. | `+/window page_up+`
@@ -1934,23 +1957,23 @@ Basisfarben in WeeChat sind:
[[colors_extended]]
==== erweiterte Farbpalette
WeeChat belegt die Farbpaare dynamisch, sobald die Farbe genutzt werden sollte. Zum Beispiel
WeeChat belegt Farbpaarungen dynamisch, sobald die Farbe genutzt werden soll. Zum Beispiel,
um mit einer Farbe Buffer oder Bars zu nutzen.
Zu den Basisfarben können zusätzlich Farben zwischen eins und der maximalen Anzahl an Farben
genutzt werden die vom jeweiligen Terminal zur Verfügung gestellt werden.
genutzt werden, die vom jeweiligen Terminal zur Verfügung gestellt werden.
Mit dem `/color` Befehl kann man sich sowohl die aktuelle Farbpalette anzeigen lassen als
auch die Anzahl der zu nutzenden Farben. Mit kbd:[Alt+c] kann man vorübergehend zu den
Terminalfarben wechseln um eine Farbe auszuwählen.
Terminalfarben wechseln, um eine Farbe auszuwählen.
Um zum Beispiel die Uhrzeit in einem Buffer in einem schönen Orange darzustellen:
Um zum Beispiel die Uhrzeit in einem Buffer in einem schönen Orange darstellen zu lassen:
----
/set weechat.color.chat_time 214
----
oder falls man den Hintergrund der Statusbar in einm sehr dunklen Grün haben möchte:
oder falls man den Hintergrund der Statusleiste in einm sehr dunklen Grün haben möchte:
----
/set weechat.bar.status.color_bg 22
@@ -1959,7 +1982,7 @@ oder falls man den Hintergrund der Statusbar in einm sehr dunklen Grün haben m
[[colors_aliases]]
==== Alias
Man kann einer Farbe einen Alias zuordnen um diesen Alias anstelle einer Zahl in
Man kann einer Farbe einen Alias zuordnen um diesen Alias anstelle der Farbzahl in
die Optionen einzutragen. Um einen Alias zu definieren nutzt man den Befehl
`/color alias`.
@@ -1989,7 +2012,7 @@ zuzuordnen:
/set weechat.color.chat_nick_self _white
----
oder um die Zeitanzeige in der Statusbar orange, fett und unterstrichen
oder um die Zeitanzeige in der Statuszeile orange, fett und unterstrichen
darzustellen:
----
@@ -2009,7 +2032,7 @@ Um der Vordergrundfarbe des Terminals das Attribut "fett" zuzuordnen:
[[charset]]
=== Charset
Die Charset Erweiterung übernimmt das de-/kodieren der Zeichensätze.
Die Charset-Erweiterung übernimmt das de-/kodieren der Zeichensätze.
Es existiert ein Standardzeichensatz zum de-/kodieren und spezielle Zeichensätze
für Buffer (oder Gruppen von Buffern).
@@ -2099,7 +2122,7 @@ Um sich alle genutzten Zeichensätze anzeigen zu lassen wird folgender Befehl ge
[[charset_troubleshooting]]
==== Fehlersuche
sollten Probleme bei der Zeichensatzdarstellung auftreten dann werfen Sie bitte
Sollten Probleme bei der Zeichensatzdarstellung auftreten dann werfen Sie bitte
einen Blick in die link:weechat_faq.de.html#charset[WeeChat FAQ / Charset ^↗^,window=_blank].
[[charset_commands]]
@@ -2206,14 +2229,44 @@ das Skript _buffer_autoset.py_: Um das Skript zu installieren `+/script install
und um eine Hilfe zu erhalten wie man es nutzt: `+/help buffer_autoset+`.
[[highlights]]
=== Highlights
=== Hervorhebungen
[[highlights_disable]]
==== Hervorhebungen deaktivieren
Hervorhebungen können mit der Option
<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
(regulärer Ausdruck) deaktiviert werden. +
Wenn eine Hervorhebung mit dieser Option deaktiviert wird, werden die anderen
Hervorhebungsoptionen ignoriert.
Zum Beispiel, Nachrichten die eine Hervorhebung besitzen, wo die Nachricht
mit "flash" zwischen spitzen Klammern beginnt:
----
/set weechat.look.highlight_regex "<flash.*>"
----
Dies kann auch mit der Buffereigenschaft „highlight_disable_regex“ eingestellt werden.
Gleiches Beispiel, spezifisch für den aktuellen Buffer:
----
/buffer set highlight_disable_regex <flash.*>
----
[NOTE]
Die Buffer-Eigenschaft "highlight_disable_regex" ist keine permanente Einstellung und wird nicht
in der Konfigurationsdatei gesichert. + Um diese Einstellung persistent zu machen benötigt man
das Skript _buffer_autoset.py_: Um das Skript zu installieren `+/script install buffer_autoset.py+`
und um eine Hilfe zu erhalten wie man es nutzt: `+/help buffer_autoset+`.
[[highlights_words]]
==== Worte als Highlights hinzufügen
Standardmäßig werden in WeeChat alle Nachrichten von anderen Personen als highlight
deklariert wenn diese den eigenen Nick beinhalten, deshalb ist ein highlight abhängig
vom jeweiligen Buffer (ein Nick kann in je nach Buffer unterschiedlich sein)
deklariert, falls diese den eigenen Nick beinhalten. Deshalb ist ein highlight abhängig
vom jeweiligen Buffer (ein Nick kann je nach Buffer unterschiedlich sein)
Es können weitere Wörter zu den highlights hinzugefügt werden, mit der Option
<<option_weechat.look.highlight,weechat.look.highlight>>, zum Beispiel um
@@ -2221,7 +2274,7 @@ neben dem eigenen Nick auch die Wörter "Wort1","Wort2" und alle Wörter die mit
"Test" beginnen zu highlighten:
----
/set weechat.look.highlight Wort1,Wort2,Test*
/set weechat.look.highlight "Wort1,Wort2,Test*"
----
Wird eine spezielle Regel benötigt, dann können reguläre Ausdrücke
@@ -2231,7 +2284,7 @@ um zum Beispiel die Wörter "flashcode", "flashcöde" und "flashy"
zu highlighten:
----
/set weechat.look.highlight_regex flashc[oö]de|flashy
/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----
Die Trennzeichen die Wörter umschließen können angepasst werden, mit der
@@ -2260,7 +2313,7 @@ von Nicks die mit "toto" beginnen zu highlighten:
[[highlights_regex_buffer]]
==== Highlights mit regulärem Ausdruck für einen Buffer nutzen
Man kann reguläre Ausdrücke für Highlights in einem Buffer nutzen indem man
Man kann reguläre Ausdrücke für Highlights in einem Buffer nutzen, indem man
die Eigenschaft des Buffers mittels "highlight_regex" anpasst.
Um zum Beispiel jede Nachricht im aktuellen Buffer als Highlight-Nachricht einzustufen:
@@ -2417,6 +2470,49 @@ Erstellt eine Struktur in folgender Form:
...
....
[[logger_rotation_compression]]
==== Rotation und Kompressions
Es ist möglich, eine maximale Größe für Protokolldateien zu definieren, und wenn diese
erreicht ist, findet eine automatische Rotation der Protokolldatei statt.
Die rotierenden Protokolldateien können mit gzip kompromiert werden oder mit
https://facebook.github.io/zstd/[zstd ^↗^,window=_blank].
[NOTE]
Da die Komprimierung einer Datei einige Zeit in Anspruch nehmen kann, wird diese Aktion
im Hintergrund durchgeführt.
Beispiel mit einer maximalen Größe von 2 GB und einer Komprimierung mittels gzip
unter Verwendung einer guten Komprimierungsstufe (langsamer als die Standardeinstellung):
----
/set logger.file.rotation_compression_type gzip
/set logger.file.rotation_compression_level 80
/set logger.file.rotation_size_max "2g"
----
Wenn Sie eine Dezimalzahl verwenden möchten, können Sie die unten stehende Einheit verwenden
und mit 1000 multiplizieren, um beispielsweise die maximale Größe auf 2,5 GB festzulegen:
----
/set logger.file.rotation_size_max "2500m"
----
Mit diesen Einstellungen erhalten Sie eine Dateisktruktur wie die folgende (in diesem Beispiel
gibt es nur eine Rotation für das Protokoll des #weechat-Kanals):
....
~/.local/share/weechat
└── logs
├── core.weechat.weechatlog
├── irc.server.libera.weechatlog
├── irc.libera.#weechat.weechatlog
├── irc.libera.#weechat.weechatlog.1.gz
├── irc.libera.#weechat.weechatlog.2.gz
└── irc.libera.#weechat.weechatlog.3.gz
....
[[logger_commands]]
==== Befehle
@@ -3962,8 +4058,8 @@ mit dem entsprechenden Wert ersetzt:
| Platzhalter | Beschreibung | Wert/Beispiel
| $clientinfo | Liste der CTCP Antworten | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| $version | WeeChat Version | `+0.4.0-dev+`
| $versiongit | WeeChat Version + Git version ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git Version ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $versiongit | WeeChat Version + Git version ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git Version ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $compilation | Datum der Kompilierung | `+Dec 16 2012+`
| $osinfo | Info über das genutzte OS | `+Linux 2.6.32-5-amd64 / x86_64+`
| $site | WeeChat Seite | `+https://weechat.org/+`
@@ -4867,7 +4963,7 @@ welche abhängig von dem genutzten Hook ist:
[width="100%",cols="2,3,7",options="header"]
|===
| Hook | Standard-Variable | Update allowed ^(1)^
| Hook | Standard-Variable | Update allowed ^(1)^
| signal | tg_signal_data |
| hsignal | |
| modifier | tg_string | tg_string
@@ -4964,6 +5060,7 @@ Alle Callbacks setzen folgende Variablen in das hashtable:
|===
| Variable | Typ | Beschreibung
| tg_trigger_name | string | Name des Trigger.
| tg_hook_type | string | Hook-Typ: "signal", "command", etc.
|===
[[trigger_data_signal]]
@@ -5089,7 +5186,7 @@ Variablen die mittels Tags in der Nachricht gesetzt werden:
| tg_tag_prefix_nick | string | Nickfarbe für Präfix (extrahier aus Tag "prefix_nick_ccc").
| tg_tag_host | string | Username und Host, Format: username@host (extrahiert aus Tag "host_xxx").
| tg_tag_notify | string | Benachrichtigungsstufe (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | string | Tag einer IRC Nachricht (Schlüssel "xxx"). ^(1)^
| tg_tag_irc_xxx | string | Tag einer IRC Nachricht (Schlüssel "xxx"). ^(1)^
| tg_notify | string | Benachrichtigungsstufe, falls von _none_ abweichend.
| tg_msg_pv | string | "1" für eine private Nachricht, andernfalls "0".
|===
@@ -5131,7 +5228,7 @@ Variablen die mittels Tags in der Nachricht gesetzt werden:
| tg_tag_prefix_nick | string | Nickfarbe für Präfix (extrahier aus Tag "prefix_nick_ccc").
| tg_tag_host | string | Username und Host, Format: username@host (extrahiert aus Tag "host_xxx").
| tg_tag_notify | string | Benachrichtigungsstufe (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | string | Tag einer IRC Nachricht (Schlüssel "xxx"). ^(1)^
| tg_tag_irc_xxx | string | Tag einer IRC Nachricht (Schlüssel "xxx"). ^(1)^
| tg_notify | string | Benachrichtigungsstufe, falls von _none_ abweichend.
| tg_msg_pv | string | "1" für eine private Nachricht, andernfalls "0".
|===
+3 -2
View File
@@ -487,7 +487,8 @@ class AutogenDoc():
f'autogen_{name}.{self.locale[:2]}.adoc',
)
self.filename_tmp = f'{self.filename}.tmp'
self._file = open(self.filename_tmp, 'w')
# pylint: disable=consider-using-with
self._file = open(self.filename_tmp, 'w', encoding='utf-8')
def write_autogen_files(self, weechat_doc):
"""Write auto-generated files."""
@@ -782,7 +783,7 @@ class AutogenDoc():
self.write('// tag::url_options[]')
self.write('[width="100%",cols="2,^1,7",options="header"]')
self.write('|===')
self.write('| %s | %s ^(1)^ | %s ^(2)^\n',
self.write('| %s | %s ^(1)^ | %s ^(2)^\n',
_('Option'), _('Type'), _('Constants'))
for option in url_options:
constants = option['constants']
@@ -631,6 +631,8 @@ _text_search_input_   (string) +
_highlight_words_   (string) +
_highlight_regex_   (string) +
_highlight_regex_compiled_   (pointer) +
_highlight_disable_regex_   (string) +
_highlight_disable_regex_compiled_   (pointer) +
_highlight_tags_restrict_   (string) +
_highlight_tags_restrict_count_   (integer) +
_highlight_tags_restrict_array_   (pointer, array_size: "highlight_tags_restrict_count") +
@@ -128,6 +128,8 @@
| weechat | uptime | WeeChat uptime (format: "days:hh:mm:ss") | "days" (number of days) or "seconds" (number of seconds) (optional)
| weechat | uptime_current | WeeChat uptime for the current process only (upgrades with /upgrade command are ignored) (format: "days:hh:mm:ss") | "days" (number of days) or "seconds" (number of seconds) (optional)
| weechat | version | WeeChat version | -
| weechat | version_git | WeeChat git version (output of command "git describe" for a development version only, empty for a stable release) | -
@@ -6,7 +6,7 @@
// tag::url_options[]
[width="100%",cols="2,^1,7",options="header"]
|===
| Option | Type ^(1)^ | Constants ^(2)^
| Option | Type ^(1)^ | Constants ^(2)^
| verbose | long |
+28 -11
View File
@@ -176,7 +176,7 @@ Without argument, this command displays the ban list for current channel.
ls: list the capabilities supported by the server
list: list the capabilities currently enabled
req: request a capability
req: request a new capability or remove a capability (if starting with "-", for example: "-multi-prefix")
ack: acknowledge capabilities which require client-side acknowledgement
end: end the capability negotiation
@@ -187,8 +187,14 @@ Capabilities supported by WeeChat are: account-notify, away-notify, cap-notify,
The capabilities to automatically enable on servers can be set in option irc.server_default.capabilities (or by server in option irc.server.xxx.capabilities).
Examples:
/cap
/cap req multi-prefix away-notify
display supported and enabled capabilities:
/cap
request capabilities multi-prefix and away-notify:
/cap req multi-prefix away-notify
request capability extended-join, remove capability multi-prefix:
/cap req extended-join -multi-prefix
remove capability away-notify:
/cap req -away-notify
----
[[command_irc_connect]]
@@ -1608,6 +1614,7 @@ list of actions:
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_previous_word_whitespace: delete previous word (until whitespace)
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
@@ -2116,19 +2123,22 @@ Examples:
----
[[command_weechat_upgrade]]
* `+upgrade+`: reload the WeeChat binary without disconnecting from servers
* `+upgrade+`: save WeeChat session and reload the WeeChat binary without disconnecting from servers
----
/upgrade [-yes] [<path_to_binary>|-quit]
/upgrade [-yes] [<path_to_binary>|-save|-quit]
-yes: required if option "weechat.look.confirm_upgrade" is enabled
path_to_binary: path to WeeChat binary (default is current binary)
-dummy: do nothing (option used to prevent accidental completion with "-quit")
-save: only save the session, do not quit nor reload WeeChat; the configuration files are not saved (if needed you can use /save before this command)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Note: SSL connections are lost during upgrade (except with -save), because the reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Important: use of option -save can be dangerous, it is recommended to use only /upgrade (or with -quit) for a standard upgrade and a restart; the option -save can be used to save the session regularly and restore it in case of after abnormal exit (power outage, crash, etc.)
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
@@ -2136,14 +2146,18 @@ Upgrade process has 4 steps:
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
With option "-quit", the process is slightly different:
With option "-quit", the process is:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Then later you can restore session with command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
With option "-save", the process is:
1. save session into files (*.upgrade) with a disconnected state for IRC servers and Relay clients (but no disconnection is made)
With -quit or -save, you can restore the session later with this command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf) and if possible the same WeeChat version (or a more recent one).
It is possible to restore WeeChat session on another machine if you copy the content of WeeChat home directories (see /debug dirs).
----
@@ -2328,6 +2342,7 @@ The following variables can be used in these options:
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
- ${hotlist}: the raw hotlist
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight"
- ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = private, 3 = highlight
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
- ${format_tls_version}: indicator of TLS version for a server buffer, empty for channels (evaluation of option buflist.format.tls_version)
----
@@ -3049,7 +3064,7 @@ Examples:
----
/spell enable|disable|toggle
listdict
setdict <dict>[,<dict>...]
setdict -|<dict>[,<dict>...]
deldict
addword [<dict>] <word>
@@ -3057,7 +3072,7 @@ Examples:
disable: disable spell checker
toggle: toggle spell checker
listdict: show installed dictionaries
setdict: set dictionary for current buffer (multiple dictionaries can be separated by a comma)
setdict: set dictionary for current buffer (multiple dictionaries can be separated by a comma, the special value "-" disables spell checking on current buffer)
deldict: delete dictionary used on current buffer
addword: add a word in personal dictionary
@@ -3186,6 +3201,8 @@ Examples (you can also look at default triggers with /trigger listdefault):
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
silently save config each hour:
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
silently save WeeChat session at midnight (see /help upgrade):
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
/trigger monitor @modifier,resize*
----
+51 -3
View File
@@ -750,6 +750,12 @@
** values: any string
** default value: `+""+`
* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
** description: pass:none[POSIX extended regular expression used to prevent any highlight from a message: this option has higher priority over other highlight options (if the string is found in the message, the highlight is disabled and the other options are ignored), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "<flash.*>", "(?-i)<Flash.*>"]
** type: string
** values: any string
** default value: `+""+`
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** description: pass:none[POSIX extended regular expression used to check if a message has highlight or not, at least one match in string must be surrounded by delimiters (chars different from: alphanumeric, "-", "_" and "|"), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "flashcode|flashy", "(?-i)FlashCode|flashy"]
** type: string
@@ -1397,7 +1403,7 @@
** default value: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** description: pass:none[automatically save content of buffers to files (unless a buffer disables log)]
** description: pass:none[automatically save content of buffers to files (unless a buffer disables log); if disabled, logging is disabled on all buffers]
** type: boolean
** values: on, off
** default value: `+on+`
@@ -1462,6 +1468,24 @@
** values: any string
** default value: `+"_"+`
* [[option_logger.file.rotation_compression_level]] *logger.file.rotation_compression_level*
** description: pass:none[compression level for rotated log files (with extension ".1", ".2", etc.), if option logger.file.rotation_compression_type is enabled: 1 = low compression / fast ... 100 = best compression / slow; the value is a percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is recommended, it offers a good compromise between compression and speed]
** type: integer
** values: 1 .. 100
** default value: `+20+`
* [[option_logger.file.rotation_compression_type]] *logger.file.rotation_compression_type*
** description: pass:none[compression type for rotated log files; if set to "none", rotated log files are not compressed; WARNING: if rotation was enabled with another type of compression (or no compression), you must first unload the logger plugin, compress files with the new type (or decompress files), then change the option in logger.conf, then load the logger plugin]
** type: integer
** values: none, gzip, zstd
** default value: `+none+`
* [[option_logger.file.rotation_size_max]] *logger.file.rotation_size_max*
** description: pass:none[when this size is reached, a rotation of log files is performed: the existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) and the current file is renamed with extension .1; an integer number with a suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = megabytes, g = gigabytes, t = terabytes; example: "2g" causes a rotation if the file size is > 2,000,000,000 bytes; if set to "0", no rotation is performed (unlimited log size); WARNING: before changing this option, you should first set the compression type via option logger.file.rotation_compression_type]
** type: string
** values: any string
** default value: `+"0"+`
* [[option_logger.file.time_format]] *logger.file.time_format*
** description: pass:none[timestamp used in log files (see man strftime for date/time specifiers)]
** type: string
@@ -1544,6 +1568,12 @@
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** default value: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** description: pass:none[text color for trigger context identifier in monitor buffer]
** type: color
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** default value: `+cyan+`
* [[option_trigger.color.regex]] *trigger.color.regex*
** description: pass:none[text color for regular expressions]
** type: color
@@ -1771,7 +1801,7 @@
** default value: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** description: pass:none[enable buflist]
** description: pass:none[enable buflist; it is recommended to use this option instead of just hiding the bar because it also removes some internal hooks that are not needed any more when the bar is hidden; you can also use the command "/buflist toggle" or use the default key alt+shift+b]
** type: boolean
** values: on, off
** default value: `+on+`
@@ -2127,7 +2157,7 @@
** default value: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** description: pass:none[color for text in chghost messages]
** description: pass:none[color for text in "chghost" messages]
** type: color
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** default value: `+brown+`
@@ -2150,6 +2180,12 @@
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** default value: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** description: pass:none[color for text in "setname" messages]
** type: color
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** default value: `+brown+`
* [[option_irc.color.mirc_remap]] *irc.color.mirc_remap*
** description: pass:none[remap mirc colors in messages using a hashtable: keys are "fg,bg" as integers between -1 (not specified) and 15, values are WeeChat color names or numbers (format is: "1,-1:color1;2,7:color2"), example: "1,-1:darkgray;1,2:white,blue" to remap black to "darkgray" and black on blue to "white,blue"; default WeeChat colors for IRC codes: 0=white, 1=black, 2=blue, 3=green, 4=lightred, 5=red, 6=magenta, 7=brown, 8=yellow, 9=lightgreen, 10=cyan, 11=lightcyan, 12=lightblue, 13=lightmagenta, 14=darkgray, 15=gray]
** type: string
@@ -2330,6 +2366,12 @@
** values: on, off
** default value: `+on+`
* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change*
** description: pass:none[display nick change in private]
** type: boolean
** values: on, off
** default value: `+on+`
* [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address*
** description: pass:none[display a warning in private buffer if the address of remote nick has changed; this option is disabled by default because servers like bitlbee are causing this warning to be displayed when it is not expected (the address of remote nick changes multiple times on login)]
** type: boolean
@@ -2546,6 +2588,12 @@
** values: on, off
** default value: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** description: pass:none[enable smart filter for "setname" messages]
** type: boolean
** values: on, off
** default value: `+on+`
* [[option_irc.look.temporary_servers]] *irc.look.temporary_servers*
** description: pass:none[enable automatic addition of temporary servers with command /connect]
** type: boolean
+9 -4
View File
@@ -426,6 +426,8 @@ WeeChat "core" is located in following directories:
|          test-gui-buffer.cpp | Tests: buffer functions.
|          test-gui-chat.cpp | Tests: chat functions.
|          test-gui-color.cpp | Tests: colors.
|          test-gui-filter.cpp | Tests: filters.
|          test-gui-input.cpp | Tests: input functions.
|          test-gui-line.cpp | Tests: lines.
|          test-gui-nick.cpp | Tests: nicks.
|       plugins/ | Root of unit tests for plugins.
@@ -453,6 +455,9 @@ WeeChat "core" is located in following directories:
|             test-typing-status.cpp | Tests: typing status.
|          relay/ | Root of unit tests for Relay plugin.
|             test-relay-auth.cpp | Tests: clients authentication.
|          xfer/ | Root of unit tests for Xfer plugin.
|             test-xfer-file.cpp | Tests: file functions.
|             test-xfer-network.cpp | Tests: network functions.
|===
[[documentation_translations]]
@@ -940,10 +945,10 @@ All combinations are summarized in this table:
| [hex]#19# + `B` + `EXT` | [hex]#19# `+B@00124+` | chat + bars | Set background (extended color).
| [hex]#19# + `*` + `(ATTR)STD` | [hex]#19# `+*05+` | chat + bars | Set foreground (WeeChat color).
| [hex]#19# + `*` + `(ATTR)EXT` | [hex]#19# `+*@00214+` | chat + bars | Set foreground (extended color).
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `STD` ^(1)^ | [hex]#19# `+*08,05+` | chat + bars | Set foreground/background (WeeChat colors).
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `EXT` ^(1)^ | [hex]#19# `+*01,@00214+` | chat + bars | Set foreground (WeeChat color) and background (extended color).
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `STD` ^(1)^ | [hex]#19# `+*@00214,05+` | chat + bars | Set foreground (extended color) and background (WeeChat color).
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `EXT` ^(1)^ | [hex]#19# `+*@00214,@00017+` | chat + bars | Set foreground/background (extended colors).
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `STD` ^(1)^ | [hex]#19# `+*08,05+` | chat + bars | Set foreground/background (WeeChat colors).
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `EXT` ^(1)^ | [hex]#19# `+*01,@00214+` | chat + bars | Set foreground (WeeChat color) and background (extended color).
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `STD` ^(1)^ | [hex]#19# `+*@00214,05+` | chat + bars | Set foreground (extended color) and background (WeeChat color).
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `EXT` ^(1)^ | [hex]#19# `+*@00214,@00017+` | chat + bars | Set foreground/background (extended colors).
| [hex]#19# + `*` + `(ATTR)STD` + `~` + `STD` | [hex]#19# `+*08~05+` | chat + bars | Set foreground/background (WeeChat colors).
| [hex]#19# + `*` + `(ATTR)STD` + `~` + `EXT` | [hex]#19# `+*01~@00214+` | chat + bars | Set foreground (WeeChat color) and background (extended color).
| [hex]#19# + `*` + `(ATTR)EXT` + `~` + `STD` | [hex]#19# `+*@00214~05+` | chat + bars | Set foreground (extended color) and background (WeeChat color).
+267 -98
View File
@@ -1788,26 +1788,34 @@ weechat_string_free_split (argv);
[NOTE]
This function is not available in scripting API.
==== string_build_with_split_string
==== string_rebuild_split_string
Build a string with a split string.
_Updated in 3.7._
Rebuild a string with a split string, using optional separator and index of
first/last string to use.
Prototype:
[source,c]
----
char *weechat_string_build_with_split_string (char **split_string,
const char *separator);
char *weechat_string_rebuild_split_string (char **split_string,
const char *separator,
int index_start, int index_end);
----
Arguments:
* _split_string_: string split by function <<_string_split,string_split>>
* _separator_: string used to separate strings
* _separator_: string used to separate strings (can be NULL or empty string)
* _index_start_: index of first string to use (≥ 0)
* _index_end_: index of last string to use
(must be ≥ _index_start_; special value -1 can be used to use all arguments
until NULL is found)
Return value:
* string built with split string (must be freed by calling "free" after use)
* string rebuilt with split string (must be freed by calling "free" after use)
C example:
@@ -1816,7 +1824,7 @@ C example:
char **argv;
int argc;
argv = weechat_string_split ("abc def ghi", " ", 0, 0, &argc);
char *str = weechat_string_build_with_split_string (argv, ";");
char *str = weechat_string_rebuild_split_string (argv, ";", 0, -1);
/* str == "abc;def;ghi" */
/* ... */
free (str);
@@ -1947,6 +1955,51 @@ def string_format_size(size: int) -> str: ...
str = weechat.string_format_size(15200) # == "15.2 KB"
----
==== string_parse_size
_WeeChat ≥ 3.7._
Parse a string with a size and optional unit and return the size in bytes.
Prototype:
[source,c]
----
unsigned long long weechat_string_parse_size (const char *size);
----
Arguments:
* _size_: the size as string: positive integer number followed by optional
spaces and optional unit (lower or upper case), which is one of:
** _b_: bytes
** _k_: kilobytes (1k = 1000 bytes)
** _m_: megabytes (1m = 1000k = 1,000,000 bytes)
** _g_: gigabytes (1g = 1000m = 1,000,000,000 bytes)
** _t_: terabytes (1t = 1000g = 1,000,000,000,000 bytes)
Return value:
* size in bytes, 0 if error
C example:
[source,c]
----
unsigned long long size = weechat_parse_size ("1.34m"); /* size == 1340000 */
----
Script (Python):
[source,python]
----
# prototype
def string_parse_size(size: str) -> int: ...
# example
size = weechat.string_parse_size("1.34m") # 1340000
----
==== string_color_code_size
_WeeChat ≥ 3.0._
@@ -2623,7 +2676,7 @@ expanded to last):
| `+${eval:xxx}+` | 1.3
| String to evaluate.
| >> `+${eval:${date:${weechat.look.buffer_time_format}}}+` +
== `+19:02:45+` ^(1)^ +
== `+19:02:45+` ^(1)^ +
+
^(1)^ With colors if there are color codes in the option
weechat.look.buffer_time_format
@@ -2690,7 +2743,7 @@ expanded to last):
== `+!dlrow ,olleH+` +
+
>> `+${rev:Hello, ${color:red}world!}+` +
== `+!dlrow30F ,olleH+` ^(1)^ +
== `+!dlrow30F ,olleH+` ^(1)^ +
+
^(1)^ No color, the color code is reversed
@@ -2700,7 +2753,7 @@ expanded to last):
== `+!dlrow ,olleH+` +
+
>> `+${revscr:Hello, ${color:red}world!}+` +
== `+!dlrow ,olleH+` ^(1)^ +
== `+!dlrow ,olleH+` ^(1)^ +
+
^(1)^ `pass:[ ,olleH]` in red
@@ -2813,10 +2866,10 @@ expanded to last):
| WeeChat color code (the name of color has optional attributes),
see function <<_color,color>> for supported formats.
| >> `+${color:red}red text+` +
== `+red text+` ^(1)^ +
== `+red text+` ^(1)^ +
+
>> `+${color:*214}bold orange text+` +
== `+bold orange text+` ^(2)^ +
== `+bold orange text+` ^(2)^ +
+
^(1)^ In red +
^(2)^ In bold orange
@@ -2922,7 +2975,7 @@ expanded to last):
| `+${translate:xxx}+` | 3.2
| Translated string (depends on the language used by WeeChat to display messages).
| >> `+${translate:Plugin}+` +
== `+Extension+` ^(1)^ +
== `+Extension+` ^(1)^ +
+
^(1)^ Example in French
@@ -3743,6 +3796,49 @@ rc = weechat_crypto_hash (data, strlen (data), "sha256", hash, &hash_size);
[NOTE]
This function is not available in scripting API.
==== crypto_hash_file
_WeeChat ≥ 3.7._
Compute hash of a file.
Prototype:
[source,c]
----
int weechat_crypto_hash_file (const char *filename, const char *hash_algo,
void *hash, int *hash_size);
----
Arguments:
* _filename_: path and file name
* _hash_algo_: the hash algorithm, see table in function
<<crypto_hash_algorithms,crypto_hash>>
* _hash_: pointer to the hash variable, which is used to store the resulting hash
(the buffer must be large enough, according to the algorithm, see table in
function <<crypto_hash_algorithms,crypto_hash>>)
* _hash_size_: pointer to a variable used to store the size of the hash computed
(in bytes) (can be NULL)
Return value:
* 1 if OK, 0 if error
C example:
[source,c]
----
char hash[256 / 8];
int rc, hash_size;
rc = weechat_crypto_hash_file ("/path/to/file", "sha256", hash, &hash_size);
/* rc == 1, hash_size == 32 and hash is a buffer with:
71 c4 80 df 93 d6 ae 2f 1e fa d1 44 7c 66 c9 52 5e 31 62 18 cf 51 fc 8d 9e d8 32 f2 da f1 8b 73 */
----
[NOTE]
This function is not available in scripting API.
==== crypto_hash_pbkdf2
_WeeChat ≥ 2.8._
@@ -4093,6 +4189,47 @@ if (weechat_file_copy ("/tmp/test.txt", "/path/to/test2.txt"))
[NOTE]
This function is not available in scripting API.
==== file_compress
_WeeChat ≥ 3.7._
Compress a file with gzip or zstd.
Prototype:
[source,c]
----
int weechat_file_compress (const char *from, const char *to,
const char *compressor, int compression_level);
----
Arguments:
* _from_: source file
* _to_: destination file
* _compressor_: the compressor to use, one of:
** _gzip_: gzip compression
** _zstd_: zstandard compression
* _compression_level_: compression level, between 1 (fast, low compression) to
100 (slow, best compression)
Return value:
* 1 if OK, 0 if error
C example:
[source,c]
----
if (weechat_file_compress ("/tmp/test.txt", "/tmp/test.txt.zst", "zstd", 50))
{
/* OK */
}
----
[NOTE]
This function is not available in scripting API.
[[util]]
=== Util
@@ -5942,7 +6079,7 @@ Script (Python):
def config_new(name: str, callback_reload: str, callback_reload_data: str) -> str: ...
# example
def my_config_reload_cb(data, config_file):
def my_config_reload_cb(data: str, config_file: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -6206,26 +6343,26 @@ def config_new_section(config_file: str, name: str,
callback_delete_option: str, callback_delete_option_data: str) -> str: ...
# example
def my_section_read_cb(data, config_file, section, option_name, value):
def my_section_read_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
# return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
# return weechat.WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND
# return weechat.WEECHAT_CONFIG_OPTION_SET_ERROR
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_write_default_cb(data, config_file, section_name):
def my_section_write_default_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_create_option_cb(data, config_file, section, option_name, value):
def my_section_create_option_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
def my_section_delete_option_cb(data, config_file, section, option):
def my_section_delete_option_cb(data: str, config_file: str, section: str, option: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED
@@ -6462,15 +6599,15 @@ def config_new_option(config_file: str, section: str, name: str, type: str, desc
callback_delete: str, callback_delete_data: str) -> str: ...
# example
def option4_check_value_cb(data, option, value):
def option4_check_value_cb(data: str, option: str, value: str) -> int:
# ...
return 1
# return 0
def option4_change_cb(data, option):
def option4_change_cb(data: str, option: str) -> int:
# ...
def option4_delete_cb(data, option):
def option4_delete_cb(data: str, option: str) -> int:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
@@ -7570,7 +7707,7 @@ Script (Python):
def config_write_option(config_file: str, option: str) -> int: ...
# example
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "my_section", "")
weechat.config_write_option(config_file, option)
return weechat.WEECHAT_RC_OK
@@ -7623,7 +7760,7 @@ Script (Python):
def config_write_line(config_file: str, option_name: str, value: str) -> int: ...
# example
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "my_section", "")
weechat.config_write_line(config_file, "option", "value")
return weechat.WEECHAT_RC_OK
@@ -8745,22 +8882,45 @@ beginning of hooks list, so it will be found and executed before other hooks.
It's useful for modifiers, because execution order is important.
To set a priority, you must use this syntax, for argument where priority is
allowed: "nnn|name" where "nnn" is non-negative integer with priority and "name"
allowed: `nnn|name` where `nnn` is non-negative integer with priority and `name`
the name for argument (priority does not appear in name, it is automatically
removed from string).
removed from string). +
Only a single priority per hook is allowed.
Default priority is 1000.
C example:
C examples:
[source,c]
----
/* hook modifier with priority = 2000 */
/* high priority: called before other modifier calbacks */
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
/* hook two signals with priority = 3000 */
/* high priority: called before other signal callbacks */
weechat_hook_signal ("3000|quit;upgrade", &signal_cb, NULL, NULL);
/* hook lines printed in formatted buffers with priority = 500 */
/* low priority: called after other line callbacks */
weechat_hook_line ("500|formatted", "*", NULL, &line_cb, NULL, NULL);
----
Following hook types allow priority: command, command_run, signal, hsignal,
config, completion, modifier, info, info_hashtable, infolist, hdata, focus.
Following hook types allow priority:
* <<_hook_command,command>>
* <<_hook_completion,completion>>
* <<_hook_command_run,command_run>>
* <<_hook_line,line>>
* <<_hook_signal,signal>>
* <<_hook_hsignal,hsignal>>
* <<_hook_config,config>>
* <<_hook_modifier,modifier>>
* <<_hook_info,info>>
* <<_hook_info_hashtable,info_hashtable>>
* <<_hook_infolist,infolist>>
* <<_hook_hdata,hdata>>
* <<_hook_focus,focus>>
==== hook_command
@@ -8790,7 +8950,7 @@ struct t_hook *weechat_hook_command (const char *command,
Arguments:
* _command_: command name
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the command, see note about <<hook_priority,priority>>)
* _description_: description for command (displayed with `/help command`)
* _args_: arguments for command (displayed with `/help command`)
* _args_description_: description of arguments (displayed with `/help command`)
@@ -8899,7 +9059,7 @@ def hook_command(command: str, description: str, args: str, args_description: st
completion: str, callback: str, callback_data: str) -> str: ...
# example
def my_command_cb(data, buffer, args):
def my_command_cb(data: str, buffer: str, args: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -8941,7 +9101,7 @@ Arguments:
* _completion_item_: name of completion item, after you can use _%(name)_
(or _%(name:arguments)_ with WeeChat ≥ 1.7) in a command hooked
(argument _completion_)
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the completion item, see note about <<hook_priority,priority>>)
* _description_: description of completion
* _callback_: function called when completion item is used (user is completing
something using this item), arguments and return value:
@@ -9004,7 +9164,7 @@ Script (Python):
def hook_completion(completion_item: str, description: str, callback: str, callback_data: str) -> str: ...
# example
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
weechat.completion_list_add(completion, "word1", 0, weechat.WEECHAT_LIST_POS_SORT)
weechat.completion_list_add(completion, "test_word2", 0, weechat.WEECHAT_LIST_POS_SORT)
return weechat.WEECHAT_RC_OK
@@ -9047,7 +9207,7 @@ struct t_hook *weechat_hook_command_run (const char *command,
Arguments:
* _command_: command to hook (wildcard `+*+` is allowed)
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the command, see note about <<hook_priority,priority>>)
* _callback_: function called when command is run, arguments and return value:
** _const void *pointer_: pointer
** _void *data_: pointer
@@ -9091,7 +9251,7 @@ Script (Python):
def hook_command_run(command: str, callback: str, callback_data: str) -> str: ...
# example
def my_command_run_cb(data, buffer, command):
def my_command_run_cb(data: str, buffer: str, command: str) -> int:
weechat.prnt("", "I'm eating the completion!")
return weechat.WEECHAT_RC_OK_EAT
@@ -9165,7 +9325,7 @@ Script (Python):
def hook_timer(interval: int, align_second: int, max_calls: int, callback: str, callback_data: str) -> str: ...
# example
def my_timer_cb(data, remaining_calls):
def my_timer_cb(data: str, remaining_calls: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9249,7 +9409,7 @@ Script (Python):
def hook_fd(fd: int, flag_read: int, flag_write: int, flag_exception: int, callback: str, callback_data: str) -> str: ...
# example
def my_fd_cb(data, fd):
def my_fd_cb(data: str, fd: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9308,9 +9468,10 @@ Arguments:
**** _3_: not enough memory
**** _4_: error with a file
*** _< 0_:
**** _WEECHAT_HOOK_PROCESS_RUNNING_: data available, but child still running)
**** _WEECHAT_HOOK_PROCESS_ERROR_: error when launching command
**** _WEECHAT_HOOK_PROCESS_CHILD_: callback is called in the child process
**** _WEECHAT_HOOK_PROCESS_RUNNING_ (-1): data available, but child still running
**** _WEECHAT_HOOK_PROCESS_ERROR_ (-2): error when launching command
**** _WEECHAT_HOOK_PROCESS_CHILD_ (-3): callback is called in the child process
(used only in C API, not scripting API)
** _out_: standard output of command (stdout)
** _err_: error output of command (stderr)
** return value:
@@ -9449,7 +9610,7 @@ Script (Python):
def hook_process(command: str, timeout: int, callback: str, callback_data: str) -> str: ...
# example with an external command
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9464,12 +9625,12 @@ def my_process_cb(data, command, return_code, out, err):
hook = weechat.hook_process("ls", 5000, "my_process_cb", "")
# example with a script function
def get_status(data):
def get_status(data: str) -> str:
# do something blocking...
# ...
return "this is the result"
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9671,7 +9832,7 @@ Script (Python):
def hook_process_hashtable(command: str, options: Dict[str, str], timeout: int, callback: str, callback_data: str) -> str: ...
# example
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9869,7 +10030,7 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc
callback: str, callback_data: str) -> str: ...
# example
def my_connect_cb(data, status, gnutls_rc, sock, error, ip_address):
def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int:
if status == WEECHAT_HOOK_CONNECT_OK:
# ...
elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND:
@@ -9900,7 +10061,7 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
==== hook_line
_WeeChat ≥ 2.3._
_WeeChat ≥ 2.3, updated in 3.7._
Hook a line to be printed in a buffer.
@@ -9934,7 +10095,9 @@ struct t_hook *weechat_hook_line (const char *buffer_type,
Arguments:
* _buffer_type_: catch lines on the given buffer type (if NULL or empty string,
_formatted_ is the default):
_formatted_ is the default)
(_WeeChat ≥ 3.7_: a priority is allowed before the buffer type,
see note about <<hook_priority,priority>>):
** _formatted_: catch lines on formatted buffers only (default)
** _free_: catch lines on buffers with free content only
** _*_: catch lines on all buffer types
@@ -10163,7 +10326,7 @@ Script (Python):
def hook_line(buffer_type: str, buffer_name: str, tags: str, callback: str, callback_data: str) -> str: ...
# example
def my_line_cb(data, line):
def my_line_cb(data: str, line: Dict[str, str]) -> Dict[str, str]:
# force a highlight on the line
return {"highlight": "1"}
@@ -10273,8 +10436,8 @@ Script (Python):
def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback: str, callback_data: str) -> str: ...
# example
def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message):
if int(highlight):
def my_print_cb(data: str, buffer: str, date: str, tags: str, displayed: int, highlight: int, prefix: str, message: str) -> int:
if highlight:
# ...
return weechat.WEECHAT_RC_OK
@@ -10306,7 +10469,7 @@ Arguments:
* _signal_: signal to catch, wildcard `+*+` is allowed; multiple signals can
be separated by semi-colons
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before one or more signals, see note about <<hook_priority,priority>>)
(see table below)
* _callback_: function called when signal is received, arguments and return
value:
@@ -10354,7 +10517,7 @@ List of signals sent by WeeChat and plugins:
| String: comma-separated list of scripts removed.
| Scheme script(s) removed.
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| String: message.
| IRC message from server (before irc plugin uses it,
signal sent only if message is *not* ignored). +
@@ -10362,13 +10525,13 @@ List of signals sent by WeeChat and plugins:
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the IRC message
is immediately destroyed and not processed _(WeeChat ≥ 3.3)_.
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| String: message.
| IRC message from server (after irc plugin uses it,
signal sent only if message is *not* ignored). +
Since version 2.2, the whole IRC message is sent, including tags.
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ | 0.3.2
| String: message.
| IRC message from server (before irc plugin uses it,
signal sent even if message is ignored). +
@@ -10376,25 +10539,25 @@ List of signals sent by WeeChat and plugins:
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the IRC message
is immediately destroyed and not processed _(WeeChat ≥ 3.3)_.
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| String: message.
| IRC message from server (after irc plugin uses it,
signal sent even if message is ignored). +
Since version 2.2, the whole IRC message is sent, including tags.
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| String: message.
| IRC message sent to server before automatic split
(to fit in 512 bytes by default).
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| String: message.
| IRC message sent to server after automatic split
(to fit in 512 bytes by default). +
*Warning:* the string may contain invalid UTF-8 data.
Signal "xxx,irc_out1_yyy" is recommended instead.
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| String: tags + ";" + message.
| Tags + IRC message sent to server. +
*Warning:* the string may contain invalid UTF-8 data.
@@ -10890,7 +11053,8 @@ List of signals sent by WeeChat and plugins:
| Signal SIGWINCH received (terminal was resized).
| weechat | [[hook_signal_upgrade]] upgrade |
| String: "quit" if "-quit" argument was given for /upgrade, otherwise NULL.
| String: "quit" if "-quit" argument was given for /upgrade, "save" if "-save"
if "-save" argument was given for /upgrade, otherwise NULL.
| Command `/upgrade` issued by user.
| weechat | [[hook_signal_upgrade_ended]] upgrade_ended | 0.3.4
@@ -10998,7 +11162,7 @@ Script (Python):
def hook_signal(signal: str, callback: str, callback_data: str) -> str: ...
# example
def my_signal_cb(data, signal, signal_data):
def my_signal_cb(data: str, signal: str, signal_data: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11228,7 +11392,7 @@ Arguments:
* _signal_: signal to catch, wildcard `+*+` is allowed; multiple signals can
be separated by semi-colons
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before one or more signals, see note about <<hook_priority,priority>>)
(see table below)
* _callback_: function called when signal is received, arguments and return
value:
@@ -11256,7 +11420,7 @@ List of hsignals:
|===
| Plugin | Signal | Min WeeChat | Arguments | Description
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| See <<hsignal_irc_redirect_command,hsignal_irc_redirect_command>>
| Redirection output.
@@ -11325,7 +11489,7 @@ Script (Python):
def hook_hsignal(signal: str, callback: str, callback_data: str) -> str: ...
# example
def my_hsignal_cb(data, signal, hashtable):
def my_hsignal_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11479,7 +11643,7 @@ Script (Python):
[source,python]
----
def test_whois_cb(data, signal, hashtable):
def test_whois_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
weechat.prnt("", "error = %s" % hashtable["error"])
weechat.prnt("", "output = %s" % hashtable["output"])
return weechat.WEECHAT_RC_OK
@@ -11587,7 +11751,7 @@ Arguments:
* _option_: option, format is full name, as used with command `/set` (for
example: `+weechat.look.item_time_format+`), wildcard `+*+` is allowed
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the option, see note about <<hook_priority,priority>>)
* _callback_: function called when configuration option is changed, arguments
and return value:
** _const void *pointer_: pointer
@@ -11631,7 +11795,7 @@ Script (Python):
def hook_config(option: str, callback: str, callback_data: str) -> str: ...
# example
def my_config_cb(data, option, value):
def my_config_cb(data: str, option: str, value: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11661,8 +11825,8 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
Arguments:
* _modifier_: modifier name, list of modifiers used by WeeChat or plugins
(priority allowed, see note about <<hook_priority,priority>>)
* _modifier_: modifier name
(a priority is allowed before the modifier, see note about <<hook_priority,priority>>)
(see table below)
* _callback_: function called when modifier is used, arguments and return value:
** _const void *pointer_: pointer
@@ -11686,7 +11850,7 @@ List of modifiers used by WeeChat and plugins:
|===
| Modifier | Min WeeChat | Modifier data | String | Output
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| Server name
| Content of message received from IRC server (before charset decoding). +
*Warning:* the string may contain invalid UTF-8 data; use only for raw
@@ -11694,24 +11858,24 @@ List of modifiers used by WeeChat and plugins:
Modifier <<hook_modifier_irc_in2_xxx,irc_in2_xxx>> is recommended instead.
| New content of message.
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| Server name
| Content of message received from IRC server (after charset decoding).
| New content of message.
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| Server name
| Content of message about to be sent to IRC server before automatic split
(to fit in 512 bytes by default).
| New content of message.
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| Server name
| Content of message about to be sent to IRC server after automatic split
(to fit in 512 bytes by default).
| New content of message.
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| String with window pointer (eg: "0x1234abcd")
| Empty string.
| "1" to display bar, "0" to hide it.
@@ -11742,7 +11906,7 @@ List of modifiers used by WeeChat and plugins:
| New content of command line sent to buffer.
| [[hook_modifier_weechat_print]] weechat_print |
| buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^
| buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^
| Message printed.
| New message printed. +
For more information on the hooks called when a line is printed, see
@@ -11792,7 +11956,7 @@ Script (Python):
def hook_modifier(modifier: str, callback: str, callback_data: str) -> str: ...
# example
def my_modifier_cb(data, modifier, modifier_data, string):
def my_modifier_cb(data: str, modifier: str, modifier_data: str, string: str) -> str:
return "%s xxx" % string
hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "")
@@ -11934,7 +12098,7 @@ struct t_hook *weechat_hook_info (const char *info_name,
Arguments:
* _info_name_: name of info
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the info name, see note about <<hook_priority,priority>>)
* _description_: description
* _args_description_: description of arguments (optional, can be NULL)
* _callback_: function called when info is asked, arguments and return value:
@@ -11984,7 +12148,7 @@ def hook_info(info_name: str, description: str, args_description: str,
callback: str, callback_data: str) -> str: ...
# example
def my_info_cb(data, info_name, arguments):
def my_info_cb(data: str, info_name: str, arguments: str) -> str:
return "some_info"
hook = weechat.hook_info("my_info", "Some info", "Info about arguments",
@@ -12016,7 +12180,7 @@ struct t_hook *weechat_hook_info_hashtable (const char *info_name,
Arguments:
* _info_name_: name of info
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the info name, see note about <<hook_priority,priority>>)
* _description_: description
* _args_description_: description of expected hashtable (optional, can be NULL)
* _output_description_: description of hashtable returned by callback
@@ -12065,7 +12229,7 @@ def hook_info_hashtable(info_name: str, description: str, args_description: str,
output_description: str, callback: str, callback_data: str) -> str: ...
# example
def my_info_hashtable_cb(data, info_name, hashtable):
def my_info_hashtable_cb(data: str, info_name: str, hashtable: Dict[str, str]) -> Dict[str, str]:
return {"test_key": "test_value"}
hook = weechat.hook_info_hashtable("my_info_hashtable", "Some info",
@@ -12100,7 +12264,7 @@ struct t_hook *weechat_hook_infolist (const char *infolist_name,
Arguments:
* _infolist_name_: name of infolist
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the infolist name, see note about <<hook_priority,priority>>)
* _description_: description
* _pointer_description_: description of pointer (optional, can be NULL)
* _args_description_: description of arguments (optional, can be NULL)
@@ -12155,7 +12319,7 @@ def hook_infolist(infolist_name: str, description: str, pointer_description: str
args_description: str, callback: str, callback_data: str) -> str: ...
# example
def my_infolist_cb(data, infolist_name, pointer, arguments):
def my_infolist_cb(data: str, infolist_name: str, pointer: str, arguments: str) -> str:
# build infolist
# ...
return my_infolist
@@ -12187,7 +12351,7 @@ struct t_hook *weechat_hook_hdata (const char *hdata_name,
Arguments:
* _hdata_name_: name of hdata
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the hdata name, see note about <<hook_priority,priority>>)
* _description_: description
* _callback_: function called when hdata is asked, arguments and return
value:
@@ -12250,7 +12414,7 @@ struct t_hook *weechat_hook_focus (const char *area,
Arguments:
* _area_: "chat" for chat area, or name of bar item
(priority allowed, see note about <<hook_priority,priority>>)
(a priority is allowed before the area, see note about <<hook_priority,priority>>)
* _callback_: function called when focus is made, arguments and return
value:
** _const void *pointer_: pointer
@@ -12277,7 +12441,7 @@ Content of hashtable sent to callback (keys and values are of type "string"):
[width="100%",cols="5,5,8,3",options="header"]
|===
| Key ^(1)^ | Description | Value examples | Value if N/A
| Key ^(1)^ | Description | Value examples | Value if N/A
| _x | Column on screen.
| "0" ... "n" |
@@ -12309,7 +12473,7 @@ Content of hashtable sent to callback (keys and values are of type "string"):
| _buffer_full_name | Full name of buffer.
| "core.weechat", "irc.libera.#weechat", ... | ""
| _buffer_localvar_XXX ^(2)^ | Local variables of buffer.
| _buffer_localvar_XXX ^(2)^ | Local variables of buffer.
| any value | not set
| _chat | Chat area indicator.
@@ -12318,16 +12482,16 @@ Content of hashtable sent to callback (keys and values are of type "string"):
| _chat_line | Pointer to line _(WeeChat ≥ 1.2)_.
| "0x1234abcd" | ""
| _chat_line_x | Column in line ^(3)^.
| _chat_line_x | Column in line ^(3)^.
| "0" ... "n" | "-1"
| _chat_line_y | Line number ^(3)^.
| _chat_line_y | Line number ^(3)^.
| "0" ... "n" | "-1"
| _chat_line_date | Line date/time.
| "1313237175" | "0"
| _chat_line_date_printed | Line date/time ^(4)^.
| _chat_line_date_printed | Line date/time ^(4)^.
| "1313237175" | "0"
| _chat_line_time | Time displayed.
@@ -12386,7 +12550,7 @@ Extra info for bar item "buffer_nicklist":
[width="100%",cols="^1,^1,5",options="header"]
|===
| Plugin ^(1)^ | Key | Description
| Plugin ^(1)^ | Key | Description
| irc | irc_nick | Pointer to IRC nick _(WeeChat ≥ 3.0)_.
| irc | irc_host | Host for nick (if known).
| weechat | nick | Nick name.
@@ -12429,7 +12593,7 @@ Script (Python):
def hook_focus(area: str, callback: str, callback_data: str) -> str: ...
# example
def my_focus_nicklist_cb(data, info):
def my_focus_nicklist_cb(data: str, info: Dict[str, str]) -> Dict[str, str]:
# build dict
# ...
return my_dict
@@ -12501,7 +12665,7 @@ Script (Python):
def hook_set(hook: str, property: str, value: str) -> int: ...
# example
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -12686,11 +12850,11 @@ def buffer_new(name: str, input_callback: str, input_callback_data: str,
close_callback: str, close_callback_data: str) -> str: ...
# example
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Text: %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Buffer '%s' will be closed!" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -12807,11 +12971,11 @@ def buffer_new_props(name: str, properties: Dict[str, str],
close_callback: str, close_callback_data: str) -> str: ...
# example
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Text: %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Buffer '%s' will be closed!" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -13211,6 +13375,7 @@ Arguments:
** _input_: input text
** _text_search_input_: input saved before text search
** _highlight_words_: list of words to highlight
** _highlight_disable_regex_: POSIX extended regular expression for disabling highlight
** _highlight_regex_: POSIX extended regular expression for highlight
** _highlight_tags_restrict_: restrict highlights to messages with these tags
** _highlight_tags_: force highlight on messages with these tags
@@ -13262,6 +13427,7 @@ Arguments:
* _property_: property name:
** _plugin_: pointer to plugin which created this buffer (NULL for WeeChat main
buffer)
** _highlight_disable_regex_compiled_: regular expression _highlight_disable_regex_ compiled
** _highlight_regex_compiled_: regular expression _highlight_regex_ compiled
Return value:
@@ -13399,6 +13565,9 @@ Properties:
| highlight_words_del | | comma separated list of words
| Comma separated list of words to remove from highlighted words on buffer.
| highlight_disable_regex | | any string
| POSIX extended regular expression for disabling highlight.
| highlight_regex | | any string
| POSIX extended regular expression for highlight.
@@ -14837,13 +15006,13 @@ see example below (supported only in WeeChat ≥ 0.4.2).
def bar_item_new(name: str, build_callback: str, build_callback_data: str) -> str: ...
# example (callback without "buffer" and "extra_info")
def my_build_callback(data, item, window):
def my_build_callback(data: str, item: str, window: str) -> str:
return "my content"
bar_item = weechat.bar_item_new("myitem", "my_build_callback", "")
# example (callback with all arguments, for WeeChat ≥ 0.4.2)
def my_build_callback2(data, item, window, buffer, extra_info):
def my_build_callback2(data: str, item: str, window: str, buffer: str, extra_info: Dict[str, str]) -> str:
return "my content"
bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat ≥ 0.4.2
@@ -15428,7 +15597,7 @@ Script (Python):
def completion_get_string(completion: str, property: str) -> str: ...
# example
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
# get arguments of command
args = weechat.completion_get_string(completion, "args")
# completion depending on args
+2
View File
@@ -691,6 +691,8 @@ inl:
text_search_found: 0
text_search_input: None
highlight_words: None
highlight_disable_regex: None
highlight_disable_regex_compiled: '0x0'
highlight_regex: None
highlight_regex_compiled: '0x0'
highlight_tags_restrict: None
+13 -1
View File
@@ -573,6 +573,7 @@ List of functions in script API:
string_has_highlight_regex +
string_mask_to_regex +
string_format_size +
string_parse_size +
string_color_code_size +
string_remove_color +
string_is_command_char +
@@ -1307,7 +1308,7 @@ The result is a hashtable with following keys
[width="100%",cols="3,^2,10,7",options="header"]
|===
| Key | Since WeeChat ^(1)^ | Description | Example
| Key | Since WeeChat ^(1)^ | Description | Example
| tags | 0.4.0
| The tags in message (can be empty).
@@ -1349,6 +1350,14 @@ The result is a hashtable with following keys
| The text (for example user message).
| `+hello!+`
| paramN | 3.4
| Command parameter (from 1 to N).
| `+#weechat+`
| num_params | 3.4
| Number of command parameters.
| `+2+`
| pos_command | 1.3
| The index of _command_ in message ("-1" if _command_ was not found).
| `+47+`
@@ -1387,6 +1396,9 @@ dict = weechat.info_get_hashtable(
# "channel": "#weechat",
# "arguments": "#weechat :hello!",
# "text": "hello!",
# "param1": "#weechat",
# "param2": "hello!",
# "num_params": "2",
# "pos_command": "65",
# "pos_arguments": "73",
# "pos_channel": "73",
+148 -52
View File
@@ -108,16 +108,38 @@ WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Package ^(1)^ | Version | Feature
| C compiler (gcc / clang) | | Build.
| cmake | ≥ 3.0 | Build (autotools still possible, but CMake is recommended).
| pkg-config | | Detect installed libraries.
| libncursesw5-dev ^(2)^ | | Ncurses interface.
| libcurl4-gnutls-dev | | URL transfer.
| libgcrypt20-dev | | Secured data, IRC SASL authentication.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | SSL connection to IRC server, support of SSL in relay plugin, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE).
| zlib1g-dev | | Compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] in relay plugin (weechat protocol), script plugin.
| libzstd-dev | | Compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] in relay plugin (weechat protocol).
| Package ^(1)^ | Version | Features
| C compiler (gcc / clang) |
| Build.
| cmake | ≥ 3.0
| Build (autotools still possible, but CMake is recommended).
| pkg-config |
| Detect installed libraries.
| libncursesw5-dev ^(2)^ |
| Ncurses interface.
| libcurl4-gnutls-dev |
| URL transfer.
| libgcrypt20-dev |
| Secured data, IRC SASL authentication.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^
| IRC plugin: support of TLS connections, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE). +
Relay plugin: support of TLS connections.
| zlib1g-dev |
| Logger plugin: compression of rotated log files (gzip). +
Relay plugin: compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] (weechat protocol). +
Script plugin: read of repository index file (gzip).
| libzstd-dev | ≥ 0.8.1
| Logger plugin: compression of rotated log files. +
Relay plugin: compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] (weechat protocol).
|===
[NOTE]
@@ -134,12 +156,12 @@ WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Package ^(1)^ | Version | Feature
| Package ^(1)^ | Version | Features
| {cpp} compiler (pass:[g++ / clang++]) | | Build and run tests, JavaScript plugin.
| gettext | | Internationalization (translation of messages; base language is English).
| ca-certificates | | Certificates for SSL connections.
| libaspell-dev / libenchant-dev | | Spell plugin.
| python3-dev ^(2)^ | | Python plugin.
| python3-dev ^(2)^ | | Python plugin.
| libperl-dev | | Perl plugin.
| ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby plugin.
| liblua5.4-dev | | Lua plugin.
@@ -728,26 +750,26 @@ The WeeChat directories are:
[width="100%",cols="1m,3",options="header"]
|===
| Path ^(1)^ | Description
| Path ^(1)^ | Description
| ~/.config/weechat/ | WeeChat configuration files: `*.conf`, certificates, etc.
| ~/.local/share/weechat/ | WeeChat data files: logs, scripts, scripts data, xfer files, etc.
|    logs/ | Log files (one file per buffer).
|    python/ | Python scripts.
|       autoload/ | Python scripts auto-loaded on startup ^(2)^.
|       autoload/ | Python scripts auto-loaded on startup ^(2)^.
|    perl/ | Perl scripts.
|       autoload/ | Perl scripts auto-loaded on startup ^(2)^.
|       autoload/ | Perl scripts auto-loaded on startup ^(2)^.
|    ruby/ | Ruby scripts.
|       autoload/ | Ruby scripts auto-loaded on startup ^(2)^.
|       autoload/ | Ruby scripts auto-loaded on startup ^(2)^.
|    lua/ | Lua scripts.
|       autoload/ | Lua scripts auto-loaded on startup ^(2)^.
|       autoload/ | Lua scripts auto-loaded on startup ^(2)^.
|    tcl/ | Tcl scripts.
|       autoload/ | Tcl scripts auto-loaded on startup ^(2)^.
|       autoload/ | Tcl scripts auto-loaded on startup ^(2)^.
|    guile/ | Guile scripts.
|       autoload/ | Guile scripts auto-loaded on startup ^(2)^.
|       autoload/ | Guile scripts auto-loaded on startup ^(2)^.
|    javascript/ | JavaScript scripts.
|       autoload/ | JavaScript scripts auto-loaded on startup ^(2)^.
|       autoload/ | JavaScript scripts auto-loaded on startup ^(2)^.
|    php/ | PHP scripts.
|       autoload/ | PHP scripts auto-loaded on startup ^(2)^.
|       autoload/ | PHP scripts auto-loaded on startup ^(2)^.
| ~/.cache/weechat/ | WeeChat cache files: scripts cache.
| /run/user/1000/weechat/ | WeeChat runtime files: FIFO pipe, Relay UNIX sockets.
|===
@@ -1274,10 +1296,10 @@ Tags commonly used (non-exhaustive list):
| no_highlight | No highlight is possible on line.
| no_log | Line is not written in log file.
| log0 … log9 | Level of log for line (see `/help logger`).
| notify_none | The line must not be added to hotlist. ^(1)^
| notify_message | The line is a user message. ^(1)^
| notify_private | The line is a private message. ^(1)^
| notify_highlight | The line is a message with highlight. ^(1)^
| notify_none | The line must not be added to hotlist. ^(1)^
| notify_message | The line is a user message. ^(1)^
| notify_private | The line is a private message. ^(1)^
| notify_highlight | The line is a message with highlight. ^(1)^
| self_msg | Self message.
| nick_xxx | Message is from nick "xxx".
| prefix_nick_ccc | Prefix is a nick with color "ccc".
@@ -1495,27 +1517,28 @@ They can be changed and new ones can be added with the <<command_weechat_key,/ke
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| Key | Description | Command
| Key | Description | Command
| kbd:[Del] +
kbd:[Ctrl+d] | Delete next char in command line. | `+/input delete_next_char+`
kbd:[Ctrl+d] | Delete next char in command line. | `+/input delete_next_char+`
| kbd:[Backspace] +
kbd:[Ctrl+h] | Delete previous char in command line. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | Delete from cursor until end of command line (deleted string is copied to the internal clipboard). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Transpose chars. | `/input transpose_chars`
| kbd:[Ctrl+u] | Delete from cursor until beginning of command line (deleted string is copied to the internal clipboard). | `+/input delete_beginning_of_line+`
| kbd:[Ctrl+w] | Delete previous word of command line (deleted string is copied to the internal clipboard). | `+/input delete_previous_word+`
| kbd:[Ctrl+y] | Paste the internal clipboard content. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Undo last action on command line. | `+/input undo+`
| kbd:[Alt+_] | Redo last action on command line. | `+/input redo+`
| kbd:[Tab] | Complete command or nick (kbd:[Tab] again: find next completion). | `+/input complete_next+`
| kbd:[Shift+Tab] | Without completion: do a partial completion, with pending completion: complete with previous completion. | `+/input complete_previous+`
kbd:[Ctrl+h] | Delete previous char in command line. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | Delete from cursor until end of command line (deleted string is copied to the internal clipboard). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Transpose chars. | `/input transpose_chars`
| kbd:[Ctrl+u] | Delete from cursor until beginning of command line (deleted string is copied to the internal clipboard). | `+/input delete_beginning_of_line+`
| kbd:[Alt+Backspace] | Delete previous word of command line (deleted string is copied to the internal clipboard). | `+/input delete_previous_word+`
| kbd:[Ctrl+w] | Delete previous word of command line until whitespace (deleted string is copied to the internal clipboard). | `+/input delete_previous_word_whitespace+`
| kbd:[Ctrl+y] | Paste the internal clipboard content. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Undo last action on command line. | `+/input undo+`
| kbd:[Alt+_] | Redo last action on command line. | `+/input redo+`
| kbd:[Tab] | Complete command or nick (kbd:[Tab] again: find next completion). | `+/input complete_next+`
| kbd:[Shift+Tab] | Without completion: do a partial completion, with pending completion: complete with previous completion. | `+/input complete_previous+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | Execute command or send message (in search mode: stop search). | `+/input return+`
| kbd:[Alt+Enter] | Insert a newline. | `+/input insert \n+`
| kbd:[Alt+d] | Delete next word in command line (deleted string is copied to the internal clipboard). | `+/input delete_next_word+`
| kbd:[Alt+k] | Grab a key and insert its code (and command bound if key exists) in command line. | `+/input grab_key_command+`
| kbd:[Alt+r] | Delete entire command line. | `+/input delete_line+`
kbd:[Ctrl+m] | Execute command or send message (in search mode: stop search). | `+/input return+`
| kbd:[Alt+Enter] | Insert a newline. | `+/input insert \n+`
| kbd:[Alt+d] | Delete next word in command line (deleted string is copied to the internal clipboard). | `+/input delete_next_word+`
| kbd:[Alt+k] | Grab a key and insert its code (and command bound if key exists) in command line. | `+/input grab_key_command+`
| kbd:[Alt+r] | Delete entire command line. | `+/input delete_line+`
|===
[[key_bindings_cmdline_color_codes]]
@@ -1707,7 +1730,7 @@ These mouse actions are possible only if mouse is enabled with key kbd:[Alt+m]
[width="100%",cols="^.^3,^.^3,^.^3,.^8,.^8",options="header"]
|===
| Button/Wheel ^(1)^ | Gesture | Area | Description | Command
| Button/Wheel ^(1)^ | Gesture | Area | Description | Command
| ◾◽◽ | - | chat | Switch to window. | `+/window ${_window_number}+`
| ◾◽◽ | left | chat | Switch to previous buffer. | `+/window ${_window_number};/buffer +1+`
| ◾◽◽ | right | chat | Switch to next buffer. | `+/window ${_window_number};/buffer +1+`
@@ -1759,7 +1782,7 @@ These keys and actions are used on the fset buffer (see <<fset,Fset plugin>>).
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key | Action ^(1)^ | Description | Command
| Key | Action ^(1)^ | Description | Command
| kbd:[↑] | | Move one line up. | `+/fset -up+`
| kbd:[↓] | | Move one line down. | `+/fset -down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
@@ -1805,7 +1828,7 @@ These keys and actions are used on the script buffer (see <<script_manager,scrip
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key | Action ^(1)^ | Description | Command
| Key | Action ^(1)^ | Description | Command
| kbd:[↑] | | Move one line up. | `+/script up+`
| kbd:[↓] | | Move one line down. | `+/script down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
@@ -2179,6 +2202,36 @@ with `+/script install buffer_autoset.py+` and get help with
[[highlights]]
=== Highlights
[[highlights_disable]]
==== Disable highlights
You can disable highlights with option
<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
(regular expression). +
When a highlight is disabled with this option, the other highlight options are
ignored.
For example to disable any highlight on messages with a word beginning
with "flash" between chevrons:
----
/set weechat.look.highlight_regex "<flash.*>"
----
This can also be set with the buffer property "highlight_disable_regex".
Same example, specific to the current buffer:
----
/buffer set highlight_disable_regex <flash.*>
----
[NOTE]
The buffer property "highlight_disable_regex" is not saved in configuration. +
You can easily save it with the script _buffer_autoset.py_: you can install it
with `+/script install buffer_autoset.py+` and get help with
`+/help buffer_autoset+`.
[[highlights_words]]
==== Add words to highlight
@@ -2191,7 +2244,7 @@ You can add other words to highlight with the option
highlight your nick and "word1", "word2" and all words beginning with "test":
----
/set weechat.look.highlight word1,word2,test*
/set weechat.look.highlight "word1,word2,test*"
----
If you need a more specific rule for the word, you can use regular expressions
@@ -2199,7 +2252,7 @@ with the option <<option_weechat.look.highlight_regex,weechat.look.highlight_reg
for example to highlight words "flashcode", "flashcöde" and "flashy":
----
/set weechat.look.highlight_regex flashc[oö]de|flashy
/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----
The delimiters around words to highlight can be customized with the option
@@ -2377,6 +2430,48 @@ You'll have following files:
...
....
[[logger_rotation_compression]]
==== Rotation and compression
It is possible to define a max size for log files, and when it is reached,
there is automatic rotation of log file.
The rotated log files can be compressed with gzip or
https://facebook.github.io/zstd/[zstd ^↗^,window=_blank].
[NOTE]
As the compression of a file can take some time, it is performed in background.
Example with a max size of 2GB and compression with gzip, using good compression
level (slower than default one):
----
/set logger.file.rotation_compression_type gzip
/set logger.file.rotation_compression_level 80
/set logger.file.rotation_size_max "2g"
----
If you want to use a decimal number, you can use the unit below and multiply
by 1000, for example to set max size to 2.5GB:
----
/set logger.file.rotation_size_max "2500m"
----
With these settings, you'll end with files like these ones (in this example
there is rotation only for the log of #weechat channel):
....
~/.local/share/weechat
└── logs
├── core.weechat.weechatlog
├── irc.server.libera.weechatlog
├── irc.libera.#weechat.weechatlog
├── irc.libera.#weechat.weechatlog.1.gz
├── irc.libera.#weechat.weechatlog.2.gz
└── irc.libera.#weechat.weechatlog.3.gz
....
[[logger_commands]]
==== Commands
@@ -3885,8 +3980,8 @@ when replying to CTCP:
| Code | Description | Value/example
| $clientinfo | List of supported CTCP | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| $version | WeeChat version | `+0.4.0-dev+`
| $versiongit | WeeChat version + Git version ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git version ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $versiongit | WeeChat version + Git version ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git version ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $compilation | WeeChat compilation date | `+Dec 16 2012+`
| $osinfo | Info about OS | `+Linux 2.6.32-5-amd64 / x86_64+`
| $site | WeeChat site | `+https://weechat.org/+`
@@ -4755,7 +4850,7 @@ type:
[width="100%",cols="2,3,7",options="header"]
|===
| Hook | Default variable | Update allowed ^(1)^
| Hook | Default variable | Update allowed ^(1)^
| signal | tg_signal_data |
| hsignal | |
| modifier | tg_string | tg_string
@@ -4846,6 +4941,7 @@ All callbacks set following variables in hashtable:
|===
| Variable | Type | Description
| tg_trigger_name | string | Name of trigger.
| tg_hook_type | string | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
@@ -4971,7 +5067,7 @@ Variables set using tags in message:
| tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc").
| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx").
| tg_tag_notify | string | Notify level (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Notify level, if different from _none_.
| tg_msg_pv | string | "1" for a private message, otherwise "0".
|===
@@ -5013,7 +5109,7 @@ Variables set using tags in message:
| tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc").
| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx").
| tg_tag_notify | string | Notify level (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Notify level, if different from _none_.
| tg_msg_pv | string | "1" for a private message, otherwise "0".
|===
@@ -631,6 +631,8 @@ _text_search_input_   (string) +
_highlight_words_   (string) +
_highlight_regex_   (string) +
_highlight_regex_compiled_   (pointer) +
_highlight_disable_regex_   (string) +
_highlight_disable_regex_compiled_   (pointer) +
_highlight_tags_restrict_   (string) +
_highlight_tags_restrict_count_   (integer) +
_highlight_tags_restrict_array_   (pointer, array_size: "highlight_tags_restrict_count") +
@@ -128,6 +128,8 @@
| weechat | uptime | Durée de fonctionnement de WeeChat (format : "jours:hh:mm:ss") | "days" (nombre de jours) ou "seconds" (nombre de secondes) (optionnel)
| weechat | uptime_current | Durée de fonctionnement de WeeChat pour le processus actuel seulement (les mises à jour par la commande /upgrade sont ignorées) (format : "jours:hh:mm:ss") | "days" (nombre de jours) ou "seconds" (nombre de secondes) (optionnel)
| weechat | version | version de WeeChat | -
| weechat | version_git | version git de WeeChat (sortie de la commande "git describe" pour une version de développement seulement, vide pour une version stable) | -
@@ -6,7 +6,7 @@
// tag::url_options[]
[width="100%",cols="2,^1,7",options="header"]
|===
| Option | Type ^(1)^ | Constantes ^(2)^
| Option | Type ^(1)^ | Constantes ^(2)^
| verbose | long |
+29 -12
View File
@@ -176,7 +176,7 @@ Sans paramètre, cette commande affiche la liste des bannissements pour le canal
ls : lister les capacités supportées par le serveur
list : lister les capacités actuellement activées
req : demander une capacité
req : demander une nouvelle capacité ou supprimer une capacité (si elle commence par "-", par exemple : "-multi-prefix")
ack : accuser réception de capacités qui nécessitent un accusé de réception du client
end : terminer la négociation de capacité
@@ -187,8 +187,14 @@ Les capacités supportées par WeeChat sont : account-notify, away-notify, cap-
Les capacités à activer automatiquement sur les serveurs peuvent être définies dans l'option irc.server_default.capabilities (ou par serveur dans l'option irc.server.xxx.capabilities).
Exemples :
/cap
/cap req multi-prefix away-notify
afficher les capacités supportées et activées :
/cap
demander les capacités multi-prefix et away-notify :
/cap req multi-prefix away-notify
demander la capacité extended-join, supprimer la capacité multi-prefix :
/cap req extended-join -multi-prefix
supprimer la capacité away-notify :
/cap req -away-notify
----
[[command_irc_connect]]
@@ -1608,6 +1614,7 @@ liste des actions :
delete_previous_char : effacer le caractère précédent
delete_next_char : effacer le caractère suivant
delete_previous_word : effacer le mot précédent
delete_previous_word_whitespace : effacer le mot précédent (jusqu'à un espace)
delete_next_word : effacer le mot suivant
delete_beginning_of_line : effacer du début de la ligne jusqu'au curseur
delete_end_of_line : effacer du curseur jusqu'à la fin de la ligne
@@ -2116,34 +2123,41 @@ Exemples :
----
[[command_weechat_upgrade]]
* `+upgrade+`: relancer le binaire WeeChat sans se déconnecter des serveurs
* `+upgrade+`: sauvegarder la session WeeChat et relancer le binaire WeeChat sans se déconnecter des serveurs
----
/upgrade [-yes] [<chemin_vers_binaire>|-quit]
/upgrade [-yes] [<chemin_vers_binaire>|-save|-quit]
-yes : requis si l'option "weechat.look.confirm_upgrade" est activée
chemin_vers_binaire : chemin vers le binaire WeeChat (par défaut le binaire courant)
-dummy : ne rien faire (option utilisée pour éviter une complétion accidentelle avec "-quit")
-quit : fermer *TOUTES* les connexions, sauver la session et quitter, ce qui rend possible une restauration différée (voir ci-dessous)
-save : sauvegarder seulement la session, ne pas quitter ni relancer WeeChat ; les fichiers de configuration ne sont pas sauvegardés (si besoin vous pouvez utiliser /save avant cette commande)
-quit : fermer *TOUTES* les connexions, sauvegarder la session et quitter, ce qui rend possible une restauration différée (voir ci-dessous)
Cette commande met à jour et recharge une session de WeeChat qui tourne. Le nouveau binaire WeeChat doit avoir été compilé ou installé via un gestionnaire de paquet avant de lancer cette commande.
Note : les connexions SSL sont perdues durant la mise à jour, car le rechargement de session SSL n'est pas possible actuellement avec GnuTLS. Il y a une reconnexion automatique après la mise à jour.
Important : l'utilisation de l'option -save peut être dangereuse, il est recommandé d'utiliser seulement /upgrade (ou avec -quit) pour une mise à jour standard et un redémarrage ; l'option -save peut être utilisée pour sauvegarder régulièrement la session et la restaurer en cas de sortie anormale (panne de courant, crash, etc.).
Le processus de mise à jour comporte 4 étapes :
1. sauvegarder la session pour le cœur et les extensions (tampons, historique, ...)
2. décharger toutes les extensions (les fichiers de configuration (*.conf) sont écrits sur disque)
3. sauvegarder la configuration WeeChat (weechat.conf)
4. exécuter le nouveau binaire WeeChat et recharger la session.
Avec l'option "-quit", le processus est légèrement différent :
Avec l'option "-quit", le processus est le suivant :
1. fermer *TOUTES* les connexions
2. sauvegarder la session (fichiers *.upgrade)
3. décharger les extensions
4. sauvegarder la configuration WeeChat
5. quitter WeeChat
Et plus tard vous pouvez restaurer la session avec la commande : weechat --upgrade
IMPORTANT : vous devez restaurer la session avec exactement la même configuration (fichiers *.conf).
Avec l'option "-save", le processus est le suivant :
1. sauvegarder la session (fichiers *.upgrade) avec un état déconnecté pour les serveurs IRC et les clients Relay (mais aucune déconnexion n'est faite)
Avec "-quit" ou "-save", vous pouvez restaurer la session plus tard avec cette commande : weechat --upgrade
IMPORTANT : vous devez restaurer la session avec exactement la même configuration (fichiers *.conf) et si possible la même version de WeeChat (ou une plus récente).
Il est également possible de restaurer la session WeeChat sur une autre machine si vous y copiez le contenu des répertoires personnels de WeeChat (voir /debug dirs).
----
@@ -2328,6 +2342,7 @@ Les variables suivantes peuvent être utilisées dans ces options :
- ${format_hotlist} : la hotlist formatée (évaluation de l'option buflist.format.hotlist)
- ${hotlist} : la hotlist brute
- ${hotlist_priority} : "none", "low", "message", "private" ou "highlight"
- ${hotlist_priority_number} : -1 = none, 0 = low, 1 = message, 2 = private, 3 = highlight
- ${format_lag} : le lag pour un tampon de serveur IRC, vide s'il n'y a pas de lag (évaluation de l'option buflist.format.lag)
- ${format_tls_version}: indicateur de la version de TLS pour le serveur courant, vide pour les canaux (évaluation de l'option buflist.format.tls_version)
----
@@ -3049,7 +3064,7 @@ Exemples :
----
/spell enable|disable|toggle
listdict
setdict <dict>[,<dict>...]
setdict -|<dict>[,<dict>...]
deldict
addword [<dict>] <mot>
@@ -3057,7 +3072,7 @@ Exemples :
disable : désactiver le vérificateur d'orthographe
toggle : activer/désactiver le vérificateur d'orthographe
listdict : afficher les dictionnaires installés
setdict : définir le dictionnaire pour le tampon courant (plusieurs dictionnaires peuvent être séparés par une virgule)
setdict : définir le dictionnaire pour le tampon courant (plusieurs dictionnaires peuvent être séparés par une virgule, la valeur spéciale "-" désactive la vérification orthographique sur le tampon courant)
deldict : supprimer le dictionnaire utilisé sur le tampon courant
addword : ajouter un mot dans le dictionnaire personnel
@@ -3184,8 +3199,10 @@ Exemples (vous pouvez aussi regarder les triggers par défaut avec /trigger list
cacher la barre de pseudos sur les petits terminaux :
/trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist"
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
sauver la configuration chaque heure (de manière silencieuse) :
sauver silencieusement la configuration chaque heure :
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
sauver silencieusement la session WeeChat à minuit (voir /help upgrade) :
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
ouvrir le tampon moniteur des triggers et afficher seulement les modificateurs et les triggers dont le nom commence par "resize" :
/trigger monitor @modifier,resize*
----
+51 -3
View File
@@ -750,6 +750,12 @@
** valeurs: toute chaîne
** valeur par défaut: `+""+`
* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
** description: pass:none[expression régulière POSIX étendue utilisée pour empêcher un highlight sur un message : cette option a une priorité plus élevée sur les autres options de highlight (si la chaîne est trouvée dans le message, le highlight est désactivé et les autres options sont ignorées), l'expression régulière est insensible à la casse (utilisez "(?-i)" au début pour la rendre sensible à la casse), exemples : "<flash.*>", "(?-i)<Flash.*>"]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+""+`
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** description: pass:none[expression régulière POSIX étendue utilisée pour vérifier si un message a un "highlight" ou non, au moins une correspondance dans la chaîne doit être entourée de délimiteurs (caractères différents de : alphanumérique, "-", "_" et "|"), l'expression régulière est insensible à la casse (utilisez "(?-i)" au début pour la rendre sensible à la casse), exemples : "flashcode|flashy", "(?-i)FlashCode|flashy"]
** type: chaîne
@@ -1397,7 +1403,7 @@
** valeur par défaut: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** description: pass:none[sauve automatiquement le contenu des tampons dans des fichiers (sauf si un tampon désactive le log)]
** description: pass:none[sauve automatiquement le contenu des tampons dans des fichiers (sauf si un tampon désactive le log) ; si désactivé, l'enregistrement est désactivé sur tous les tampons]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
@@ -1462,6 +1468,24 @@
** valeurs: toute chaîne
** valeur par défaut: `+"_"+`
* [[option_logger.file.rotation_compression_level]] *logger.file.rotation_compression_level*
** description: pass:none[niveau de compression pour les fichiers de log qui tournent (avec extension ".1", ".2", etc.), si l'option logger.file.rotation_compression_type est activée ; 1 = peu de compression / rapide ... 100 = meilleure compression / lent ; la valeur est un pourcentage converti de 1 à 9 pour gzip et de 1 à 19 pour zstd ; la valeur par défaut est recommandée, elle offre un bon compromis compression/vitesse]
** type: entier
** valeurs: 1 .. 100
** valeur par défaut: `+20+`
* [[option_logger.file.rotation_compression_type]] *logger.file.rotation_compression_type*
** description: pass:none[type de compression pour les fichiers de log qui tournent ; si défini à "none", les fichiers de logs qui tournent ne sont pas compressés ; ATTENTION : si la rotation est activée avec un autre type de compression (ou pas de compression), vous devez d'abord décharger l'extension logger, compresser les fichiers avec le nouveau type (ou décompresser les fichiers), puis changer l'option dans logger.conf, puis charger l'extension logger]
** type: entier
** valeurs: none, gzip, zstd
** valeur par défaut: `+none+`
* [[option_logger.file.rotation_size_max]] *logger.file.rotation_size_max*
** description: pass:none[lorsque cette taille est atteinte, une rotation des fichiers est effectuée : les fichiers de log existants sont renommés (.1 devient .2, .2 devient .3, etc.) et le fichier courant est renommé avec l'extension .1 ; un nombre entier avec un suffixe est accepté : b = octets (par défaut si pas d'unité spécifiée), k = kilo-octets, m = méga-octets, g = giga-octets, t = téra-octets ; exemple : "2g" provoque une rotation si la taille du fichier est > 2 000 000 000 octets ; si défini à "0", aucune rotation n'est effectuée (taille de log illimitée) ; ATTENTION : avant de changer cette option, vous devriez d'abord définir le type de compression via l'option logger.file.rotation_compression_type]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"0"+`
* [[option_logger.file.time_format]] *logger.file.time_format*
** description: pass:none[format de date/heure utilisé dans les fichiers log (voir man strftime pour le format de date/heure)]
** type: chaîne
@@ -1544,6 +1568,12 @@
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
** valeur par défaut: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** description: pass:none[couleur du texte pour l'identifiant de contexte du trigger dans le tampon moniteur]
** type: couleur
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
** valeur par défaut: `+cyan+`
* [[option_trigger.color.regex]] *trigger.color.regex*
** description: pass:none[couleur du texte pour les expressions régulières]
** type: couleur
@@ -1771,7 +1801,7 @@
** valeur par défaut: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** description: pass:none[activer buflist]
** description: pass:none[activer buflist ; il est recommandé d'utiliser cette option plutôt que de juste cacher la barre car cela supprime également des hooks internes qui ne sont plus nécessaires lorsque la barre est cachée ; vous pouvez aussi utiliser la commande "/buflist toggle" ou la touche par défaut key alt+shift+b]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
@@ -2127,7 +2157,7 @@
** valeur par défaut: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** description: pass:none[couleur pour le texte dans les messages chghost]
** description: pass:none[couleur pour le texte dans les messages "chghost"]
** type: couleur
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
** valeur par défaut: `+brown+`
@@ -2150,6 +2180,12 @@
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
** valeur par défaut: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** description: pass:none[couleur pour le texte dans les messages "setname"]
** type: couleur
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
** valeur par défaut: `+brown+`
* [[option_irc.color.mirc_remap]] *irc.color.mirc_remap*
** description: pass:none[réassigner les couleurs mirc dans les messages en utilisant une table de hachage : les clés sont "fg,bg" sous forme d'entiers entre -1 (non spécifié) et 15, les valeurs sont des noms de couleur WeeChat ou nombres (le format est : "1,-1:couleur1;2,7:couleur2"), exemple : "1,-1:darkgray;1,2:white,blue" pour réassigner le noir en "darkgray" et le noir sur bleu en "white,blue" ; les couleurs WeeChat par défaut pour les codes IRC sont : 0=white, 1=black, 2=blue, 3=green, 4=lightred, 5=red, 6=magenta, 7=brown, 8=yellow, 9=lightgreen, 10=cyan, 11=lightcyan, 12=lightblue, 13=lightmagenta, 14=darkgray, 15=gray]
** type: chaîne
@@ -2330,6 +2366,12 @@
** valeurs: on, off
** valeur par défaut: `+on+`
* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change*
** description: pass:none[afficher le changement de pseudo en privé]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
* [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address*
** description: pass:none[afficher un avertissement dans le tampon privé si l'adresse du pseudo distant a changé ; cette option est désactivée par défaut car les serveurs comme bitlbee causent un affichage de cet avertissement à tort (l'adresse du pseudo distant change plusieurs fois à la connexion)]
** type: booléen
@@ -2546,6 +2588,12 @@
** valeurs: on, off
** valeur par défaut: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** description: pass:none[activer le filtre intelligent pour les messages "setname"]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+on+`
* [[option_irc.look.temporary_servers]] *irc.look.temporary_servers*
** description: pass:none[activer l'ajout automatique des serveurs temporaires avec la commande /connect]
** type: booléen
+9 -4
View File
@@ -428,6 +428,8 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|          test-gui-buffer.cpp | Tests : fonctions de tampons.
|          test-gui-chat.cpp | Tests : fonctions de discussion.
|          test-gui-color.cpp | Tests : couleurs.
|          test-gui-filter.cpp | Tests : filtres.
|          test-gui-input.cpp | Tests : fonctions d'entrée.
|          test-gui-line.cpp | Tests : lignes.
|          test-gui-nick.cpp | Tests : pseudos.
|       plugins/ | Racine des tests unitaires pour les extensions.
@@ -455,6 +457,9 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|             test-typing-status.cpp | Tests : statut d'écriture.
|          relay/ | Racine des tests unitaires pour l'extension Relay.
|             test-relay-auth.cpp | Tests : authentification des clients.
|          xfer/ | Racine des tests unitaires pour l'extension Xfer.
|             test-xfer-file.cpp | Tests : fonctions sur les fichiers.
|             test-xfer-network.cpp | Tests : fonctions réseau.
|===
[[documentation_translations]]
@@ -956,10 +961,10 @@ Toutes les combinaisons sont résumées dans ce tableau :
| [hex]#19# + `B` + `EXT` | [hex]#19# `+B@00124+` | chat + barres | Définir le couleur de fond (couleur étendue).
| [hex]#19# + `*` + `(ATTR)STD` | [hex]#19# `+*05+` | chat + barres | Définir la couleur de texte (couleur WeeChat).
| [hex]#19# + `*` + `(ATTR)EXT` | [hex]#19# `+*@00214+` | chat + barres | Définir la couleur de texte (couleur étendue).
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `STD` ^(1)^ | [hex]#19# `+*08,05+` | chat + barres | Définir la couleur de texte/fond (couleurs WeeChat).
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `EXT` ^(1)^ | [hex]#19# `+*01,@00214+` | chat + barres | Définir la couleur de texte (couleur WeeChat) et de fond (couleur étendue).
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `STD` ^(1)^ | [hex]#19# `+*@00214,05+` | chat + barres | Définir la couleur de texte (couleur étendue) et de fond (couleur WeeChat).
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `EXT` ^(1)^ | [hex]#19# `+*@00214,@00017+` | chat + barres | Définir la couleur de texte/fond (couleurs étendues).
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `STD` ^(1)^ | [hex]#19# `+*08,05+` | chat + barres | Définir la couleur de texte/fond (couleurs WeeChat).
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `EXT` ^(1)^ | [hex]#19# `+*01,@00214+` | chat + barres | Définir la couleur de texte (couleur WeeChat) et de fond (couleur étendue).
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `STD` ^(1)^ | [hex]#19# `+*@00214,05+` | chat + barres | Définir la couleur de texte (couleur étendue) et de fond (couleur WeeChat).
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `EXT` ^(1)^ | [hex]#19# `+*@00214,@00017+` | chat + barres | Définir la couleur de texte/fond (couleurs étendues).
| [hex]#19# + `*` + `(ATTR)STD` + `~` + `STD` | [hex]#19# `+*08~05+` | chat + barres | Définir la couleur de texte/fond (couleurs WeeChat).
| [hex]#19# + `*` + `(ATTR)STD` + `~` + `EXT` | [hex]#19# `+*01~@00214+` | chat + barres | Définir la couleur de texte (couleur WeeChat) et de fond (couleur étendue).
| [hex]#19# + `*` + `(ATTR)EXT` + `~` + `STD` | [hex]#19# `+*@00214~05+` | chat + barres | Définir la couleur de texte (couleur étendue) et de fond (couleur WeeChat).
+279 -107
View File
@@ -1820,26 +1820,35 @@ weechat_string_free_split (argv);
[NOTE]
Cette fonction n'est pas disponible dans l'API script.
==== string_build_with_split_string
==== string_rebuild_split_string
Construire une chaîne à partir d'une chaîne découpée.
_Mis à jour dans la 3.7._
Reconstruire une chaîne à partir d'une chaîne découpée, d'un séparateur facultatif
et d'un index de première/dernière chaîne à utiliser.
Prototype :
[source,c]
----
char *weechat_string_build_with_split_string (char **split_string
const char *separator);
char *weechat_string_rebuild_split_string (char **split_string,
const char *separator,
int index_start, int index_end);
----
Paramètres :
* _split_string_ : chaîne découpée par la fonction <<_string_split,string_split>>
* _separator_ : chaîne utilisée pour séparer les différentes chaînes
* _separator_ : chaîne utilisée pour séparer les différentes chaînes (peut être
NULL ou une chaîne vide)
* _index_start_ : index de la première chaîne à utiliser (≥ 0)
* _index_end_ : index de la dernière chaîne à utiliser (doit être ≥ _index_start_ ;
la valeur spéciale -1 peut être utilisée pour utiliser toutes les chaînes
jusqu'à ce que NULL soit trouvé)
Valeur de retour :
* chaîne construite avec la chaîne découpée (doit être supprimée par un appel à
* chaîne reconstruite avec la chaîne découpée (doit être supprimée par un appel à
"free" après utilisation)
Exemple en C :
@@ -1849,7 +1858,7 @@ Exemple en C :
char **argv;
int argc;
argv = weechat_string_split ("abc def ghi", " ", 0, 0, &argc);
char *str = weechat_string_build_with_split_string (argv, ";");
char *str = weechat_string_rebuild_split_string (argv, ";", 0, -1);
/* str == "abc;def;ghi" */
/* ... */
free (str);
@@ -1981,6 +1990,53 @@ def string_format_size(size: int) -> str: ...
str = weechat.string_format_size(15200) # == "15.2 Ko"
----
==== string_parse_size
_WeeChat ≥ 3.7._
Analyser une chaîne avec une taille et une unité optionnelle et retourner
la taille en octets.
Prototype :
[source,c]
----
unsigned long long weechat_string_parse_size (const char *size);
----
Paramètres :
* _size_ : la taille sous forme de chaîne : nombre entier positif suivi par des
espaces optionnels et une unité optionnelle (en minuscules ou majuscules),
qui est une des suivantes :
** _b_ : octets
** _k_ : kilo-octets (1k = 1000 octets)
** _m_ : méga-octets (1m = 1000k = 1 000 000 octets)
** _g_ : giga-octets (1g = 1000m = 1 000 000 000 octets)
** _t_ : tera-octets (1t = 1000g = 1 000 000 000 000 octets)
Valeur de retour :
* taille en octets, 0 si erreur
Exemple en C :
[source,c]
----
unsigned long long size = weechat_parse_size ("1.34m"); /* size == 1340000 */
----
Script (Python) :
[source,python]
----
# prototype
def string_parse_size(size: str) -> int: ...
# exemple
size = weechat.string_parse_size("1.34m") # 1340000
----
==== string_color_code_size
_WeeChat ≥ 3.0._
@@ -2666,7 +2722,7 @@ première étendue à la dernière) :
| `+${eval:xxx}+` | 1.3
| Chaîne à évaluer.
| >> `+${eval:${date:${weechat.look.buffer_time_format}}}+` +
== `+19:02:45+` ^(1)^ +
== `+19:02:45+` ^(1)^ +
+
^(1)^ Avec des couleurs s'il y a des codes couleur dans l'option
weechat.look.buffer_time_format
@@ -2734,7 +2790,7 @@ première étendue à la dernière) :
== `+! ednom el ,ruojnoB+` +
+
>> `+${rev:Bonjour, ${color:red}le monde !}+` +
== `+! ednom el30F ,ruojnoB+` ^(1)^ +
== `+! ednom el30F ,ruojnoB+` ^(1)^ +
+
^(1)^ Pas de couleur, le code couleur est inversé
@@ -2744,7 +2800,7 @@ première étendue à la dernière) :
== `+! ednom el ,ruojnoB+` +
+
>> `+${revscr:Bonjour, ${color:red}le monde !}+` +
== `+! ednom el ,ruojnoB+` ^(1)^ +
== `+! ednom el ,ruojnoB+` ^(1)^ +
+
^(1)^ (`pass:[ ,ruojnoB]` en rouge
@@ -2858,10 +2914,10 @@ première étendue à la dernière) :
| Code couleur WeeChat (le nom de couleur a des attributs facultatifs),
voir la fonction <<_color,color>> pour les formats supportés.
| >> `+${color:red}texte rouge+` +
== `+texte rouge+` ^(1)^ +
== `+texte rouge+` ^(1)^ +
+
>> `+${color:*214}texte orange gras+` +
== `+texte orange gras+` ^(2)^ +
== `+texte orange gras+` ^(2)^ +
+
^(1)^ En rouge +
^(2)^ En orange gras
@@ -2968,7 +3024,7 @@ première étendue à la dernière) :
| Chaîne traduite (dépend de la langue utilisée par WeeChat pour afficher les
messages).
| >> `+${translate:Plugin}+` +
== `+Extension+` ^(1)^ +
== `+Extension+` ^(1)^ +
+
^(1)^ Exemple en Français
@@ -3803,6 +3859,50 @@ rc = weechat_crypto_hash (data, strlen (data), "sha256", hash, &hash_size);
[NOTE]
Cette fonction n'est pas disponible dans l'API script.
==== crypto_hash_file
_WeeChat ≥ 3.7._
Calculer le hachage d'un fichier.
Prototype :
[source,c]
----
int weechat_crypto_hash_file (const char *filename, const char *hash_algo,
void *hash, int *hash_size);
----
Paramètres :
* _filename_ : chemin et nom du fichier
* _hash_algo_ : l'algorithme de hachage, voir le tableau de la fonction
<<crypto_hash_algorithms,crypto_hash>>
* _hash_ : pointeur vers la variable de hachage, qui est utilisée pour stocker
le résultat du hachage (le tampon doit être suffisamment grand, selon
l'algorithme, voir le tableau de la fonction
<<crypto_hash_algorithms,crypto_hash>>)
* _hash_size_ : pointeur vers une variable utiliser pour stocker la longueur
du résultat du hachage (en octets) (peut être NULL)
Valeur de retour :
* 1 si OK, 0 si erreur
Exemple en C :
[source,c]
----
char hash[256 / 8];
int rc, hash_size;
rc = weechat_crypto_hash_file ("/chemin/vers/fichier", "sha256", hash, &hash_size);
/* rc == 1, hash_size == 32 et hash est un tampon avec :
71 c4 80 df 93 d6 ae 2f 1e fa d1 44 7c 66 c9 52 5e 31 62 18 cf 51 fc 8d 9e d8 32 f2 da f1 8b 73 */
----
[NOTE]
Cette fonction n'est pas disponible dans l'API script.
==== crypto_hash_pbkdf2
_WeeChat ≥ 2.8._
@@ -4158,6 +4258,47 @@ if (weechat_file_copy ("/tmp/test.txt", "/path/to/test2.txt"))
[NOTE]
Cette fonction n'est pas disponible dans l'API script.
==== file_compress
_WeeChat ≥ 3.7._
Compresser un fichier avec gzip ou zstd.
Prototype :
[source,c]
----
int weechat_file_compress (const char *from, const char *to,
const char *compressor, int compression_level);
----
Paramètres :
* _from_ : fichier source
* _to_ : fichier cible
* _compressor_ : le compresseur à utiliser, un parmi :
** _gzip_ : compression gzip
** _zstd_ : compression zstandard
* _compression_level_ : niveau de compression, entre 1 (rapide, peu de
compression) à 100 (lent, meilleure compression)
Valeur de retour :
* 1 si OK, 0 si erreur
Exemple en C :
[source,c]
----
if (weechat_file_compress ("/tmp/test.txt", "/tmp/test.txt.zst", "zstd", 50))
{
/* OK */
}
----
[NOTE]
Cette fonction n'est pas disponible dans l'API script.
[[util]]
=== Util
@@ -6031,7 +6172,7 @@ Script (Python) :
def config_new(name: str, callback_reload: str, callback_reload_data: str) -> str: ...
# exemple
def my_config_reload_cb(data, config_file):
def my_config_reload_cb(data: str, config_file: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -6302,26 +6443,26 @@ def config_new_section(config_file: str, name: str,
callback_delete_option: str, callback_delete_option_data: str) -> str: ...
# exemple
def my_section_read_cb(data, config_file, section, option_name, value):
def my_section_read_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
# return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
# return weechat.WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND
# return weechat.WEECHAT_CONFIG_OPTION_SET_ERROR
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_write_default_cb(data, config_file, section_name):
def my_section_write_default_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_create_option_cb(data, config_file, section, option_name, value):
def my_section_create_option_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
def my_section_delete_option_cb(data, config_file, section, option):
def my_section_delete_option_cb(data: str, config_file: str, section: str, option: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED
@@ -6557,21 +6698,21 @@ Script (Python) :
# prototype
def config_new_option(config_file: str, section: str, name: str, type: str, description: str,
string_values: str, min: int, max: int,
default_value: str, value: str, null_value_allowed: int,
default_value: str | None, value: str | None, null_value_allowed: int,
callback_check_value: str, callback_check_value_data: str,
callback_change: str, callback_change_data: str,
callback_delete: str, callback_delete_data: str) -> str: ...
# exemple
def option4_check_value_cb(data, option, value):
def option4_check_value_cb(data: str, option: str, value: str) -> int:
# ...
return 1
# return 0
def option4_change_cb(data, option):
def option4_change_cb(data: str, option: str) -> int:
# ...
def option4_delete_cb(data, option):
def option4_delete_cb(data: str, option: str) -> int:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
@@ -7682,7 +7823,7 @@ Script (Python) :
def config_write_option(config_file: str, option: str) -> int: ...
# exemple
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "ma_section", "")
weechat.config_write_option(config_file, option)
return weechat.WEECHAT_RC_OK
@@ -7736,7 +7877,7 @@ Script (Python) :
def config_write_line(config_file: str, option_name: str, value: str) -> int: ...
# exemple
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "ma_section", "")
weechat.config_write_line(config_file, "option", "valeur")
return weechat.WEECHAT_RC_OK
@@ -8884,23 +9025,45 @@ trouvé et exécuté avant les autres "hooks". Cela est pratique pour les
modificateurs, car l'ordre d'exécution est important.
Pour définir une priorité, vous devez utiliser cette syntaxe, pour un paramètre
où la priorité est autorisée : "nnn|nom""nnn" est un entier positif ou nul
avec la priorité et "nom" le nom pour le paramètre (la priorité n'apparaît pas
dans le nom, elle est automatiquement retirée de la chaîne).
où la priorité est autorisée : `nnn|nom``nnn` est un entier positif ou nul
avec la priorité et `nom` le nom pour le paramètre (la priorité n'apparaît pas
dans le nom, elle est automatiquement retirée de la chaîne). +
Une seule priorité par "hook" est autorisée.
La priorité par défaut est 1000.
Exemple en C :
Exemples en C :
[source,c]
----
/* accroche un modificateur avec priorité = 2000 */
/* accrocher un modificateur avec priorité = 2000 */
/* haute priorité : appelé avant les autres fonctions de rappel "modifier" */
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
/* accrocher deux signaux avec priorité = 3000 */
/* haute priorité : appelé avant les autres fonctions de rappel "signal" */
weechat_hook_signal ("3000|quit;upgrade", &signal_cb, NULL, NULL);
/* accrocher les lignes affichées dans les tampons formatés avec priorité = 500 */
/* basse priorité : appelé après les autres fonctions de rappel "line" */
weechat_hook_line ("500|formatted", "*", NULL, &line_cb, NULL, NULL);
----
Les types de "hooks" suivants autorisent une priorité : command, command_run,
signal, hsignal, config, completion, modifier, info, info_hashtable, infolist,
hdata, focus.
Les types de "hooks" suivants autorisent une priorité :
* <<_hook_command,command>>
* <<_hook_completion,completion>>
* <<_hook_command_run,command_run>>
* <<_hook_line,line>>
* <<_hook_signal,signal>>
* <<_hook_hsignal,hsignal>>
* <<_hook_config,config>>
* <<_hook_modifier,modifier>>
* <<_hook_info,info>>
* <<_hook_info_hashtable,info_hashtable>>
* <<_hook_infolist,infolist>>
* <<_hook_hdata,hdata>>
* <<_hook_focus,focus>>
==== hook_command
@@ -8930,7 +9093,7 @@ struct t_hook *weechat_hook_command (const char *command,
Paramètres :
* _command_ : nom de la commande
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant la commande, voir la note sur la <<hook_priority,priorité>>)
* _description_ : description de la commande (affiché avec `/help command`)
* _args_ : paramètres pour la commande (affichés avec `/help command`)
* _args_description_ : description des paramètres (affichée avec
@@ -9044,7 +9207,7 @@ def hook_command(command: str, description: str, args: str, args_description: st
completion: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_command_cb(data, buffer, args):
def my_command_cb(data: str, buffer: str, args: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9086,7 +9249,8 @@ Paramètres :
* _completion_item_ : nom de l'objet de complétion, après vous pouvez utiliser
_%(nom)_ (ou _%(nom:paramètres)_ avec WeeChat ≥ 1.7) dans une commande
(paramètre _completion_)
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant le nom de l'objet de complétion,
voir la note sur la <<hook_priority,priorité>>)
* _description_ : description de la complétion
* _callback_ : fonction appelée lorsque la complétion est utilisée
(l'utilisateur est en train de compléter quelque chose qui fait appel à cette
@@ -9154,7 +9318,7 @@ Script (Python) :
def hook_completion(completion_item: str, description: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
weechat.completion_list_add(completion, "mot1", 0, weechat.WEECHAT_LIST_POS_SORT)
weechat.completion_list_add(completion, "test_mot2", 0, weechat.WEECHAT_LIST_POS_SORT)
return weechat.WEECHAT_RC_OK
@@ -9197,7 +9361,7 @@ struct t_hook *weechat_hook_command_run (const char *command,
Paramètres :
* _command_ : commande à intercepter (le caractère joker `+*+` est autorisé)
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant la commande, voir la note sur la <<hook_priority,priorité>>)
* _callback_ : fonction appelée lorsque la commande est exécutée, paramètres et
valeur de retour :
** _const void *pointer_ : pointeur
@@ -9245,7 +9409,7 @@ Script (Python) :
def hook_command_run(command: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_command_run_cb(data, buffer, command):
def my_command_run_cb(data: str, buffer: str, command: str) -> int:
weechat.prnt("", "Je mange la complétion !")
return weechat.WEECHAT_RC_OK_EAT
@@ -9325,7 +9489,7 @@ Script (Python) :
def hook_timer(interval: int, align_second: int, max_calls: int, callback: str, callback_data: str) -> str: ...
# exemple
def my_timer_cb(data, remaining_calls):
def my_timer_cb(data: str, remaining_calls: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9411,7 +9575,7 @@ Script (Python) :
def hook_fd(fd: int, flag_read: int, flag_write: int, flag_exception: int, callback: str, callback_data: str) -> str: ...
# exemple
def my_fd_cb(data, fd):
def my_fd_cb(data: str, fd: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9471,11 +9635,11 @@ Paramètres :
**** _3_ : pas assez de mémoire
**** _4_ : erreur avec un fichier
*** _< 0_ :
**** _WEECHAT_HOOK_PROCESS_RUNNING_ : données disponibles, mais le fils tourne
**** _WEECHAT_HOOK_PROCESS_RUNNING_ (-1) : données disponibles, mais le fils tourne
toujours
**** _WEECHAT_HOOK_PROCESS_ERROR_ : erreur en lançant la commande
**** _WEECHAT_HOOK_PROCESS_CHILD_: la fonction de rappel est appelée dans le
processus fils
**** _WEECHAT_HOOK_PROCESS_ERROR_ (-2) : erreur en lançant la commande
**** _WEECHAT_HOOK_PROCESS_CHILD_ (-3) : la fonction de rappel est appelée dans le
processus fils (utilisé seulement dans l'API C, pas l'API script)
** _out_ : sortie standard de la commande (stdout)
** _err_ : erreurs de la commande (stderr)
** valeur de retour :
@@ -9622,7 +9786,7 @@ Script (Python) :
def hook_process(command: str, timeout: int, callback: str, callback_data: str) -> str: ...
# exemple avec une commande externe
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Erreur avec la commande '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9637,12 +9801,12 @@ def my_process_cb(data, command, return_code, out, err):
hook = weechat.hook_process("ls", 5000, "my_process_cb", "")
# exemple avec une fonction du script
def get_status(data):
def get_status(data: str) -> str:
# faire quelque chose de bloquant...
# ...
return "ceci est le résultat"
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Erreur avec la commande '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9849,7 +10013,7 @@ Script (Python) :
def hook_process_hashtable(command: str, options: Dict[str, str], timeout: int, callback: str, callback_data: str) -> str: ...
# exemple
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Erreur avec la commande '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -10054,7 +10218,7 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc
callback: str, callback_data: str) -> str: ...
# exemple
def my_connect_cb(data, status, gnutls_rc, sock, error, ip_address):
def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int:
if status == WEECHAT_HOOK_CONNECT_OK:
# ...
elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND:
@@ -10085,7 +10249,7 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
==== hook_line
_WeeChat ≥ 2.3._
_WeeChat ≥ 2.3, mis à jour dans la 3.7._
Intercepter une ligne sur le point d'être affichée dans un tampon.
@@ -10101,8 +10265,8 @@ appelés dans cet ordre :
"hook").
[NOTE]
The "line" hook is the only one among these three hooks that can work on
buffers with free content.
Le "hook" "line" est le seul parmi ces trois "hooks" qui peut fonctionner sur
un tampon avec contenu libre.
Prototype :
@@ -10121,7 +10285,9 @@ struct t_hook *weechat_hook_line (const char *buffer_type,
Paramètres :
* _buffer_type_ : intercepter les lignes affichées sur ce type de tampon
(si NULL ou chaîne vide, _formatted_ est utilisé par défaut) :
(si NULL ou chaîne vide, _formatted_ est utilisé par défaut)
(_WeeChat ≥ 3.7_ : une priorité est autorisée avant le type de tampon,
voir la note sur la <<hook_priority,priorité>>) :
** _formatted_ : intercepter les lignes sur un tampon avec contenu formaté
seulement (par défaut)
** _free_ : intercepter les lignes sur un tampon avec contenu libre seulement
@@ -10360,7 +10526,7 @@ Script (Python) :
def hook_line(buffer_type: str, buffer_name: str, tags: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_line_cb(data, line):
def my_line_cb(data: str, line: Dict[str, str]) -> Dict[str, str]:
# forcer un highlight sur la ligne
return {"highlight": "1"}
@@ -10476,8 +10642,8 @@ Script (Python) :
def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback: str, callback_data: str) -> str: ...
# exemple
def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message):
if int(highlight):
def my_print_cb(data: str, buffer: str, date: str, tags: str, displayed: int, highlight: int, prefix: str, message: str) -> int:
if highlight:
# ...
return weechat.WEECHAT_RC_OK
@@ -10509,7 +10675,7 @@ Paramètres :
* _signal_ : signal à intercepter, le caractère joker `+*+` est autorisé,
plusieurs signaux peuvent être séparés par des point-virgules
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant le ou les signaux, voir la note sur la <<hook_priority,priorité>>)
(voir le tableau ci-dessous)
* _callback_ : fonction appelée quand le signal est reçu, paramètres et valeur
de retour :
@@ -10559,7 +10725,7 @@ Liste des signaux envoyés par WeeChat et les extensions :
| Chaîne : liste de scripts supprimés (séparés par des virgules).
| Script(s) scheme supprimé(s).
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| Chaîne : message.
| Message IRC du serveur (avant utilisation par l'extension irc,
signal envoyé uniquement si le message n'est *pas* ignoré). +
@@ -10568,14 +10734,14 @@ Liste des signaux envoyés par WeeChat et les extensions :
Si le code retour d'une fonction de rappel est _WEECHAT_RC_OK_EAT_, alors
le message IRC est immédiatement détruit et non traité _(WeeChat ≥ 3.3)_.
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| Chaîne : message.
| Message IRC du serveur (après utilisation par l'extension irc,
signal envoyé uniquement si le message n'est *pas* ignoré). +
Depuis la version 2.2, le message IRC entier est envoyé, en incluant
les étiquettes.
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ + | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ + | 0.3.2
| Chaîne : message.
| Message IRC du serveur (avant utilisation par l'extension irc,
signal envoyé même si le message est ignoré). +
@@ -10584,28 +10750,28 @@ Liste des signaux envoyés par WeeChat et les extensions :
Si le code retour d'une fonction de rappel est _WEECHAT_RC_OK_EAT_, alors
le message IRC est immédiatement détruit et non traité _(WeeChat ≥ 3.3)_.
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| Chaîne : message.
| Message IRC du serveur (après utilisation par l'extension irc,
signal envoyé même si le message est ignoré). +
Depuis la version 2.2, le message IRC entier est envoyé, en incluant
les étiquettes.
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| Chaîne : message.
| Message IRC envoyé au serveur avant découpage automatique
(pour tenir dans les 512 octets par défaut). +
*Attention :* la chaîne peut contenir des données invalides UTF-8.
Le signal "xxx,irc_out1_yyy" est recommandé à la place de celui-ci.
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| Chaîne : message.
| Message IRC envoyé au serveur après découpage automatique
(pour tenir dans les 512 octets par défaut). +
*Attention :* la chaîne peut contenir des données invalides UTF-8.
Le signal "xxx,irc_out1_yyy" est recommandé à la place de celui-ci.
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| Chaîne : étiquettes + ";" + message.
| Étiquettes + message IRC envoyé au serveur.
@@ -11107,7 +11273,8 @@ Liste des signaux envoyés par WeeChat et les extensions :
| Signal SIGWINCH reçu (le terminal a été redimensionné).
| weechat | [[hook_signal_upgrade]] upgrade |
| Chaîne : "quit" si le paramètre "-quit" a été donné pour /upgrade, sinon NULL.
| Chaîne : "quit" si le paramètre "-quit" a été donné pour /upgrade, "-save"
si le paramètre "-save" a été donné pour /upgrade, sinon NULL.
| La commande `/upgrade` a été exécutée par l'utilisateur.
| weechat | [[hook_signal_upgrade_ended]] upgrade_ended | 0.3.4
@@ -11215,7 +11382,7 @@ Script (Python) :
def hook_signal(signal: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_signal_cb(data, signal, signal_data):
def my_signal_cb(data: str, signal: str, signal_data: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11453,7 +11620,7 @@ Paramètres :
* _signal_ : signal à intercepter, le caractère joker `+*+` est autorisé,
plusieurs signaux peuvent être séparés par des point-virgules
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant le ou les signaux, voir la note sur la <<hook_priority,priorité>>)
(voir le tableau ci-dessous)
* _callback_ : fonction appelée quand le signal est reçu, paramètres et valeur
de retour :
@@ -11483,7 +11650,7 @@ Liste des hsignaux envoyés par WeeChat et les extensions :
|===
| Extension | Signal | WeeChat mini | Paramètres | Description
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| Voir <<hsignal_irc_redirect_command,hsignal_irc_redirect_command>>
| Sortie de la redirection.
@@ -11552,7 +11719,7 @@ Script (Python) :
def hook_hsignal(signal: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_hsignal_cb(data, signal, hashtable):
def my_hsignal_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11711,7 +11878,7 @@ Script (Python) :
[source,python]
----
def test_whois_cb(data, signal, hashtable):
def test_whois_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
weechat.prnt("", "erreur = %s" % hashtable["error"])
weechat.prnt("", "sortie = %s" % hashtable["output"])
return weechat.WEECHAT_RC_OK
@@ -11824,8 +11991,8 @@ Paramètres :
* _option_ : option, le format est le nom complet, celui utilisé avec la
commande `/set` (par exemple : `+weechat.look.item_time_format+`), le caractère
joker `+*+` est autorisé (priorité autorisée, voir la note sur la
<<hook_priority,priorité>>)
joker `+*+` est autorisé
(une priorité est autorisée avant l'option, voir la note sur la <<hook_priority,priorité>>)
* _callback_ : fonction appelée lorsque l'option de configuration est modifiée,
paramètres et valeur de retour :
** _const void *pointer_ : pointeur
@@ -11871,7 +12038,7 @@ Script (Python) :
def hook_config(option: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_config_cb(data, option, value):
def my_config_cb(data: str, option: str, value: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11901,9 +12068,8 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
Paramètres :
* _modifier_ : nom du modificateur, liste des modificateurs utilisés par WeeChat
ou des extensions
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
* _modifier_ : nom du modificateur
(une priorité est autorisée avant le modificateur, voir la note sur la <<hook_priority,priorité>>)
(voir le tableau ci-dessous)
* _callback_ : fonction appelée lorsque le modificateur est utilisé, paramètres
et valeur de retour :
@@ -11930,7 +12096,7 @@ Liste des modificateurs utilisés par WeeChat et les extensions :
|===
| Modificateur | WeeChat mini | Données du modificateur | Chaîne | Sortie
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| Nom de serveur
| Contenu du message reçu du serveur IRC (avant décodage du jeu de caractères). +
*Attention :* la chaîne peut contenir des données invalides UTF-8 ; à utiliser
@@ -11939,24 +12105,24 @@ Liste des modificateurs utilisés par WeeChat et les extensions :
place de celui-ci.
| Nouveau contenu du message.
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| Nom de serveur
| Contenu du message reçu du serveur IRC (après décodage du jeu de caractères).
| Nouveau contenu du message.
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| Nom de serveur
| Contenu du message qui va être envoyé au serveur IRC avant découpage automatique
(pour tenir dans les 512 octets par défaut).
| Nouveau contenu du message.
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| Nom de serveur
| Contenu du message qui va être envoyé au serveur IRC après découpage automatique
(pour tenir dans les 512 octets par défaut).
| Nouveau contenu du message.
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| Chaîne avec un pointeur vers la fenêtre (par exemple : "0x1234abcd")
| Chaîne vide.
| "1" pour afficher la barre, "0" pour la cacher.
@@ -11990,7 +12156,7 @@ Liste des modificateurs utilisés par WeeChat et les extensions :
| Nouveau contenu de la ligne de commande envoyée au tampon.
| [[hook_modifier_weechat_print]] weechat_print |
| pointeur vers le tampon (par exemple : "0x1234abcd") + ";" + étiquettes ^(3)^
| pointeur vers le tampon (par exemple : "0x1234abcd") + ";" + étiquettes ^(3)^
| Message affiché.
| Nouveau message affiché. +
Pour plus d'informations sur les "hooks" appelés lorsqu'une ligne est affichée,
@@ -12040,7 +12206,7 @@ Script (Python) :
def hook_modifier(modifier: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_modifier_cb(data, modifier, modifier_data, string):
def my_modifier_cb(data: str, modifier: str, modifier_data: str, string: str) -> str:
return "%s xxx" % string
hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "")
@@ -12188,7 +12354,7 @@ struct t_hook *weechat_hook_info (const char *info_name,
Paramètres :
* _info_name_ : nom de l'information
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant le nom de l'information, voir la note sur la <<hook_priority,priorité>>)
* _description_ : description
* _args_description_ : description des paramètres (optionnel, peut être NULL)
* _callback_ : fonction appelée quand l'information est demandée, paramètres et
@@ -12242,7 +12408,7 @@ def hook_info(info_name: str, description: str, args_description: str,
callback: str, callback_data: str) -> str: ...
# exemple
def my_info_cb(data, info_name, arguments):
def my_info_cb(data: str, info_name: str, arguments: str) -> str:
return "some_info"
hook = weechat.hook_info("mon_info", "Une information", "Info sur les paramètres",
@@ -12275,7 +12441,7 @@ struct t_hook *weechat_hook_info_hashtable (const char *info_name,
Paramètres :
* _info_name_ : nom de l'information
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant le nom de l'information, voir la note sur la <<hook_priority,priorité>>)
* _description_ : description
* _args_description_ : description de la table de hachage attendue
(optionnel, peut être NULL)
@@ -12329,7 +12495,7 @@ def hook_info_hashtable(info_name: str, description: str, args_description: str,
output_description: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_info_hashtable_cb(data, info_name, hashtable):
def my_info_hashtable_cb(data: str, info_name: str, hashtable: Dict[str, str]) -> Dict[str, str]:
return {"test_cle": "test_valeur"}
hook = weechat.hook_info_hashtable("mon_info_hashtable", "Une information",
@@ -12365,7 +12531,7 @@ struct t_hook *weechat_hook_infolist (const char *infolist_name,
Paramètres :
* _infolist_name_ : nom de l'infolist
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant le nom de l'infolist, voir la note sur la <<hook_priority,priorité>>)
* _description_ : description
* _pointer_description_ : description du pointeur (optionnel, peut être NULL)
* _args_description_ : description des paramètres (optionnel, peut être NULL)
@@ -12422,7 +12588,7 @@ def hook_infolist(infolist_name: str, description: str, pointer_description: str
args_description: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_infolist_cb(data, infolist_name, pointer, arguments):
def my_infolist_cb(data: str, infolist_name: str, pointer: str, arguments: str) -> str:
# construction de l'infolist
# ...
return my_infolist
@@ -12455,7 +12621,7 @@ struct t_hook *weechat_hook_hdata (const char *hdata_name,
Paramètres :
* _hdata_name_ : nom du hdata
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant le nom du hdata, voir la note sur la <<hook_priority,priorité>>)
* _description_ : description
* _callback_ : fonction appelée quand le hdata est demandé, paramètres et valeur
de retour :
@@ -12520,7 +12686,7 @@ struct t_hook *weechat_hook_focus (const char *area,
Paramètres :
* _area_ : "chat" pour la zone de discussion, ou un nom d'objet de barre
(priorité autorisée, voir la note sur la <<hook_priority,priorité>>)
(une priorité est autorisée avant la zone, voir la note sur la <<hook_priority,priorité>>)
* _callback_ : fonction appelée quand le focus est fait, paramètres et valeur de
retour :
** _const void *pointer_ : pointeur
@@ -12552,7 +12718,7 @@ valeurs sont de type "string") :
[width="100%",cols="5,5,8,3",options="header"]
|===
| Clé ^(1)^ | Description | Exemples de valeur | Valeur si non applicable
| Clé ^(1)^ | Description | Exemples de valeur | Valeur si non applicable
| _x | Colonne sur l'écran.
| "0" ... "n" |
@@ -12584,7 +12750,7 @@ valeurs sont de type "string") :
| _buffer_full_name | Nom complet du tampon.
| "core.weechat", "irc.libera.#weechat", ... | ""
| _buffer_localvar_XXX ^(2)^ | Variables locales du tampon.
| _buffer_localvar_XXX ^(2)^ | Variables locales du tampon.
| toute chaîne | non défini
| _chat | Indicateur zone "chat".
@@ -12593,16 +12759,16 @@ valeurs sont de type "string") :
| _chat_line | Pointeur vers la ligne _(WeeChat ≥ 1.2)_.
| "0x1234abcd" | ""
| _chat_line_x | Colonne de la ligne ^(3)^.
| _chat_line_x | Colonne de la ligne ^(3)^.
| "0" ... "n" | "-1"
| _chat_line_y | Numéro de ligne ^(3)^.
| _chat_line_y | Numéro de ligne ^(3)^.
| "0" ... "n" | "-1"
| _chat_line_date | Date/heure de la ligne.
| "1313237175" | "0"
| _chat_line_date_printed | Date/heure de la ligne ^(4)^.
| _chat_line_date_printed | Date/heure de la ligne ^(4)^.
| "1313237175" | "0"
| _chat_line_time | Heure affichée.
@@ -12662,7 +12828,7 @@ Informations additionnelles pour l'objet de barre "buffer_nicklist" :
[width="100%",cols="^1,^1,5",options="header"]
|===
| Extension ^(1)^ | Clé | Description
| Extension ^(1)^ | Clé | Description
| irc | irc_nick | Pointeur vers le pseudo IRC _(WeeChat ≥ 3.0)_.
| irc | irc_host | Nom d'hôte pour le pseudonyme (si connu).
| weechat | nick | Pseudonyme.
@@ -12705,7 +12871,7 @@ Script (Python) :
def hook_focus(area: str, callback: str, callback_data: str) -> str: ...
# exemple
def my_focus_nicklist_cb(data, info):
def my_focus_nicklist_cb(data: str, info: Dict[str, str]) -> Dict[str, str]:
# construction du dict
# ...
return my_dict
@@ -12776,7 +12942,7 @@ Script (Python) :
def hook_set(hook: str, property: str, value: str) -> int: ...
# exemple
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -12964,11 +13130,11 @@ def buffer_new(name: str, input_callback: str, input_callback_data: str,
close_callback: str, close_callback_data: str) -> str: ...
# exemple
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Texte : %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Le tampon '%s' va être fermé !" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -13087,11 +13253,11 @@ def buffer_new_props(name: str, properties: Dict[str, str],
close_callback: str, close_callback_data: str) -> str: ...
# exemple
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Texte : %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Le tampon '%s' va être fermé !" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -13493,6 +13659,8 @@ Paramètres :
** _input_ : texte saisi
** _text_search_input_ : texte saisi sauvegardé avant la recherche de texte
** _highlight_words_ : liste des mots pour le highlight
** _highlight_disable_regex_ : expression régulière POSIX étendue pour désactiver
le highlight
** _highlight_regex_ : expression régulière POSIX étendue pour le highlight
** _highlight_tags_restrict_ : restreindre les highlights aux messages
comportant ces étiquettes
@@ -13546,6 +13714,7 @@ Paramètres :
* _property_ : nom de la propriété :
** _plugin_ : pointeur vers l'extension qui a créé le tampon (NULL pour le
tampon principal WeeChat)
** _highlight_disable_regex_compiled_ : expression régulière _highlight_disable_regex_ compilée
** _highlight_regex_compiled_ : expression régulière _highlight_regex_ compilée
Valeur de retour :
@@ -13691,6 +13860,9 @@ Propriétés :
| Liste de mots à supprimer de la liste des mots à mettre en valeur dans ce
tampon.
| highlight_disable_regex | | any string
| Expression régulière POSIX étendue pour désactiver le highlight.
| highlight_regex | | toute chaîne
| Expression régulière POSIX étendue pour le highlight.
@@ -15153,13 +15325,13 @@ dans WeeChat ≥ 0.4.2).
def bar_item_new(name: str, build_callback: str, build_callback_data: str) -> str: ...
# exemple (fonction de rappel sans "buffer" et "extra_info")
def my_build_callback(data, item, window):
def my_build_callback(data: str, item: str, window: str) -> str:
return "mon contenu"
bar_item = weechat.bar_item_new("myitem", "my_build_callback", "")
# exemple (fonction de rappel avec tous les paramètres, pour WeeChat ≥ 0.4.2)
def my_build_callback2(data, item, window, buffer, extra_info):
def my_build_callback2(data: str, item: str, window: str, buffer: str, extra_info: Dict[str, str]) -> str:
return "mon contenu"
bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat ≥ 0.4.2
@@ -15755,7 +15927,7 @@ Script (Python) :
def completion_get_string(completion: str, property: str) -> str: ...
# exemple
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
# récupère les paramètres de la commande
args = weechat.completion_get_string(completion, "args")
# complétion selon les paramètres
+2
View File
@@ -704,6 +704,8 @@ inl:
text_search_found: 0
text_search_input: None
highlight_words: None
highlight_disable_regex: None
highlight_disable_regex_compiled: '0x0'
highlight_regex: None
highlight_regex_compiled: '0x0'
highlight_tags_restrict: None
+13 -1
View File
@@ -593,6 +593,7 @@ Liste des fonctions de l'API script :
string_has_highlight_regex +
string_mask_to_regex +
string_format_size +
string_parse_size +
string_color_code_size +
string_remove_color +
string_is_command_char +
@@ -1344,7 +1345,7 @@ Le résultat est une table de hachage avec les clés suivantes
[width="100%",cols="3,^2,10,7",options="header"]
|===
| Clé | Depuis WeeChat ^(1)^ | Description | Exemple
| Clé | Depuis WeeChat ^(1)^ | Description | Exemple
| tags | 0.4.0
| Les étiquettes dans le message (peut être vide).
@@ -1387,6 +1388,14 @@ Le résultat est une table de hachage avec les clés suivantes
| Le texte (par exemple un message utilisateur).
| `+hello!+`
| paramN | 3.4
| Paramètre de commande (de 1 à N).
| `+#weechat+`
| num_params | 3.4
| Nombre de paramètres de commande.
| `+2+`
| pos_command | 1.3
| La position de _command_ dans le message ("-1" si _command_ n'a pas été trouvé).
| `+47+`
@@ -1425,6 +1434,9 @@ dict = weechat.info_get_hashtable(
# "channel": "#weechat",
# "arguments": "#weechat :hello!",
# "text": "hello!",
# "param1": "#weechat",
# "param2": "hello!",
# "num_params": "2",
# "pos_command": "65",
# "pos_arguments": "73",
# "pos_channel": "73",
+150 -52
View File
@@ -109,16 +109,38 @@ Le tableau suivant liste les paquets *requis* pour compiler WeeChat :
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Paquet ^(1)^ | Version | Fonctionnalité
| compilateur C (gcc / clang) | | Construction.
| cmake | ≥ 3.0 | Construction (autotools toujours possible, mais CMake est recommandé).
| pkg-config | | Détection des bibliothèques installées.
| libncursesw5-dev ^(2)^ | | Interface ncurses.
| libcurl4-gnutls-dev | | Transfert d'URL.
| libgcrypt20-dev | | Données sécurisées, authentification IRC SASL.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | Connexion SSL au serveur IRC, support SSL dans l'extension relay, authentification IRC SASL (ECDSA-NIST256P-CHALLENGE).
| zlib1g-dev | | Compression des messages (WeeChat -> client) avec https://zlib.net/[zlib ^↗^,window=_blank] dans l'extension relay (protocole weechat), extension script.
| libzstd-dev | | Compression des messages (WeeChat -> client) avec https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] dans l'extension relay (protocole weechat).
| Paquet ^(1)^ | Version | Fonctionnalités
| compilateur C (gcc / clang) |
| Construction.
| cmake | ≥ 3.0
| Construction (autotools toujours possible, mais CMake est recommandé).
| pkg-config |
| Détection des bibliothèques installées.
| libncursesw5-dev ^(2)^ |
| Interface ncurses.
| libcurl4-gnutls-dev |
| Transfert d'URL.
| libgcrypt20-dev |
| Données sécurisées, authentification IRC SASL.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^
| Extension IRC : support des connexions TLS, authentification IRC SASL (ECDSA-NIST256P-CHALLENGE). +
Extension Relay : support des connexions TLS.
| zlib1g-dev |
| Extension Logger : compression des fichiers de log qui tournent (gzip). +
Extention Relay : compression des messages (WeeChat -> client) avec https://zlib.net/[zlib ^↗^,window=_blank] (protocole weechat). +
Extension Script : lecture du fichier d'index du dépôt (gzip).
| libzstd-dev | ≥ 0.8.1
| Extension Logger : compression des fichiers de log qui tournent. +
Extension Relay : compression des messages (WeeChat -> client) avec https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] (protocole weechat).
|===
[NOTE]
@@ -135,12 +157,12 @@ Le tableau suivant liste les paquets optionnels pour compiler WeeChat :
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Paquet ^(1)^ | Version | Fonctionnalité
| Paquet ^(1)^ | Version | Fonctionnalités
| compilateur {cpp} (pass:[g++ / clang++]) | | Construction et lancement des tests, extension JavaScript.
| gettext | | Internationalisation (traduction des messages ; la langue de base est l'anglais).
| ca-certificates | | Certificats pour les connexions SSL.
| libaspell-dev / libenchant-dev | | Extension spell.
| python3-dev ^(2)^ | | Extension python.
| python3-dev ^(2)^ | | Extension python.
| libperl-dev | | Extension perl.
| ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Extension ruby.
| liblua5.4-dev | | Extension lua.
@@ -745,26 +767,26 @@ Les répertoires de WeeChat sont :
[width="100%",cols="1m,3",options="header"]
|===
| Chemin ^(1)^ | Description
| Chemin ^(1)^ | Description
| ~/.config/weechat/ | Fichiers de configuration WeeChat : `*.conf`, certificats, etc.
| ~/.local/share/weechat/ | Fichiers de données WeeChat : logs, scripts, données des scripts, fichiers xfer, etc.
|    logs/ | Fichiers de log (un fichier par tampon).
|    python/ | Scripts Python.
|       autoload/ | Scripts Python chargés automatiquement au démarrage ^(2)^.
|       autoload/ | Scripts Python chargés automatiquement au démarrage ^(2)^.
|    perl/ | Scripts Perl.
|       autoload/ | Scripts Perl chargés automatiquement au démarrage ^(2)^.
|       autoload/ | Scripts Perl chargés automatiquement au démarrage ^(2)^.
|    ruby/ | Scripts Ruby.
|       autoload/ | Scripts Ruby chargés automatiquement au démarrage ^(2)^.
|       autoload/ | Scripts Ruby chargés automatiquement au démarrage ^(2)^.
|    lua/ | Scripts Lua.
|       autoload/ | Scripts Lua chargés automatiquement au démarrage ^(2)^.
|       autoload/ | Scripts Lua chargés automatiquement au démarrage ^(2)^.
|    tcl/ | Scripts Tcl.
|       autoload/ | Scripts Tcl chargés automatiquement au démarrage ^(2)^.
|       autoload/ | Scripts Tcl chargés automatiquement au démarrage ^(2)^.
|    guile/ | Scripts Guile.
|       autoload/ | Scripts Guile chargés automatiquement au démarrage ^(2)^.
|       autoload/ | Scripts Guile chargés automatiquement au démarrage ^(2)^.
|    javascript/ | Scripts JavaScript.
|       autoload/ | Scripts JavaScript chargés automatiquement au démarrage ^(2)^.
|       autoload/ | Scripts JavaScript chargés automatiquement au démarrage ^(2)^.
|    php/ | Scripts PHP.
|       autoload/ | Scripts PHP chargés automatiquement au démarrage ^(2)^.
|       autoload/ | Scripts PHP chargés automatiquement au démarrage ^(2)^.
| ~/.cache/weechat/ | Fichiers de cache WeeChat : cache des scripts.
| /run/user/1000/weechat/ | Fichiers "runtime" WeeChat : tube FIFO, sockets UNIX Relay.
|===
@@ -1303,10 +1325,10 @@ Les étiquettes couramment utilisées (liste non exhaustive) :
| no_highlight | Aucun highlight n'est possible sur cette ligne.
| no_log | La ligne n'est pas écrite dans le fichier de log.
| log0 … log9 | Niveau de log pour la ligne (voir `/help logger`).
| notify_none | La ligne ne doit pas être ajoutée à la "hotlist". ^(1)^
| notify_message | La ligne est un message utilisateur. ^(1)^
| notify_private | La ligne est un message privé. ^(1)^
| notify_highlight | La ligne est un message avec un highlight. ^(1)^
| notify_none | La ligne ne doit pas être ajoutée à la "hotlist". ^(1)^
| notify_message | La ligne est un message utilisateur. ^(1)^
| notify_private | La ligne est un message privé. ^(1)^
| notify_highlight | La ligne est un message avec un highlight. ^(1)^
| self_msg | Message de soi-même.
| nick_xxx | Le message vient du pseudo "xxx".
| prefix_nick_ccc | Le préfixe est un pseudo avec la couleur "ccc".
@@ -1536,27 +1558,28 @@ Ils peuvent être modifiés et de nouveaux peuvent être ajoutés avec la comman
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| Touche | Description | Commande
| Touche | Description | Commande
| kbd:[Del] +
kbd:[Ctrl+d] | Effacer le caractère suivant sur la ligne de commande. | `+/input delete_next_char+`
kbd:[Ctrl+d] | Effacer le caractère suivant sur la ligne de commande. | `+/input delete_next_char+`
| kbd:[Backspace] +
kbd:[Ctrl+h] | Effacer le caractère précédent sur la ligne de commande. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | Effacer du curseur jusqu'à la fin de la ligne de commande (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Inverser deux caractères. | `+/input transpose_chars+`
| kbd:[Ctrl+u] | Effacer du curseur jusqu'au début de la ligne de commande (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_beginning_of_line+`
| kbd:[Ctrl+w] | Effacer le mot précédent sur la ligne de commande (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_previous_word+`
| kbd:[Ctrl+y] | Coller le contenu du presse-papiers interne. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Défaire la dernière action sur la ligne de commande. | `+/input undo+`
| kbd:[Alt+_] | Refaire la dernière action sur la ligne de commande. | `+/input redo+`
| kbd:[Tab] | Compléter la commande ou le pseudo (kbd:[Tab] de nouveau : trouver la complétion suivante). | `+/input complete_next+`
| kbd:[Shift+Tab] | Sans complétion, effectue une complétion partielle. Avec une complétion en cours, complète avec la complétion précédente. | `+/input complete_previous+`
kbd:[Ctrl+h] | Effacer le caractère précédent sur la ligne de commande. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | Effacer du curseur jusqu'à la fin de la ligne de commande (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Inverser deux caractères. | `+/input transpose_chars+`
| kbd:[Ctrl+u] | Effacer du curseur jusqu'au début de la ligne de commande (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_beginning_of_line+`
| kbd:[Alt+Backspace] | Effacer le mot précédent sur la ligne de commande (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_previous_word+`
| kbd:[Ctrl+w] | Effacer le mot précédent sur la ligne de commande jusqu'à un espace (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_previous_word_whitespace+`
| kbd:[Ctrl+y] | Coller le contenu du presse-papiers interne. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | faire la dernière action sur la ligne de commande. | `+/input undo+`
| kbd:[Alt+_] | Refaire la dernière action sur la ligne de commande. | `+/input redo+`
| kbd:[Tab] | Compléter la commande ou le pseudo (kbd:[Tab] de nouveau : trouver la complétion suivante). | `+/input complete_next+`
| kbd:[Shift+Tab] | Sans complétion, effectue une complétion partielle. Avec une complétion en cours, complète avec la complétion précédente. | `+/input complete_previous+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | Exécuter la commande ou envoyer le message (en mode recherche : arrêter la recherche). | `+/input return+`
| kbd:[Alt+Enter] | Insérer une nouvelle ligne. | `+/input insert \n+`
| kbd:[Alt+d] | Effacer le mot suivant (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_next_word+`
| kbd:[Alt+k] | Capturer une touche et insérer son code (et la commande associée si la commande existe) sur la ligne de commande. | `+/input grab_key_command+`
| kbd:[Alt+r] | Effacer entièrement la ligne de commande. | `+/input delete_line+`
kbd:[Ctrl+m] | Exécuter la commande ou envoyer le message (en mode recherche : arrêter la recherche). | `+/input return+`
| kbd:[Alt+Enter] | Insérer une nouvelle ligne. | `+/input insert \n+`
| kbd:[Alt+d] | Effacer le mot suivant (la chaîne supprimée est copiée dans le presse-papiers interne). | `+/input delete_next_word+`
| kbd:[Alt+k] | Capturer une touche et insérer son code (et la commande associée si la commande existe) sur la ligne de commande. | `+/input grab_key_command+`
| kbd:[Alt+r] | Effacer entièrement la ligne de commande. | `+/input delete_line+`
|===
[[key_bindings_cmdline_color_codes]]
@@ -1749,7 +1772,7 @@ avec la touche kbd:[Alt+m] (commande : `+/mouse toggle+`).
[width="100%",cols="^.^3,^.^3,^.^3,.^8,.^8",options="header"]
|===
| Bouton/Roulette ^(1)^ | Geste | Zone | Description | Commande
| Bouton/Roulette ^(1)^ | Geste | Zone | Description | Commande
| ◾◽◽ | - | chat | Aller à la fenêtre. | `+/window ${_window_number}+`
| ◾◽◽ | left | chat | Aller au tampon précédent. | `+/window ${_window_number};/buffer +1+`
| ◾◽◽ | right | chat | Aller au tampon suivant. | `+/window ${_window_number};/buffer +1+`
@@ -1802,7 +1825,7 @@ Ces touches et actions sont utilisées sur le tampon fset
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Touche | Action ^(1)^ | Description | Commande
| Touche | Action ^(1)^ | Description | Commande
| kbd:[↑] | | Monter d'une ligne. | `+/fset -up+`
| kbd:[↓] | | Descendre d'une ligne. | `+/fset -down+`
| kbd:[PgUp] | | Monter d'une page. | `+/window page_up+`
@@ -1849,7 +1872,7 @@ Ces touches et actions sont utilisées sur le tampon script
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Touche | Action ^(1)^ | Description | Commande
| Touche | Action ^(1)^ | Description | Commande
| kbd:[↑] | | Move one line up. | `+/script up+`
| kbd:[↓] | | Move one line down. | `+/script down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
@@ -2240,6 +2263,37 @@ avec `+/help buffer_autoset+`.
[[highlights]]
=== Highlights
[[highlights_disable]]
==== Désactiver les highlights
Vous pouvez désactiver les highlights avec l'option
<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
(expression régulière). +
Lorsqu'un highlight est désactivé avec cette option, les autres options de
highlight sont ignorées.
Par exemple pour désactiver tout highlight sur les messages avec un mot
commençant par "flash" entre chevrons :
----
/set weechat.look.highlight_regex "<flash.*>"
----
Ceci peut aussi être défini avec la propriété de tampon "highlight_disable_regex".
Même exemple, spécifique au tampon courant :
----
/buffer set highlight_disable_regex <flash.*>
----
[NOTE]
La propriété de tampon "highlight_disable_regex" n'est pas sauvegardée dans la
configuration. +
Vous pouvez facilement la sauvegarder avec le script _buffer_autoset.py_ : vous
pouvez l'installer avec `+/script install buffer_autoset.py+` et obtenir de l'aide
avec `+/help buffer_autoset+`.
[[highlights_words]]
==== Ajouter des mots pour le « highlight »
@@ -2252,7 +2306,7 @@ Vous pouvez ajouter d'autres mots à mettre en valeur avec l'option
en valeur votre pseudo, "mot1", "mot2" et tous les mots commençants par "test" :
----
/set weechat.look.highlight mot1,mot2,test*
/set weechat.look.highlight "mot1,mot2,test*"
----
Si vous avez besoin d'une règle plus spécifique pour un mot, vous pouvez utiliser
@@ -2261,7 +2315,7 @@ des expressions régulières avec l'option
par exemple pour mettre en valeur les mots "flashcode", "flashcöde" et "flashy" :
----
/set weechat.look.highlight_regex flashc[oö]de|flashy
/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----
Les délimiteurs autour des mots à mettre en valeur peuvent être paramétrés avec
@@ -2444,6 +2498,49 @@ Vous obtiendrez les fichiers suivants :
...
....
[[logger_rotation_compression]]
==== Rotation et compression
Il est possible de définir une taille maximale pour les fichiers de logs, et
lorsqu'elle est atteinte, il y a une rotation automatique du fichier de log.
Les fichiers de logs qui ont tourné peuvent être compressés avec gzip ou
https://facebook.github.io/zstd/[zstd ^↗^,window=_blank].
[NOTE]
La compression du fichier pouvant prendre du temps, elle est exécutée en tâche
de fond.
Exemple avec une taille maximale de 2 Go et la compression avec gzip, en utilisant
un bon niveau de compression (plus lent que celui par défaut) :
----
/set logger.file.rotation_compression_type gzip
/set logger.file.rotation_compression_level 80
/set logger.file.rotation_size_max "2g"
----
Si vous voulez utiliser un nombre décimal, vous pouvez utiliser l'unité en
dessous et multiplier par 1000, par exemple pour une taille maximale de 2,5 Go :
----
/set logger.file.rotation_size_max "2500m"
----
Avec cette configuration, vous aurez des fichiers comme ceux-ci (dans cet exemple
il y a eu une rotation seulement pour le log du canal "#weechat"):
....
~/.local/share/weechat
└── logs
├── core.weechat.weechatlog
├── irc.server.libera.weechatlog
├── irc.libera.#weechat.weechatlog
├── irc.libera.#weechat.weechatlog.1.gz
├── irc.libera.#weechat.weechatlog.2.gz
└── irc.libera.#weechat.weechatlog.3.gz
....
[[logger_commands]]
==== Commandes
@@ -4006,8 +4103,8 @@ automatiquement remplacées par WeeChat lors de la réponse au CTCP :
| Code | Description | Valeur / exemple
| $clientinfo | Liste des CTCP supportés | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| $version | Version de WeeChat | `+0.4.0-dev+`
| $versiongit | Version de WeeChat + version Git ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Version Git ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $versiongit | Version de WeeChat + version Git ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Version Git ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $compilation | Date de compilation WeeChat | `+Dec 16 2012+`
| $osinfo | Information sur l'OS | `+Linux 2.6.32-5-amd64 / x86_64+`
| $site | Site WeeChat | `+https://weechat.org/+`
@@ -4910,7 +5007,7 @@ du type de hook :
[width="100%",cols="2,3,7",options="header"]
|===
| Hook | Variable par défaut | Mise à jour autorisée ^(1)^
| Hook | Variable par défaut | Mise à jour autorisée ^(1)^
| signal | tg_signal_data |
| hsignal | |
| modifier | tg_string | tg_string
@@ -5007,6 +5104,7 @@ de hachage :
|===
| Variable | Type | Description
| tg_trigger_name | chaîne | Nom du trigger.
| tg_hook_type | chaîne | Type de hook : "signal", "command", etc.
|===
[[trigger_data_signal]]
@@ -5139,7 +5237,7 @@ Variables définies avec les étiquettes du message :
| tg_tag_prefix_nick | chaîne | Couleur du pseudo dans le préfixe (depuis l'étiquette "prefix_nick_ccc").
| tg_tag_host | chaîne | Nom d'utilisateur et hôte, format : utilisateur@hôte (depuis l'étiquette "host_xxx").
| tg_tag_notify | chaîne | Niveau de notification (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | chaîne | Étiquette de message IRC (clé "xxx"). ^(1)^
| tg_tag_irc_xxx | chaîne | Étiquette de message IRC (clé "xxx"). ^(1)^
| tg_notify | chaîne | Niveau de notification, si différent de _none_.
| tg_msg_pv | chaîne | "1" pour un message privé, sinon "0".
|===
@@ -5182,7 +5280,7 @@ Variables définies avec les étiquettes du message :
| tg_tag_prefix_nick | chaîne | Couleur du pseudo dans le préfixe (depuis l'étiquette "prefix_nick_ccc").
| tg_tag_host | chaîne | Nom d'utilisateur et hôte, format : utilisateur@hôte (depuis l'étiquette "host_xxx").
| tg_tag_notify | chaîne | Niveau de notification (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | chaîne | Étiquette de message IRC (clé "xxx"). ^(1)^
| tg_tag_irc_xxx | chaîne | Étiquette de message IRC (clé "xxx"). ^(1)^
| tg_notify | chaîne | Niveau de notification, si différent de _none_.
| tg_msg_pv | chaîne | "1" pour un message privé, sinon "0".
|===
@@ -631,6 +631,8 @@ _text_search_input_   (string) +
_highlight_words_   (string) +
_highlight_regex_   (string) +
_highlight_regex_compiled_   (pointer) +
_highlight_disable_regex_   (string) +
_highlight_disable_regex_compiled_   (pointer) +
_highlight_tags_restrict_   (string) +
_highlight_tags_restrict_count_   (integer) +
_highlight_tags_restrict_array_   (pointer, array_size: "highlight_tags_restrict_count") +
@@ -128,6 +128,8 @@
| weechat | uptime | WeeChat uptime (format: "days:hh:mm:ss") | "days" (number of days) or "seconds" (number of seconds) (optional)
| weechat | uptime_current | WeeChat uptime for the current process only (upgrades with /upgrade command are ignored) (format: "days:hh:mm:ss") | "days" (number of days) or "seconds" (number of seconds) (optional)
| weechat | version | versione di WeeChat | -
| weechat | version_git | Versione git di weechat (output del comando "git describe" solo per la versione di sviluppo, vuoto per una release stabile) | -
@@ -6,7 +6,7 @@
// tag::url_options[]
[width="100%",cols="2,^1,7",options="header"]
|===
| Opzione | Tipo ^(1)^ | Costanti ^(2)^
| Opzione | Tipo ^(1)^ | Costanti ^(2)^
| verbose | long |
+29 -12
View File
@@ -176,7 +176,7 @@ Without argument, this command displays the ban list for current channel.
ls: list the capabilities supported by the server
list: list the capabilities currently enabled
req: request a capability
req: request a new capability or remove a capability (if starting with "-", for example: "-multi-prefix")
ack: acknowledge capabilities which require client-side acknowledgement
end: end the capability negotiation
@@ -187,8 +187,14 @@ Capabilities supported by WeeChat are: account-notify, away-notify, cap-notify,
The capabilities to automatically enable on servers can be set in option irc.server_default.capabilities (or by server in option irc.server.xxx.capabilities).
Examples:
/cap
/cap req multi-prefix away-notify
display supported and enabled capabilities:
/cap
request capabilities multi-prefix and away-notify:
/cap req multi-prefix away-notify
request capability extended-join, remove capability multi-prefix:
/cap req extended-join -multi-prefix
remove capability away-notify:
/cap req -away-notify
----
[[command_irc_connect]]
@@ -1608,6 +1614,7 @@ list of actions:
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_previous_word_whitespace: delete previous word (until whitespace)
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
@@ -2116,19 +2123,22 @@ Examples:
----
[[command_weechat_upgrade]]
* `+upgrade+`: reload the WeeChat binary without disconnecting from servers
* `+upgrade+`: save WeeChat session and reload the WeeChat binary without disconnecting from servers
----
/upgrade [-yes] [<path_to_binary>|-quit]
/upgrade [-yes] [<path_to_binary>|-save|-quit]
-yes: required if option "weechat.look.confirm_upgrade" is enabled
path_to_binary: path to WeeChat binary (default is current binary)
-dummy: do nothing (option used to prevent accidental completion with "-quit")
-save: only save the session, do not quit nor reload WeeChat; the configuration files are not saved (if needed you can use /save before this command)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Note: SSL connections are lost during upgrade (except with -save), because the reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Important: use of option -save can be dangerous, it is recommended to use only /upgrade (or with -quit) for a standard upgrade and a restart; the option -save can be used to save the session regularly and restore it in case of after abnormal exit (power outage, crash, etc.)
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
@@ -2136,14 +2146,18 @@ Upgrade process has 4 steps:
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
With option "-quit", the process is slightly different:
With option "-quit", the process is:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Then later you can restore session with command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
With option "-save", the process is:
1. save session into files (*.upgrade) with a disconnected state for IRC servers and Relay clients (but no disconnection is made)
With -quit or -save, you can restore the session later with this command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf) and if possible the same WeeChat version (or a more recent one).
It is possible to restore WeeChat session on another machine if you copy the content of WeeChat home directories (see /debug dirs).
----
@@ -2328,6 +2342,7 @@ The following variables can be used in these options:
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
- ${hotlist}: the raw hotlist
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight"
- ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = private, 3 = highlight
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
- ${format_tls_version}: indicator of TLS version for a server buffer, empty for channels (evaluation of option buflist.format.tls_version)
----
@@ -3049,15 +3064,15 @@ Examples:
----
/spell enable|disable|toggle
listdict
setdict <dizionario>[,<dizionario>...]
setdict -|<dict>[,<dict>...]
deldict
addword [<dizionario>] <parola>
addword [<dict>] <word>
enable: enable spell checker
disable: disable spell checker
toggle: toggle spell checker
listdict: show installed dictionaries
setdict: set dictionary for current buffer (multiple dictionaries can be separated by a comma)
setdict: set dictionary for current buffer (multiple dictionaries can be separated by a comma, the special value "-" disables spell checking on current buffer)
deldict: delete dictionary used on current buffer
addword: add a word in personal dictionary
@@ -3186,6 +3201,8 @@ Examples (you can also look at default triggers with /trigger listdefault):
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
silently save config each hour:
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
silently save WeeChat session at midnight (see /help upgrade):
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
/trigger monitor @modifier,resize*
----
+51 -3
View File
@@ -750,6 +750,12 @@
** valori: qualsiasi stringa
** valore predefinito: `+""+`
* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
** descrizione: pass:none[POSIX extended regular expression used to prevent any highlight from a message: this option has higher priority over other highlight options (if the string is found in the message, the highlight is disabled and the other options are ignored), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "<flash.*>", "(?-i)<Flash.*>"]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+""+`
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** descrizione: pass:none[POSIX extended regular expression used to check if a message has highlight or not, at least one match in string must be surrounded by delimiters (chars different from: alphanumeric, "-", "_" and "|"), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "flashcode|flashy", "(?-i)FlashCode|flashy"]
** tipo: stringa
@@ -1397,7 +1403,7 @@
** valore predefinito: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** descrizione: pass:none[salva automaticamente il contenuto dei buffer su file (a meno che un buffer disabiliti il log)]
** descrizione: pass:none[automatically save content of buffers to files (unless a buffer disables log); if disabled, logging is disabled on all buffers]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
@@ -1462,6 +1468,24 @@
** valori: qualsiasi stringa
** valore predefinito: `+"_"+`
* [[option_logger.file.rotation_compression_level]] *logger.file.rotation_compression_level*
** descrizione: pass:none[compression level for rotated log files (with extension ".1", ".2", etc.), if option logger.file.rotation_compression_type is enabled: 1 = low compression / fast ... 100 = best compression / slow; the value is a percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is recommended, it offers a good compromise between compression and speed]
** tipo: intero
** valori: 1 .. 100
** valore predefinito: `+20+`
* [[option_logger.file.rotation_compression_type]] *logger.file.rotation_compression_type*
** descrizione: pass:none[compression type for rotated log files; if set to "none", rotated log files are not compressed; WARNING: if rotation was enabled with another type of compression (or no compression), you must first unload the logger plugin, compress files with the new type (or decompress files), then change the option in logger.conf, then load the logger plugin]
** tipo: intero
** valori: none, gzip, zstd
** valore predefinito: `+none+`
* [[option_logger.file.rotation_size_max]] *logger.file.rotation_size_max*
** descrizione: pass:none[when this size is reached, a rotation of log files is performed: the existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) and the current file is renamed with extension .1; an integer number with a suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = megabytes, g = gigabytes, t = terabytes; example: "2g" causes a rotation if the file size is > 2,000,000,000 bytes; if set to "0", no rotation is performed (unlimited log size); WARNING: before changing this option, you should first set the compression type via option logger.file.rotation_compression_type]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"0"+`
* [[option_logger.file.time_format]] *logger.file.time_format*
** descrizione: pass:none[data e ora usati nei file di log (consultare man strftime per gli specificatori di data/ora)]
** tipo: stringa
@@ -1544,6 +1568,12 @@
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** valore predefinito: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** descrizione: pass:none[text color for trigger context identifier in monitor buffer]
** tipo: colore
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** valore predefinito: `+cyan+`
* [[option_trigger.color.regex]] *trigger.color.regex*
** descrizione: pass:none[text color for regular expressions]
** tipo: colore
@@ -1771,7 +1801,7 @@
** valore predefinito: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** descrizione: pass:none[enable buflist]
** descrizione: pass:none[enable buflist; it is recommended to use this option instead of just hiding the bar because it also removes some internal hooks that are not needed any more when the bar is hidden; you can also use the command "/buflist toggle" or use the default key alt+shift+b]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
@@ -2127,7 +2157,7 @@
** valore predefinito: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** descrizione: pass:none[color for text in chghost messages]
** descrizione: pass:none[color for text in "chghost" messages]
** tipo: colore
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** valore predefinito: `+brown+`
@@ -2150,6 +2180,12 @@
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** valore predefinito: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** descrizione: pass:none[color for text in "setname" messages]
** tipo: colore
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
** valore predefinito: `+brown+`
* [[option_irc.color.mirc_remap]] *irc.color.mirc_remap*
** descrizione: pass:none[remap mirc colors in messages using a hashtable: keys are "fg,bg" as integers between -1 (not specified) and 15, values are WeeChat color names or numbers (format is: "1,-1:color1;2,7:color2"), example: "1,-1:darkgray;1,2:white,blue" to remap black to "darkgray" and black on blue to "white,blue"; default WeeChat colors for IRC codes: 0=white, 1=black, 2=blue, 3=green, 4=lightred, 5=red, 6=magenta, 7=brown, 8=yellow, 9=lightgreen, 10=cyan, 11=lightcyan, 12=lightblue, 13=lightmagenta, 14=darkgray, 15=gray]
** tipo: stringa
@@ -2330,6 +2366,12 @@
** valori: on, off
** valore predefinito: `+on+`
* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change*
** descrizione: pass:none[display nick change in private]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
* [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address*
** descrizione: pass:none[display a warning in private buffer if the address of remote nick has changed; this option is disabled by default because servers like bitlbee are causing this warning to be displayed when it is not expected (the address of remote nick changes multiple times on login)]
** tipo: bool
@@ -2546,6 +2588,12 @@
** valori: on, off
** valore predefinito: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** descrizione: pass:none[enable smart filter for "setname" messages]
** tipo: bool
** valori: on, off
** valore predefinito: `+on+`
* [[option_irc.look.temporary_servers]] *irc.look.temporary_servers*
** descrizione: pass:none[enable automatic addition of temporary servers with command /connect]
** tipo: bool
+292 -111
View File
@@ -1871,22 +1871,35 @@ weechat_string_free_split (argv);
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
==== string_build_with_split_string
==== string_rebuild_split_string
Compila una stringa con una stringa divisa.
// TRANSLATION MISSING
_Updated in 3.7._
// TRANSLATION MISSING
Rebuild a string with a split string, using optional separator and index of
first/last string to use.
Prototipo:
[source,c]
----
char *weechat_string_build_with_split_string (char **split_string,
const char *separator);
char *weechat_string_rebuild_split_string (char **split_string,
const char *separator,
int index_start, int index_end);
----
Argomenti:
* _split_string_: stringa divisa dalla funzione <<_string_split,string_split>>
* _separator_: stringa usata per separare le stringhe
// TRANSLATION MISSING
* _separator_: string used to separate strings (can be NULL or empty string)
// TRANSLATION MISSING
* _index_start_: index of first string to use (≥ 0)
// TRANSLATION MISSING
* _index_end_: index of last string to use
(must be ≥ _index_start_; special value -1 can be used to use all arguments
until NULL is found)
Valore restituito:
@@ -1900,7 +1913,7 @@ Esempio in C:
char **argv;
int argc;
argv = weechat_string_split ("abc def ghi", " ", 0, 0, &argc);
char *str = weechat_string_build_with_split_string (argv, ";");
char *str = weechat_string_rebuild_split_string (argv, ";", 0, -1);
/* str == "abc;def;ghi" */
/* ... */
free (str);
@@ -2031,6 +2044,52 @@ def string_format_size(size: int) -> str: ...
str = weechat.string_format_size(15200) # == "15.2 KB"
----
// TRANSLATION MISSING
==== string_parse_size
_WeeChat ≥ 3.7._
Parse a string with a size and optional unit and return the size in bytes.
Prototipo:
[source,c]
----
unsigned long long weechat_string_parse_size (const char *size);
----
Argomenti:
* _size_: the size as string: positive integer number followed by optional
spaces and optional unit (lower or upper case), which is one of:
** _b_: bytes
** _k_: kilobytes (1k = 1000 bytes)
** _m_: megabytes (1m = 1000k = 1,000,000 bytes)
** _g_: gigabytes (1g = 1000m = 1,000,000,000 bytes)
** _t_: terabytes (1t = 1000g = 1,000,000,000,000 bytes)
Valore restituito:
* size in bytes, 0 if error
Esempio in C:
[source,c]
----
unsigned long long size = weechat_parse_size ("1.34m"); /* size == 1340000 */
----
Script (Python):
[source,python]
----
# prototipo
def string_parse_size(size: str) -> int: ...
# esempio
size = weechat.string_parse_size("1.34m") # 1340000
----
==== string_color_code_size
_WeeChat ≥ 3.0._
@@ -2724,7 +2783,7 @@ expanded to last):
| `+${eval:xxx}+` | 1.3
| String to evaluate.
| >> `+${eval:${date:${weechat.look.buffer_time_format}}}+` +
== `+19:02:45+` ^(1)^ +
== `+19:02:45+` ^(1)^ +
+
^(1)^ With colors if there are color codes in the option
weechat.look.buffer_time_format
@@ -2793,7 +2852,7 @@ expanded to last):
== `+!dlrow ,olleH+` +
+
>> `+${rev:Hello, ${color:red}world!}+` +
== `+!dlrow30F ,olleH+` ^(1)^ +
== `+!dlrow30F ,olleH+` ^(1)^ +
+
^(1)^ No color, the color code is reversed
@@ -2803,7 +2862,7 @@ expanded to last):
== `+!dlrow ,olleH+` +
+
>> `+${revscr:Hello, ${color:red}world!}+` +
== `+!dlrow ,olleH+` ^(1)^ +
== `+!dlrow ,olleH+` ^(1)^ +
+
^(1)^ `pass:[ ,olleH]` in red
@@ -2916,10 +2975,10 @@ expanded to last):
| WeeChat color code (the name of color has optional attributes),
see function <<_color,color>> for supported formats.
| >> `+${color:red}red text+` +
== `+red text+` ^(1)^ +
== `+red text+` ^(1)^ +
+
>> `+${color:*214}bold orange text+` +
== `+bold orange text+` ^(2)^ +
== `+bold orange text+` ^(2)^ +
+
^(1)^ In red +
^(2)^ In bold orange
@@ -3024,7 +3083,7 @@ expanded to last):
| `+${translate:xxx}+` | 3.2
| Translated string (depends on the language used by WeeChat to display messages).
| >> `+${translate:Plugin}+` +
== `+Extension+` ^(1)^ +
== `+Extension+` ^(1)^ +
+
^(1)^ Example in French
@@ -3881,6 +3940,50 @@ rc = weechat_crypto_hash (data, strlen (data), "sha256", hash, &hash_size);
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
// TRANSLATION MISSING
==== crypto_hash_file
_WeeChat ≥ 3.7._
Compute hash of a file.
Prototipo:
[source,c]
----
int weechat_crypto_hash_file (const char *filename, const char *hash_algo,
void *hash, int *hash_size);
----
Argomenti:
* _filename_: percorso e nome file
* _hash_algo_: the hash algorithm, see table in function
<<crypto_hash_algorithms,crypto_hash>>
* _hash_: pointer to the hash variable, which is used to store the resulting hash
(the buffer must be large enough, according to the algorithm, see table in
function <<crypto_hash_algorithms,crypto_hash>>)
* _hash_size_: pointer to a variable used to store the length of the hash computed
(in bytes) (can be NULL)
Valore restituito:
* 1 if OK, 0 if error
Esempio in C:
[source,c]
----
char hash[256 / 8];
int rc, hash_size;
rc = weechat_crypto_hash_file ("/path/to/file", "sha256", hash, &hash_size);
/* rc == 1, hash_size == 32 and hash is a buffer with:
71 c4 80 df 93 d6 ae 2f 1e fa d1 44 7c 66 c9 52 5e 31 62 18 cf 51 fc 8d 9e d8 32 f2 da f1 8b 73 */
----
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
// TRANSLATION MISSING
==== crypto_hash_pbkdf2
@@ -4239,6 +4342,48 @@ if (weechat_file_copy ("/tmp/test.txt", "/path/to/test2.txt"))
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
// TRANSLATION MISSING
==== file_compress
_WeeChat ≥ 3.7._
Compress a file with gzip or zstd.
Prototipo:
[source,c]
----
int weechat_file_compress (const char *from, const char *to,
const char *compressor, int compression_level);
----
Argomenti:
* _from_: source file
* _to_: destination file
* _compressor_: the compressor to use, one of:
** _gzip_: gzip compression
** _zstd_: zstandard compression
* _compression_level_: compression level, between 1 (fast, low compression) to
100 (slow, best compression)
Valore restituito:
* 1 if OK, 0 if error
Esempio in C:
[source,c]
----
if (weechat_file_compress ("/tmp/test.txt", "/tmp/test.txt.zst", "zstd", 50))
{
/* OK */
}
----
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
[[util]]
=== Utilità
@@ -6156,7 +6301,7 @@ Script (Python):
def config_new(name: str, callback_reload: str, callback_reload_data: str) -> str: ...
# esempio
def my_config_reload_cb(data, config_file):
def my_config_reload_cb(data: str, config_file: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -6425,26 +6570,26 @@ def config_new_section(config_file: str, name: str,
callback_delete_option: str, callback_delete_option_data: str) -> str: ...
# esempio
def my_section_read_cb(data, config_file, section, option_name, value):
def my_section_read_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
# return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
# return weechat.WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND
# return weechat.WEECHAT_CONFIG_OPTION_SET_ERROR
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_write_default_cb(data, config_file, section_name):
def my_section_write_default_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_create_option_cb(data, config_file, section, option_name, value):
def my_section_create_option_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
def my_section_delete_option_cb(data, config_file, section, option):
def my_section_delete_option_cb(data: str, config_file: str, section: str, option: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED
@@ -6680,21 +6825,21 @@ Script (Python):
# prototipo
def config_new_option(config_file: str, section: str, name: str, type: str, description: str,
string_values: str, min: int, max: int,
default_value: str, value: str, null_value_allowed: int,
default_value: str | None, value: str | None, null_value_allowed: int,
callback_check_value: str, callback_check_value_data: str,
callback_change: str, callback_change_data: str,
callback_delete: str, callback_delete_data: str) -> str: ...
# esempio
def option4_check_value_cb(data, option, value):
def option4_check_value_cb(data: str, option: str, value: str) -> int:
# ...
return 1
# return 0
def option4_change_cb(data, option):
def option4_change_cb(data: str, option: str) -> int:
# ...
def option4_delete_cb(data, option):
def option4_delete_cb(data: str, option: str) -> int:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
@@ -7822,7 +7967,7 @@ Script (Python):
def config_write_option(config_file: str, option: str) -> int: ...
# esempio
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "my_section", "")
weechat.config_write_option(config_file, option)
return weechat.WEECHAT_RC_OK
@@ -7876,7 +8021,7 @@ Script (Python):
def config_write_line(config_file: str, option_name: str, value: str) -> int: ...
# esempio
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "my_section", "")
weechat.config_write_line(config_file, "option", "value")
return weechat.WEECHAT_RC_OK
@@ -9026,23 +9171,48 @@ prima di altri. Può risultare utile per i modificatori, data l'importanza
nell'ordine di esecuzione.
Per impostare la priorità, è necessario usare questa sintassi per gli
argomenti dove è consentita la priorità: "nnn|nome" dove "nnn" è un intero non
negativo con la priorità e "nome" è il nome per l'argomenti (la priorità non
compare nel nome, viene rimossa automaticamente dalla stringa).
argomenti dove è consentita la priorità: `nnn|nome` dove `nnn` è un intero non
negativo con la priorità e `nome` è il nome per l'argomenti (la priorità non
compare nel nome, viene rimossa automaticamente dalla stringa). +
// TRANSLATION MISSING
Only a single priority per hook is allowed.
La priorità predefinita è 1000.
Esempio in C:
// TRANSLATION MISSING
C examples:
// TRANSLATION MISSING
[source,c]
----
/* hook per il modificatore con priorità = 2000 */
/* high priority: called before other modifier calbacks */
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
/* hook two signals with priority = 3000 */
/* high priority: called before other signal callbacks */
weechat_hook_signal ("3000|quit;upgrade", &signal_cb, NULL, NULL);
/* hook lines printed in formatted buffers with priority = 500 */
/* low priority: called after other line callbacks */
weechat_hook_line ("500|formatted", "*", NULL, &line_cb, NULL, NULL);
----
I tipi di hook che seguono consentono la priorità: command, command_run,
signal, hsignal, config, completion, modifier, info, info_hashtable, infolist,
hdata, focus.
I tipi di hook che seguono consentono la priorità:
* <<_hook_command,command>>
* <<_hook_completion,completion>>
* <<_hook_command_run,command_run>>
* <<_hook_line,line>>
* <<_hook_signal,signal>>
* <<_hook_hsignal,hsignal>>
* <<_hook_config,config>>
* <<_hook_modifier,modifier>>
* <<_hook_info,info>>
* <<_hook_info_hashtable,info_hashtable>>
* <<_hook_infolist,infolist>>
* <<_hook_hdata,hdata>>
* <<_hook_focus,focus>>
==== hook_command
@@ -9072,8 +9242,9 @@ struct t_hook *weechat_hook_command (const char *command,
Argomenti:
// TRANSLATION MISSING
* _command_: nome del comando
(priorità consentita, consultare la nota riguardo la <<hook_priority,priority>>)
(a priority is allowed before the command, see note about <<hook_priority,priority>>)
* _description_: descrizione per il comando (visualizzata con `/help comando`)
* _args_: argomenti per il comando (visualizzati con `/help command`)
* _args_description_: descrizione degli argomenti (visualizzata con `/help command`)
@@ -9167,7 +9338,7 @@ def hook_command(command: str, description: str, args: str, args_description: st
completion: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_command_cb(data, buffer, args):
def my_command_cb(data: str, buffer: str, args: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9209,10 +9380,10 @@ struct t_hook *weechat_hook_completion (const char *completion_item,
Argomenti:
// TRANSLATION MISSING
* _completion_item_: nome dell'elemento del completamento, è possibile usare
in seguito _%(name)_ in un comando con un hook (argomento _completion_)
(priorità consentita, consultare la nota riguardo la
<<hook_priority,priority>>)
(a priority is allowed before the completion item, see note about <<hook_priority,priority>>)
* _callback_: funzione chiamata quando viene usato l'elemento completamento
(l'utente sta completando qualcosa usando questo elemento), argomenti e valore
restituito:
@@ -9276,7 +9447,7 @@ Script (Python):
def hook_completion(completion_item: str, description: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
weechat.completion_list_add(completion, "word1", 0, weechat.WEECHAT_LIST_POS_SORT)
weechat.completion_list_add(completion, "test_word2", 0, weechat.WEECHAT_LIST_POS_SORT)
return weechat.WEECHAT_RC_OK
@@ -9323,8 +9494,7 @@ Argomenti:
// TRANSLATION MISSING
* _command_: comando su cui eseguire l'hook (wildcard `+*+` is allowed)
(priorità consentita, consultare la nota riguardo la
<<hook_priority,priority>>)
(a priority is allowed before the command, see note about <<hook_priority,priority>>)
* _callback_: funzione chiamata quando il comando è in esecuzione, argomenti e
valore restituito:
** _const void *pointer_: puntatore
@@ -9370,7 +9540,7 @@ Script (Python):
def hook_command_run(command: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_command_run_cb(data, buffer, command):
def my_command_run_cb(data: str, buffer: str, command: str) -> int:
weechat.prnt("", "Sto mangiando il completamento!")
return weechat.WEECHAT_RC_OK_EAT
@@ -9450,7 +9620,7 @@ Script (Python):
def hook_timer(interval: int, align_second: int, max_calls: int, callback: str, callback_data: str) -> str: ...
# esempio
def my_timer_cb(data, remaining_calls):
def my_timer_cb(data: str, remaining_calls: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9538,7 +9708,7 @@ Script (Python):
def hook_fd(fd: int, flag_read: int, flag_write: int, flag_exception: int, callback: str, callback_data: str) -> str: ...
# esempio
def my_fd_cb(data, fd):
def my_fd_cb(data: str, fd: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9600,11 +9770,12 @@ Argomenti:
**** _3_: memoria non sufficiente
**** _4_: errore con un file
*** _< 0_:
**** _WEECHAT_HOOK_PROCESS_RUNNING_: dati disponibili, ma figlio ancora in
esecuzione)
**** _WEECHAT_HOOK_PROCESS_ERROR_: errore nella esecuzione del comando
**** _WEECHAT_HOOK_PROCESS_RUNNING_ (-1): dati disponibili, ma figlio ancora in
esecuzione
**** _WEECHAT_HOOK_PROCESS_ERROR_ (-2): errore nella esecuzione del comando
// TRANSLATION MISSING
**** _WEECHAT_HOOK_PROCESS_CHILD_: callback is called in the child process
**** _WEECHAT_HOOK_PROCESS_CHILD_ (-3): callback is called in the child process
(used only in C API, not scripting API)
** _out_: output standard del comando (stdout)
** _err_: output di errore del comando (stderr)
** valore restituito:
@@ -9749,7 +9920,7 @@ Script (Python):
def hook_process(command: str, timeout: int, callback: str, callback_data: str) -> str: ...
# example with an external command
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9764,12 +9935,12 @@ def my_process_cb(data, command, return_code, out, err):
hook = weechat.hook_process("ls", 5000, "my_process_cb", "")
# example with a script function
def get_status(data):
def get_status(data: str) -> str:
# do something blocking...
# ...
return "this is the result"
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9982,7 +10153,7 @@ Script (Python):
def hook_process_hashtable(command: str, options: Dict[str, str], timeout: int, callback: str, callback_data: str) -> str: ...
# esempio
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -10187,7 +10358,7 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc
callback: str, callback_data: str) -> str: ...
# esempio
def my_connect_cb(data, status, gnutls_rc, sock, error, ip_address):
def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int:
if status == WEECHAT_HOOK_CONNECT_OK:
# ...
elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND:
@@ -10219,7 +10390,7 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
// TRANSLATION MISSING
==== hook_line
_WeeChat ≥ 2.3._
_WeeChat ≥ 2.3, updated in 3.7._
Hook a line to be printed in a buffer.
@@ -10253,7 +10424,9 @@ struct t_hook *weechat_hook_line (const char *buffer_type,
Argomenti:
* _buffer_type_: catch lines on the given buffer type (if NULL or empty string,
_formatted_ is the default):
_formatted_ is the default)
(_WeeChat ≥ 3.7_: a priority is allowed before the buffer type,
see note about <<hook_priority,priority>>):
** _formatted_: catch lines on formatted buffers only (default)
** _free_: catch lines on buffers with free content only
** _*_: catch lines on all buffer types
@@ -10482,7 +10655,7 @@ Script (Python):
def hook_line(buffer_type: str, buffer_name: str, tags: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_line_cb(data, line):
def my_line_cb(data: str, line: Dict[str, str]) -> Dict[str, str]:
# force a highlight on the line
return {"highlight": "1"}
@@ -10601,8 +10774,8 @@ Script (Python):
def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback: str, callback_data: str) -> str: ...
# esempio
def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message):
if int(highlight):
def my_print_cb(data: str, buffer: str, date: str, tags: str, displayed: int, highlight: int, prefix: str, message: str) -> int:
if highlight:
# ...
return weechat.WEECHAT_RC_OK
@@ -10636,8 +10809,8 @@ Argomenti:
// TRANSLATION MISSING
* _signal_: segnale da catturare, wildcard `+*+` is allowed, multiple signals
can be separated by semi-colons
(priorità consentita, consultare la nota riguardo la
<<hook_priority,priority>>), see table below
(a priority is allowed before one or more signals, see note about <<hook_priority,priority>>)
(see table below)
* _callback_: funzione chiamata a segnale ricevuto, argomenti e valore
restituito:
** _const void *pointer_: puntatore
@@ -10693,7 +10866,7 @@ List of signals sent by WeeChat and plugins:
| Scheme script(s) removed.
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| String: messaggio.
| Messaggio IRC dal server (prima di essere utilizzato
dal plugin irc, il segnale viene inviato solo se il
@@ -10703,7 +10876,7 @@ List of signals sent by WeeChat and plugins:
is immediately destroyed and not processed _(WeeChat ≥ 3.3)_.
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| String: messaggio.
| Messaggio IRC dal server (dopo essere stato
utilizzato dal plugin irc, il segnale viene inviato
@@ -10711,7 +10884,7 @@ List of signals sent by WeeChat and plugins:
Since version 2.2, the whole IRC message is sent, including tags.
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ | 0.3.2
| String: messaggio.
| Messaggio IRC dal server (prima di essere utilizzato
dal plugin irc, il segnale viene inviato anche se il
@@ -10721,7 +10894,7 @@ List of signals sent by WeeChat and plugins:
is immediately destroyed and not processed _(WeeChat ≥ 3.3)_.
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| String: messaggio.
| Messaggio IRC dal server (dopo essere stato
utilizzato dal plugin irc, il segnale viene inviato
@@ -10729,13 +10902,13 @@ List of signals sent by WeeChat and plugins:
Since version 2.2, the whole IRC message is sent, including tags.
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| String: messaggio.
| IRC message sent to server before automatic split
(to fit in 512 bytes by default).
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| String: messaggio.
| IRC message sent to server after automatic split
(to fit in 512 bytes by default). +
@@ -10743,7 +10916,7 @@ List of signals sent by WeeChat and plugins:
Signal "xxx,irc_out1_yyy" is recommended instead.
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| Stringa: tag + ";" + messaggio.
| Tag + messaggio IRC inviato al server. +
*Warning:* the string may contain invalid UTF-8 data.
@@ -11316,7 +11489,8 @@ List of signals sent by WeeChat and plugins:
// TRANSLATION MISSING
| weechat | [[hook_signal_upgrade]] upgrade |
| String: "quit" if "-quit" argument was given for /upgrade, otherwise NULL.
| String: "quit" if "-quit" argument was given for /upgrade, "save" if "-save"
if "-save" argument was given for /upgrade, otherwise NULL.
| Comando `/upgrade` digitato dall'utente.
| weechat | [[hook_signal_upgrade_ended]] upgrade_ended | 0.3.4
@@ -11431,7 +11605,7 @@ Script (Python):
def hook_signal(signal: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_signal_cb(data, signal, signal_data):
def my_signal_cb(data: str, signal: str, signal_data: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11676,8 +11850,8 @@ Argomenti:
// TRANSLATION MISSING
* _signal_: segnale da catturare, wildcard `+*+` is allowed, multiple signals can
be separated by semi-colons
(priorità consentita, consultare la nota a proposito di <<hook_priority,priority>>),
see table below
(a priority is allowed before one or more signals, see note about <<hook_priority,priority>>)
(see table below)
* _callback_: funzione chiamata a segnale ricevuto, argomenti e valore
restituito:
** _const void *pointer_: puntatore
@@ -11708,7 +11882,7 @@ List of hsignals sent by WeeChat and plugins:
// TRANSLATION MISSING
| Plugin | Segnale | Min WeeChat | Argomenti | Descrizione
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| Consultare <<hsignal_irc_redirect_command,hsignal_irc_redirect_command>>
| Redirection output.
@@ -11783,7 +11957,7 @@ Script (Python):
def hook_hsignal(signal: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_hsignal_cb(data, signal, hashtable):
def my_hsignal_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11942,7 +12116,7 @@ Script (Python):
[source,python]
----
def test_whois_cb(data, signal, hashtable):
def test_whois_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
weechat.prnt("", "error = %s" % hashtable["error"])
weechat.prnt("", "output = %s" % hashtable["output"])
return weechat.WEECHAT_RC_OK
@@ -12053,8 +12227,7 @@ Argomenti:
// TRANSLATION MISSING
* _option_: opzione, il formato è il nome completo, come usato con il comando
`/set` (ad esempio: `+weechat.look.item_time_format+`), wildcard `+*+` is allowed
(priorità consentita, consultare la note riguardo la
<<hook_priority,priority>>)
(a priority is allowed before the option, see note about <<hook_priority,priority>>)
* _callback_: funzione chiamata quando l'opzione di configurazione è cambiata,
argomenti e valore restituito:
** _const void *pointer_: puntatore
@@ -12099,7 +12272,7 @@ Script (Python):
def hook_config(option: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_config_cb(data, option, value):
def my_config_cb(data: str, option: str, value: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -12131,10 +12304,9 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
Argomenti:
// TRANSLATION MISSING
* _modifier_: nome modificatore, lista di modificatori utilizzati da
WeeChat o dai plugin
(priorità consentita, consultare la nota riguardo la
<<hook_priority,priority>>), see table below
* _modifier_: nome modificatore
(a priority is allowed before the modifier, see note about <<hook_priority,priority>>)
(see table below)
* _callback_: funzione chiamata quando viene usato il modificatore,
argomenti e valore restituito:
** _const void *pointer_: puntatore
@@ -12161,7 +12333,7 @@ List of modifiers used by WeeChat and plugins:
| Modificatore | Min WeeChat | Dati modificatore | Stringa | Output
// TRANSLATION MISSING
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| Nome server
| Contenuto del messaggio ricevuto dal server IRC (prima della codifica del set caratteri). +
*Warning:* the string may contain invalid UTF-8 data; use only for raw
@@ -12169,27 +12341,27 @@ List of modifiers used by WeeChat and plugins:
Modifier <<hook_modifier_irc_in2_xxx,irc_in2_xxx>> is recommended instead.
| Nuovo contenuto del messaggio.
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| Nome server
| Contenuto del messaggio ricevuto dal server IRC (dopo la codifica del set caratteri).
| Nuovo contenuto del messaggio.
// TRANSLATION MISSING
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| Nome server
| Content of message about to be sent to IRC server before automatic split
(to fit in 512 bytes by default).
| Nuovo contenuto del messaggio.
// TRANSLATION MISSING
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| Nome server
| Content of message about to be sent to IRC server after automatic split
(to fit in 512 bytes by default).
| Nuovo contenuto del messaggio.
// TRANSLATION MISSING
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| Stringa con puntatore alla finestra (eg: "0x1234abcd")
| Stringa vuota.
| "1" per visualizzare la barra, "0" per nasconderla.
@@ -12226,7 +12398,7 @@ List of modifiers used by WeeChat and plugins:
// TRANSLATION MISSING
| [[hook_modifier_weechat_print]] weechat_print |
| buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^
| buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^
| Messaggio stampato.
| Nuovo messaggio stampato. +
For more information on the hooks called when a line is printed, see
@@ -12276,7 +12448,7 @@ Script (Python):
def hook_modifier(modifier: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_modifier_cb(data, modifier, modifier_data, string):
def my_modifier_cb(data: str, modifier: str, modifier_data: str, string: str) -> str:
return "%s xxx" % string
hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "")
@@ -12430,9 +12602,9 @@ struct t_hook *weechat_hook_info (const char *info_name,
Argomenti:
// TRANSLATION MISSING
* _info_name_: nome della info
(priorità consentita, consultare la nota riguardo la
<<hook_priority,priority>>)
(a priority is allowed before the info name, see note about <<hook_priority,priority>>)
* _description_: descrizione
* _args_description_: descrizione degli argomenti
* _callback_: funzione chiamata alla richiesta di una info, argomenti e valore
@@ -12485,7 +12657,7 @@ def hook_info(info_name: str, description: str, args_description: str,
callback: str, callback_data: str) -> str: ...
# esempio
def my_info_cb(data, info_name, arguments):
def my_info_cb(data: str, info_name: str, arguments: str) -> str:
return "some_info"
hook = weechat.hook_info("my_info", "Some info", "Info about arguments",
@@ -12517,9 +12689,9 @@ struct t_hook *weechat_hook_info_hashtable (const char *info_name,
Argomenti:
// TRANSLATION MISSING
* _info_name_: nome della info
(priorità consentita, consultare la nota riguardo la
<<hook_priority,priority>>)
(a priority is allowed before the info name, see note about <<hook_priority,priority>>)
* _description_: descrizione
* _args_description_: descrizione della tabella hash attesa (opzionale, può
essere NULL)
@@ -12571,7 +12743,7 @@ def hook_info_hashtable(info_name: str, description: str, args_description: str,
output_description: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_info_hashtable_cb(data, info_name, hashtable):
def my_info_hashtable_cb(data: str, info_name: str, hashtable: Dict[str, str]) -> Dict[str, str]:
return {"test_key": "test_value"}
hook = weechat.hook_info_hashtable("my_info_hashtable", "Some info",
@@ -12607,9 +12779,9 @@ struct t_hook *weechat_hook_infolist (const char *infolist_name,
Argomenti:
// TRANSLATION MISSING
* _infolist_name_: nome della lista info
(priotità consentita, consultare la nota riguardo la
<<hook_priority,priority>>)
(a priority is allowed before the infolist name, see note about <<hook_priority,priority>>)
* _description_: descrizione
* _pointer_description_: descrizione del puntatore (opzionale, può essere NULL)
* _args_description_: descrizione degli argomenti (opzionale, può essere NULL)
@@ -12665,7 +12837,7 @@ def hook_infolist(infolist_name: str, description: str, pointer_description: str
args_description: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_infolist_cb(data, infolist_name, pointer, arguments):
def my_infolist_cb(data: str, infolist_name: str, pointer: str, arguments: str) -> str:
# build infolist
# ...
return my_infolist
@@ -12697,8 +12869,9 @@ struct t_hook *weechat_hook_hdata (const char *hdata_name,
Argomenti:
// TRANSLATION MISSING
* _hdata_name_: nome dell'hdata
(priorità consentita, consultare la nota a proposito di <<hook_priority,priority>>)
(a priority is allowed before the hdata name, see note about <<hook_priority,priority>>)
* _description_: descrizione
* _callback_: funzione chiamata alla richiesta di hdata, argomenti e valore restituito:
** _const void *pointer_: puntatore
@@ -12761,8 +12934,9 @@ struct t_hook *weechat_hook_focus (const char *area,
Argomenti:
// TRANSLATION MISSING
* _area_: "chat" per la zona di chat, o il nome di un elemento barra
(priorità consentita, consultare la nota a riguardo di <<hook_priority,priority>>)
(a priority is allowed before the area, see note about <<hook_priority,priority>>)
* _callback_: funzione chiamata al momento del focus, argomenti e valore restituito:
** _const void *pointer_: puntatore
** _void *data_: puntatore
@@ -12791,7 +12965,7 @@ Contenuto della tabella hash inviata alla callback (tasti e valori sono di tipo
[width="100%",cols="5,5,8,3",options="header"]
|===
| Key ^(1)^ | Descrizione | Valori di esempio | Valore se N/D
| Key ^(1)^ | Descrizione | Valori di esempio | Valore se N/D
| _x | Colonna sullo schermo.
| "0" ... "n" |
@@ -12823,7 +12997,7 @@ Contenuto della tabella hash inviata alla callback (tasti e valori sono di tipo
| _buffer_full_name | Nome completo del buffer.
| "core.weechat", "irc.libera.#weechat", ... | ""
| _buffer_localvar_XXX ^(2)^ | Variabili locali del buffer.
| _buffer_localvar_XXX ^(2)^ | Variabili locali del buffer.
| qualsiasi valore | non impostato
| _chat | Indicatore area di chat.
@@ -12833,16 +13007,16 @@ Contenuto della tabella hash inviata alla callback (tasti e valori sono di tipo
| _chat_line | Pointer to line _(WeeChat ≥ 1.2)_.
| "0x1234abcd" | ""
| _chat_line_x | Colonna nella riga ^(3)^.
| _chat_line_x | Colonna nella riga ^(3)^.
| "0" ... "n" | "-1"
| _chat_line_y | Numero della riga ^(3)^.
| _chat_line_y | Numero della riga ^(3)^.
| "0" ... "n" | "-1"
| _chat_line_date | Riga con data/ora.
| "1313237175" | "0"
| _chat_line_date_printed | Riga con data/ora ^(4)^.
| _chat_line_date_printed | Riga con data/ora ^(4)^.
| "1313237175" | "0"
| _chat_line_time | Ora visualizzata.
@@ -12904,7 +13078,7 @@ Informazioni aggiuntive per l'elemento barra "buffer_nicklist":
[width="100%",cols="^1,^1,5",options="header"]
|===
| Plugin ^(1)^ | Chiave | Descrizione
| Plugin ^(1)^ | Chiave | Descrizione
// TRANSLATION MISSING
| irc | irc_nick | Pointer to IRC nick _(WeeChat ≥ 3.0)_.
| irc | irc_host | Host per il nick (se conosciuto).
@@ -12948,7 +13122,7 @@ Script (Python):
def hook_focus(area: str, callback: str, callback_data: str) -> str: ...
# esempio
def my_focus_nicklist_cb(data, info):
def my_focus_nicklist_cb(data: str, info: Dict[str, str]) -> Dict[str, str]:
# build dict
# ...
return my_dict
@@ -13031,7 +13205,7 @@ Script (Python):
def hook_set(hook: str, property: str, value: str) -> int: ...
# esempio
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -13223,11 +13397,11 @@ def buffer_new(name: str, input_callback: str, input_callback_data: str,
close_callback: str, close_callback_data: str) -> str: ...
# esempio
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Testo: %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Il buffer '%s' verrà chiuso!" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -13350,11 +13524,11 @@ def buffer_new_props(name: str, properties: Dict[str, str],
close_callback: str, close_callback_data: str) -> str: ...
# esempio
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Testo: %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Il buffer '%s' verrà chiuso!" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -13772,6 +13946,8 @@ Argomenti:
** _text_search_input_: input salvato prima della ricerca nel testo
** _highlight_words_: elenco di parole da evidenziare
// TRANSLATION MISSING
** _highlight_disable_regex_: POSIX extended regular expression for disabling highlight
// TRANSLATION MISSING
** _highlight_regex_: POSIX extended regular expression for highlight
// TRANSLATION MISSING
** _highlight_tags_restrict_: restrict highlights to messages with these tags
@@ -13825,6 +14001,7 @@ Argomenti:
* _property_: nome proprietà:
** _plugin_: puntatore al plugin che ha creato questo buffer (NULL
per il buffer principale di WeeChat)
** _highlight_disable_regex_compiled_: espressione regolare _highlight_disable_regex_ compilata
** _highlight_regex_compiled_: espressione regolare _highlight_regex_ compilata
Valore restituito:
@@ -13982,6 +14159,10 @@ Properties:
| Elenco di parole separate da virgole da rimuovere dalle
parole evidenziate nel buffer.
// TRANSLATION MISSING
| highlight_disable_regex | | any string
| POSIX extended regular expression for disabling highlight.
// TRANSLATION MISSING
| highlight_regex | | qualsiasi stringa
| POSIX extended regular expression for highlight.
@@ -15455,13 +15636,13 @@ see example below (supported only in WeeChat ≥ 0.4.2).
def bar_item_new(name: str, build_callback: str, build_callback_data: str) -> str: ...
# esempio (callback without "buffer" and "extra_info")
def my_build_callback(data, item, window):
def my_build_callback(data: str, item: str, window: str) -> str:
return "my content"
bar_item = weechat.bar_item_new("myitem", "my_build_callback", "")
# example (callback with all arguments, for WeeChat ≥ 0.4.2)
def my_build_callback2(data, item, window, buffer, extra_info):
def my_build_callback2(data: str, item: str, window: str, buffer: str, extra_info: Dict[str, str]) -> str:
return "my content"
bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat ≥ 0.4.2
@@ -16071,7 +16252,7 @@ Script (Python):
def completion_get_string(completion: str, property: str) -> str: ...
# esempio
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
# ottiene l'argomento del comando
args = weechat.completion_get_string(completion, "args")
# completamento che dipende dagli argomenti
+15 -1
View File
@@ -603,6 +603,7 @@ Elenco di funzioni nelle API per gli script:
string_has_highlight_regex +
string_mask_to_regex +
string_format_size +
string_parse_size +
string_color_code_size +
string_remove_color +
string_is_command_char +
@@ -1374,7 +1375,7 @@ The result is a hashtable with following keys
[width="100%",cols="3,^2,10,7",options="header"]
|===
| Key | Since WeeChat ^(1)^ | Description | Example
| Key | Since WeeChat ^(1)^ | Description | Example
| tags | 0.4.0
| The tags in message (can be empty).
@@ -1418,6 +1419,16 @@ The result is a hashtable with following keys
| The text (for example user message).
| `+hello!+`
// TRANSLATION MISSING
| paramN | 3.4
| Command parameter (from 1 to N).
| `+#weechat+`
// TRANSLATION MISSING
| num_params | 3.4
| Number of command parameters.
| `+2+`
| pos_command | 1.3
| The index of _command_ in message ("-1" if _command_ was not found).
| `+47+`
@@ -1457,6 +1468,9 @@ dict = weechat.info_get_hashtable(
# "channel": "#weechat",
# "arguments": "#weechat :hello!",
# "text": "hello!",
# "param1": "#weechat",
# "param2": "hello!",
# "num_params": "2",
# "pos_command": "65",
# "pos_arguments": "73",
# "pos_channel": "73",
+153 -52
View File
@@ -131,22 +131,45 @@ WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Pacchetto ^(1)^ | Versione | Caratteristica
// TRANSLATION MISSING
| C compiler (gcc / clang) | | Build.
| cmake | ≥ 3.0 | Compilazione (ancora possibile con autotools, ma si raccomanda CMake).
| Pacchetto ^(1)^ | Versione | Features
// TRANSLATION MISSING
| pkg-config | | Detect installed libraries.
| libncursesw5-dev ^(2)^ | | Interfaccia ncurses.
| libcurl4-gnutls-dev | | Trasferimento URL.
| C compiler (gcc / clang) |
| Build.
| cmake | ≥ 3.0
| Compilazione (ancora possibile con autotools, ma si raccomanda CMake).
// TRANSLATION MISSING
| libgcrypt20-dev | | Secured data, IRC SASL authentication.
| pkg-config |
| Detect installed libraries.
| libncursesw5-dev ^(2)^ |
| Interfaccia ncurses.
| libcurl4-gnutls-dev |
| Trasferimento URL.
// TRANSLATION MISSING
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | Connessione SSL al server IRC, support of SSL in relay plugin, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE).
| libgcrypt20-dev |
| Secured data, IRC SASL authentication.
// TRANSLATION MISSING
| zlib1g-dev | | Compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] in relay plugin (weechat protocol), script plugin.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^
| IRC plugin: support of TLS connections, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE). +
Relay plugin: support of TLS connections.
// TRANSLATION MISSING
| libzstd-dev | | Compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] in relay plugin (weechat protocol).
| zlib1g-dev |
| Logger plugin: compression of rotated log files (gzip). +
Relay plugin: compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] (weechat protocol). +
Script plugin: read of repository index file (gzip).
// TRANSLATION MISSING
| libzstd-dev | ≥ 0.8.1
| Logger plugin: compression of rotated log files. +
Relay plugin: compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] (weechat protocol).
|===
[NOTE]
@@ -167,13 +190,14 @@ WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Pacchetto ^(1)^ | Versione | Caratteristica
// TRANSLATION MISSING
| Pacchetto ^(1)^ | Versione | Features
// TRANSLATION MISSING
| {cpp} compiler (pass:[g++ / clang++]) | | Build and run tests, plugin JavaScript.
| gettext | | Internazionalizzazione (traduzione dei messaggi; la lingua base è l'inglese).
| ca-certificates | | Certificati per le connessioni SSL.
| libaspell-dev / libenchant-dev | | Plugin spell.
| python3-dev ^(2)^ | | Plugin python.
| python3-dev ^(2)^ | | Plugin python.
| libperl-dev | | Plugin perl.
| ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Plugin ruby.
| liblua5.4-dev | | Plugin lua.
@@ -808,26 +832,26 @@ The WeeChat directories are:
[width="100%",cols="1m,3",options="header"]
|===
| Path ^(1)^ | Description
| Path ^(1)^ | Description
| ~/.config/weechat/ | WeeChat configuration files: `*.conf`, certificates, etc.
| ~/.local/share/weechat/ | WeeChat data files: logs, scripts, scripts data, xfer files, etc.
|    logs/ | Log files (one file per buffer).
|    python/ | Python scripts.
|       autoload/ | Python scripts auto-loaded on startup ^(2)^.
|       autoload/ | Python scripts auto-loaded on startup ^(2)^.
|    perl/ | Perl scripts.
|       autoload/ | Perl scripts auto-loaded on startup ^(2)^.
|       autoload/ | Perl scripts auto-loaded on startup ^(2)^.
|    ruby/ | Ruby scripts.
|       autoload/ | Ruby scripts auto-loaded on startup ^(2)^.
|       autoload/ | Ruby scripts auto-loaded on startup ^(2)^.
|    lua/ | Lua scripts.
|       autoload/ | Lua scripts auto-loaded on startup ^(2)^.
|       autoload/ | Lua scripts auto-loaded on startup ^(2)^.
|    tcl/ | Tcl scripts.
|       autoload/ | Tcl scripts auto-loaded on startup ^(2)^.
|       autoload/ | Tcl scripts auto-loaded on startup ^(2)^.
|    guile/ | Guile scripts.
|       autoload/ | Guile scripts auto-loaded on startup ^(2)^.
|       autoload/ | Guile scripts auto-loaded on startup ^(2)^.
|    javascript/ | JavaScript scripts.
|       autoload/ | JavaScript scripts auto-loaded on startup ^(2)^.
|       autoload/ | JavaScript scripts auto-loaded on startup ^(2)^.
|    php/ | PHP scripts.
|       autoload/ | PHP scripts auto-loaded on startup ^(2)^.
|       autoload/ | PHP scripts auto-loaded on startup ^(2)^.
| ~/.cache/weechat/ | WeeChat cache files: scripts cache.
| /run/user/1000/weechat/ | WeeChat runtime files: FIFO pipe, Relay UNIX sockets.
|===
@@ -1386,13 +1410,13 @@ Tag usati di frequente (elenco non esaustivo):
| no_log | La riga non viene scritta nel file di log.
| log0 … log9 | Livello di log per la riga (consultare `/help logger`).
// TRANSLATION MISSING
| notify_none | The line must not be added to hotlist. ^(1)^
| notify_none | The line must not be added to hotlist. ^(1)^
// TRANSLATION MISSING
| notify_message | The line is a user message. ^(1)^
| notify_message | The line is a user message. ^(1)^
// TRANSLATION MISSING
| notify_private | The line is a private message. ^(1)^
| notify_private | The line is a private message. ^(1)^
// TRANSLATION MISSING
| notify_highlight | The line is a message with highlight. ^(1)^
| notify_highlight | The line is a message with highlight. ^(1)^
// TRANSLATION MISSING
| self_msg | Self message.
| nick_xxx | Il messaggio viene dal nick "xxx".
@@ -1623,33 +1647,35 @@ They can be changed and new ones can be added with the <<command_weechat_key,/ke
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| Tasti | Descrizione | Comando
| Tasti | Descrizione | Comando
| kbd:[Del] +
kbd:[Ctrl+d] | Elimina il carattere successivo nella riga di comando. | `+/input delete_next_char+`
kbd:[Ctrl+d] | Elimina il carattere successivo nella riga di comando. | `+/input delete_next_char+`
| kbd:[Backspace] +
kbd:[Ctrl+h] | Elimina il carattere precedente nella riga di comando. | `+/input delete_previous_char+`
kbd:[Ctrl+h] | Elimina il carattere precedente nella riga di comando. | `+/input delete_previous_char+`
// TRANSLATION MISSING
| kbd:[Ctrl+k] | Elimina dal cursore fino alla fine della riga di comando (deleted string is copied to the internal clipboard). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Inverti caratteri. | `+/input transpose_chars+`
| kbd:[Ctrl+k] | Elimina dal cursore fino alla fine della riga di comando (deleted string is copied to the internal clipboard). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Inverti caratteri. | `+/input transpose_chars+`
// TRANSLATION MISSING
| kbd:[Ctrl+u] | Elimina dal cursore fino all'inizio della riga di comando (deleted string is copied to the internal clipboard). | `+/input delete_beginning_of_line+`
| kbd:[Ctrl+u] | Elimina dal cursore fino all'inizio della riga di comando (deleted string is copied to the internal clipboard). | `+/input delete_beginning_of_line+`
// TRANSLATION MISSING
| kbd:[Ctrl+w] | Elimina la parola precedente nella riga di comando (deleted string is copied to the internal clipboard). | `+/input delete_previous_word+`
| kbd:[Alt+Backspace] | Elimina la parola precedente nella riga di comando (deleted string is copied to the internal clipboard). | `+/input delete_previous_word+`
// TRANSLATION MISSING
| kbd:[Ctrl+y] | Paste the internal clipboard content. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Annulla l'ultima azione sulla riga di comando. | `+/input undo+`
| kbd:[Alt+_] | Ripete l'ultima azione sulla riga di comando. | `+/input redo+`
| kbd:[Tab] | Completa comando o nick (kbd:[Tab] di nuovo: trova prossimo completamento). | `+/input complete_next+`
| kbd:[Shift+Tab] | Senza completamento: effettua un completamento parziale, con completamento in sospeso: completa con il completamento precedente. | `+/input complete_previous+`
| kbd:[Ctrl+w] | Delete previous word of command line until whitespace (deleted string is copied to the internal clipboard). | `+/input delete_previous_word_whitespace+`
// TRANSLATION MISSING
| kbd:[Ctrl+y] | Paste the internal clipboard content. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Annulla l'ultima azione sulla riga di comando. | `+/input undo+`
| kbd:[Alt+_] | Ripete l'ultima azione sulla riga di comando. | `+/input redo+`
| kbd:[Tab] | Completa comando o nick (kbd:[Tab] di nuovo: trova prossimo completamento). | `+/input complete_next+`
| kbd:[Shift+Tab] | Senza completamento: effettua un completamento parziale, con completamento in sospeso: completa con il completamento precedente. | `+/input complete_previous+`
| kbd:[Invio] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | Esegue comando o invia messaggio (in modalità ricerca: ferma ricerca). | `+/input return+`
kbd:[Ctrl+m] | Esegue comando o invia messaggio (in modalità ricerca: ferma ricerca). | `+/input return+`
// TRANSLATION MISSING
| kbd:[Alt+Enter] | Insert a newline. | `+/input insert \n+`
| kbd:[Alt+Enter] | Insert a newline. | `+/input insert \n+`
// TRANSLATION MISSING
| kbd:[Alt+d] | Elimina la parola successiva nella riga di comando (deleted string is copied to the internal clipboard). | `+/input delete_next_word+`
| kbd:[Alt+k] | Cattura un tasto ed inserisce il suo codice (e il comando associato se il tasto esiste) nella riga di comando. | `+/input grab_key_command+`
| kbd:[Alt+r] | Elimina l'intera riga di comando. | `+/input delete_line+`
| kbd:[Alt+d] | Elimina la parola successiva nella riga di comando (deleted string is copied to the internal clipboard). | `+/input delete_next_word+`
| kbd:[Alt+k] | Cattura un tasto ed inserisce il suo codice (e il comando associato se il tasto esiste) nella riga di comando. | `+/input grab_key_command+`
| kbd:[Alt+r] | Elimina l'intera riga di comando. | `+/input delete_line+`
|===
// TRANSLATION MISSING
@@ -1873,7 +1899,7 @@ These mouse actions are possible only if mouse is enabled with key kbd:[Alt+m]
[width="100%",cols="^.^3,^.^3,^.^3,.^8,.^8",options="header"]
|===
// TRANSLATION MISSING
| Tasto/Wheel ^(1)^ | Azione | Zona | Descrizione | Comando
| Tasto/Wheel ^(1)^ | Azione | Zona | Descrizione | Comando
| ◾◽◽ | - | chat | Passa alla finestra. | `+/window ${_window_number}+`
| ◾◽◽ | sinistra | chat | Passa al buffer precedente. | `+/window ${_window_number};/buffer +1+`
| ◾◽◽ | destra | chat | Passa al buffer successivo. | `+/window ${_window_number};/buffer +1+`
@@ -1946,7 +1972,7 @@ These keys and actions are used on the fset buffer (see <<fset,Fset plugin>>).
// TRANSLATION MISSING
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key | Action ^(1)^ | Description | Command
| Key | Action ^(1)^ | Description | Command
| kbd:[↑] | | Move one line up. | `+/fset -up+`
| kbd:[↓] | | Move one line down. | `+/fset -down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
@@ -1996,7 +2022,7 @@ These keys and actions are used on the script buffer (see <<script_manager,scrip
// TRANSLATION MISSING
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key | Action ^(1)^ | Description | Command
| Key | Action ^(1)^ | Description | Command
| kbd:[↑] | | Move one line up. | `+/script up+`
| kbd:[↓] | | Move one line down. | `+/script down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
@@ -2393,6 +2419,37 @@ with `+/script install buffer_autoset.py+` and get help with `+/help buffer_auto
[[highlights]]
=== Highlights
// TRANSLATION MISSING
[[highlights_disable]]
==== Disable highlights
You can disable highlights with option
<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
(regular expression). +
When a highlight is disabled with this option, the other highlight options are
ignored.
For example to disable any highlight on messages with a word beginning
with "flash" between chevrons:
----
/set weechat.look.highlight_regex "<flash.*>"
----
This can also be set with the buffer property "highlight_disable_regex".
Same example, specific to the current buffer:
----
/buffer set highlight_disable_regex <flash.*>
----
[NOTE]
The buffer property "highlight_disable_regex" is not saved in configuration. +
You can easily save it with the script _buffer_autoset.py_: you can install it
with `+/script install buffer_autoset.py+` and get help with
`+/help buffer_autoset+`.
[[highlights_words]]
==== Add words to highlight
@@ -2405,7 +2462,7 @@ You can add other words to highlight with the option
highlight your nick and "word1", "word2" and all words beginning with "test":
----
/set weechat.look.highlight word1,word2,test*
/set weechat.look.highlight "word1,word2,test*"
----
If you need a more specific rule for the word, you can use regular expressions
@@ -2413,7 +2470,7 @@ with the option <<option_weechat.look.highlight_regex,weechat.look.highlight_reg
for example to highlight words "flashcode", "flashcöde" and "flashy":
----
/set weechat.look.highlight_regex flashc[oö]de|flashy
/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----
The delimiters around words to highlight can be customized with the option
@@ -2595,6 +2652,49 @@ Si avranno i seguenti file:
...
....
// TRANSLATION MISSING
[[logger_rotation_compression]]
==== Rotation and compression
It is possible to define a max size for log files, and when it is reached,
there is automatic rotation of log file.
The rotated log files can be compressed with gzip or
https://facebook.github.io/zstd/[zstd ^↗^,window=_blank].
[NOTE]
As the compression of a file can take some time, it is performed in background.
Example with a max size of 2GB and compression with gzip, using good compression
level (slower than default one):
----
/set logger.file.rotation_compression_type gzip
/set logger.file.rotation_compression_level 80
/set logger.file.rotation_size_max "2g"
----
If you want to use a decimal number, you can use the unit below and multiply
by 1000, for example to set max size to 2.5GB:
----
/set logger.file.rotation_size_max "2500m"
----
With these settings, you'll end with files like these ones (in this example
there is rotation only for the log of #weechat channel):
....
~/.local/share/weechat
└── logs
├── core.weechat.weechatlog
├── irc.server.libera.weechatlog
├── irc.libera.#weechat.weechatlog
├── irc.libera.#weechat.weechatlog.1.gz
├── irc.libera.#weechat.weechatlog.2.gz
└── irc.libera.#weechat.weechatlog.3.gz
....
[[logger_commands]]
==== Comandi
@@ -4180,8 +4280,8 @@ automaticamente da WeeChat quando si risponde alle CTCP
| Codice | Descrizione | Valore/esempio
| $clientinfo | Elenco di CTCP supportate | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| $version | Versione di WeeChat | `+0.4.0-dev+`
| $versiongit | Versione di WeeChat + Git version ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git version ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $versiongit | Versione di WeeChat + Git version ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git version ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $compilation | Data di compilazione di WeeChat | `+Dec 16 2012+`
| $osinfo | Informazioni sull'OS | `+Linux 2.6.32-5-amd64 / x86_64+`
| $site | Sito di WeeChat | `+https://weechat.org/+`
@@ -5095,7 +5195,7 @@ type:
[width="100%",cols="2,3,7",options="header"]
|===
| Hook | Default variable | Update allowed ^(1)^
| Hook | Default variable | Update allowed ^(1)^
| signal | tg_signal_data |
| hsignal | |
| modifier | tg_string | tg_string
@@ -5186,6 +5286,7 @@ All callbacks set following variables in hashtable:
|===
| Variable | Type | Description
| tg_trigger_name | string | Name of trigger.
| tg_hook_type | string | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
@@ -5311,7 +5412,7 @@ Variables set using tags in message:
| tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc").
| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx").
| tg_tag_notify | string | Notify level (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Notify level, if different from _none_.
| tg_msg_pv | string | "1" for a private message, otherwise "0".
|===
@@ -5353,7 +5454,7 @@ Variables set using tags in message:
| tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc").
| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx").
| tg_tag_notify | string | Notify level (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Notify level, if different from _none_.
| tg_msg_pv | string | "1" for a private message, otherwise "0".
|===
@@ -631,6 +631,8 @@ _text_search_input_   (string) +
_highlight_words_   (string) +
_highlight_regex_   (string) +
_highlight_regex_compiled_   (pointer) +
_highlight_disable_regex_   (string) +
_highlight_disable_regex_compiled_   (pointer) +
_highlight_tags_restrict_   (string) +
_highlight_tags_restrict_count_   (integer) +
_highlight_tags_restrict_array_   (pointer, array_size: "highlight_tags_restrict_count") +
@@ -128,6 +128,8 @@
| weechat | uptime | WeeChat 連続稼働時間 (書式: "days:hh:mm:ss") | "days" (日数) または "seconds" (秒数) (任意)
| weechat | uptime_current | WeeChat uptime for the current process only (upgrades with /upgrade command are ignored) (format: "days:hh:mm:ss") | "days" (日数) または "seconds" (秒数) (任意)
| weechat | version | WeeChat のバージョン | -
| weechat | version_git | WeeChat の git バージョン (開発バージョンではコマンド "git describe" の出力、安定版リリースでは空文字が出力されます) | -
@@ -6,7 +6,7 @@
// tag::url_options[]
[width="100%",cols="2,^1,7",options="header"]
|===
| オプション | タイプ ^(1)^ | 定数 ^(2)^
| オプション | タイプ ^(1)^ | 定数 ^(2)^
| verbose | long |
+38 -21
View File
@@ -176,7 +176,7 @@ channel: チャンネル名
ls: list the capabilities supported by the server
list: list the capabilities currently enabled
req: request a capability
req: request a new capability or remove a capability (if starting with "-", for example: "-multi-prefix")
ack: acknowledge capabilities which require client-side acknowledgement
end: end the capability negotiation
@@ -187,8 +187,14 @@ Capabilities supported by WeeChat are: account-notify, away-notify, cap-notify,
The capabilities to automatically enable on servers can be set in option irc.server_default.capabilities (or by server in option irc.server.xxx.capabilities).
Examples:
/cap
/cap req multi-prefix away-notify
display supported and enabled capabilities:
/cap
request capabilities multi-prefix and away-notify:
/cap req multi-prefix away-notify
request capability extended-join, remove capability multi-prefix:
/cap req extended-join -multi-prefix
remove capability away-notify:
/cap req -away-notify
----
[[command_irc_connect]]
@@ -1608,6 +1614,7 @@ list of actions:
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_previous_word_whitespace: delete previous word (until whitespace)
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
@@ -2116,19 +2123,22 @@ option: オプションの名前
----
[[command_weechat_upgrade]]
* `+upgrade+`: サーバとの接続を維持して WeeChat 実行バイナリを再読込
* `+upgrade+`: save WeeChat session and reload the WeeChat binary without disconnecting from servers
----
/upgrade [-yes] [<path_to_binary>|-quit]
/upgrade [-yes] [<path_to_binary>|-save|-quit]
-yes: required if option "weechat.look.confirm_upgrade" is enabled
path_to_binary: path to WeeChat binary (default is current binary)
-dummy: do nothing (option used to prevent accidental completion with "-quit")
-save: only save the session, do not quit nor reload WeeChat; the configuration files are not saved (if needed you can use /save before this command)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Note: SSL connections are lost during upgrade (except with -save), because the reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Important: use of option -save can be dangerous, it is recommended to use only /upgrade (or with -quit) for a standard upgrade and a restart; the option -save can be used to save the session regularly and restore it in case of after abnormal exit (power outage, crash, etc.)
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
@@ -2136,14 +2146,18 @@ Upgrade process has 4 steps:
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
With option "-quit", the process is slightly different:
With option "-quit", the process is:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Then later you can restore session with command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
With option "-save", the process is:
1. save session into files (*.upgrade) with a disconnected state for IRC servers and Relay clients (but no disconnection is made)
With -quit or -save, you can restore the session later with this command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf) and if possible the same WeeChat version (or a more recent one).
It is possible to restore WeeChat session on another machine if you copy the content of WeeChat home directories (see /debug dirs).
----
@@ -2328,6 +2342,7 @@ The following variables can be used in these options:
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
- ${hotlist}: the raw hotlist
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight"
- ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = private, 3 = highlight
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
- ${format_tls_version}: indicator of TLS version for a server buffer, empty for channels (evaluation of option buflist.format.tls_version)
----
@@ -3049,27 +3064,27 @@ Examples:
----
/spell enable|disable|toggle
listdict
setdict <dict>[,<dict>...]
setdict -|<dict>[,<dict>...]
deldict
addword [<dict>] <word>
enable: スペルチェックの有効化
disable: スペルチェックの無効化
toggle: スペルチェックの有効無効を切り替え
listdict: インストール済み辞書を表示
setdict: 現在のバッファ用の辞書を設定 (コンマで区切れば複数の辞書を指定可能)
deldict: 現在のバッファ用の辞書を削除
addword: 個人辞書に単語を追加
enable: enable spell checker
disable: disable spell checker
toggle: toggle spell checker
listdict: show installed dictionaries
setdict: set dictionary for current buffer (multiple dictionaries can be separated by a comma, the special value "-" disables spell checking on current buffer)
deldict: delete dictionary used on current buffer
addword: add a word in personal dictionary
一部のコマンドを除いて '/' で始まる入力行はチェックされません (/set spell.check.commands を参照してください)。
Input line beginning with a '/' is not checked, except for some commands (see /set spell.check.commands).
全てのバッファでスペルチェックを有効化するには、"default_dict" オプションを設定した後に、スペルチェックを有効化してください。例:
To enable spell checker on all buffers, use option "default_dict", then enable spell checker, for example:
/set spell.check.default_dict "en"
/spell enable
バーの中にスペル候補リストを表示するには、"spell_suggest" 要素を使ってください。
To display a list of suggestions in a bar, use item "spell_suggest".
スペルチェックの有効無効を切り替えるデフォルトのキーは alt-s です。
Default key to toggle spell checker is alt-s.
----
// end::spell_commands[]
@@ -3186,6 +3201,8 @@ Examples (you can also look at default triggers with /trigger listdefault):
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
silently save config each hour:
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
silently save WeeChat session at midnight (see /help upgrade):
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
/trigger monitor @modifier,resize*
----
+51 -3
View File
@@ -750,6 +750,12 @@
** 値: 未制約文字列
** デフォルト値: `+""+`
* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
** 説明: pass:none[POSIX extended regular expression used to prevent any highlight from a message: this option has higher priority over other highlight options (if the string is found in the message, the highlight is disabled and the other options are ignored), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "<flash.*>", "(?-i)<Flash.*>"]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+""+`
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** 説明: pass:none[メッセージ中のハイライトの有無を判断する POSIX 拡張正規表現、マッチ部分は必ず区切り文字 (アルファベット、"-"、"_"、"|" 以外の文字) で囲まれていなければいけない、正規表現は大文字小文字を区別しない (最初に "(?-i)" がある場合は区別する)、例: "flashcode|flashy"、"(?-i)FlashCode|flashy"]
** タイプ: 文字列
@@ -1397,7 +1403,7 @@
** デフォルト値: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** 説明: pass:none[バッファの内容をファイルに自動的に保存 (バッファのログ保存が無効化されていない限り)]
** 説明: pass:none[automatically save content of buffers to files (unless a buffer disables log); if disabled, logging is disabled on all buffers]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
@@ -1462,6 +1468,24 @@
** 値: 未制約文字列
** デフォルト値: `+"_"+`
* [[option_logger.file.rotation_compression_level]] *logger.file.rotation_compression_level*
** 説明: pass:none[compression level for rotated log files (with extension ".1", ".2", etc.), if option logger.file.rotation_compression_type is enabled: 1 = low compression / fast ... 100 = best compression / slow; the value is a percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is recommended, it offers a good compromise between compression and speed]
** タイプ: 整数
** 値: 1 .. 100
** デフォルト値: `+20+`
* [[option_logger.file.rotation_compression_type]] *logger.file.rotation_compression_type*
** 説明: pass:none[compression type for rotated log files; if set to "none", rotated log files are not compressed; WARNING: if rotation was enabled with another type of compression (or no compression), you must first unload the logger plugin, compress files with the new type (or decompress files), then change the option in logger.conf, then load the logger plugin]
** タイプ: 整数
** 値: none, gzip, zstd
** デフォルト値: `+none+`
* [[option_logger.file.rotation_size_max]] *logger.file.rotation_size_max*
** 説明: pass:none[when this size is reached, a rotation of log files is performed: the existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) and the current file is renamed with extension .1; an integer number with a suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = megabytes, g = gigabytes, t = terabytes; example: "2g" causes a rotation if the file size is > 2,000,000,000 bytes; if set to "0", no rotation is performed (unlimited log size); WARNING: before changing this option, you should first set the compression type via option logger.file.rotation_compression_type]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"0"+`
* [[option_logger.file.time_format]] *logger.file.time_format*
** 説明: pass:none[ログファイルで使用するタイムスタンプ (日付/時間指定子は strftime の man 参照)]
** タイプ: 文字列
@@ -1544,6 +1568,12 @@
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
** デフォルト値: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** 説明: pass:none[text color for trigger context identifier in monitor buffer]
** タイプ: 色
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
** デフォルト値: `+cyan+`
* [[option_trigger.color.regex]] *trigger.color.regex*
** 説明: pass:none[正規表現に対するテキスト色]
** タイプ: 色
@@ -1771,7 +1801,7 @@
** デフォルト値: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** 説明: pass:none[buflist を有効化します]
** 説明: pass:none[enable buflist; it is recommended to use this option instead of just hiding the bar because it also removes some internal hooks that are not needed any more when the bar is hidden; you can also use the command "/buflist toggle" or use the default key alt+shift+b]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
@@ -2127,7 +2157,7 @@
** デフォルト値: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** 説明: pass:none[chghost メッセージの色]
** 説明: pass:none[color for text in "chghost" messages]
** タイプ: 色
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
** デフォルト値: `+brown+`
@@ -2150,6 +2180,12 @@
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
** デフォルト値: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** 説明: pass:none[color for text in "setname" messages]
** タイプ: 色
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
** デフォルト値: `+brown+`
* [[option_irc.color.mirc_remap]] *irc.color.mirc_remap*
** 説明: pass:none[メッセージに含まれる mirc の定義する色に対するマッピングをハッシュテーブルで変更: キーは "fg,bg" で -1 (指定無し) から 15 までの整数、値は WeeChat 色名か色番号 (書式: "1,-1:color1;2,7:color2")、例: "1,-1:darkgray;1,2:white,blue" はテキスト色が黒のものを "darkgray" に、背景色が青でテキスト色が黒のものを "white,blue" に変更; IRC コードに対するデフォルトの WeeChat 色は、0=白、1=黒、2=青、3=緑、4=ライトレッド、5=赤、6=赤紫、7=茶色、8=黄色、9=ライトグリーン、10=シアン、11=ライトシアン、12=ライトブルー、13=ライトマゼンタ、14=暗い灰色、15=灰色]
** タイプ: 文字列
@@ -2330,6 +2366,12 @@
** 値: on, off
** デフォルト値: `+on+`
* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change*
** 説明: pass:none[display nick change in private]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
* [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address*
** 説明: pass:none[display a warning in private buffer if the address of remote nick has changed; this option is disabled by default because servers like bitlbee are causing this warning to be displayed when it is not expected (the address of remote nick changes multiple times on login)]
** タイプ: ブール
@@ -2546,6 +2588,12 @@
** 値: on, off
** デフォルト値: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** 説明: pass:none[enable smart filter for "setname" messages]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+on+`
* [[option_irc.look.temporary_servers]] *irc.look.temporary_servers*
** 説明: pass:none[/connect コマンドによる一時的なサーバの自動追加を有効化する]
** タイプ: ブール
+14 -4
View File
@@ -458,6 +458,10 @@ WeeChat "core" は以下のディレクトリに配置されています:
|          test-gui-chat.cpp | Tests: chat functions.
// TRANSLATION MISSING
|          test-gui-color.cpp | Tests: colors.
// TRANSLATION MISSING
|          test-gui-filter.cpp | Tests: filters.
// TRANSLATION MISSING
|          test-gui-input.cpp | Tests: input functions.
|          test-gui-line.cpp | テスト: 行
// TRANSLATION MISSING
|          test-gui-nick.cpp | テスト: nicks
@@ -506,6 +510,12 @@ WeeChat "core" は以下のディレクトリに配置されています:
|          relay/ | Root of unit tests for Relay plugin.
// TRANSLATION MISSING
|             test-relay-auth.cpp | Tests: clients authentication.
// TRANSLATION MISSING
|          xfer/ | Root of unit tests for Xfer plugin.
// TRANSLATION MISSING
|             test-xfer-file.cpp | Tests: file functions.
// TRANSLATION MISSING
|             test-xfer-network.cpp | Tests: network functions.
|===
[[documentation_translations]]
@@ -1000,10 +1010,10 @@ WeeChat は文字列中に独自の色コードを使うことで、属性
| [hex]#19# + `B` + `EXT` | [hex]#19# `+B@00124+` | chat + bars | 背景色 (拡張色) を設定
| [hex]#19# + `*` + `(ATTR)STD` | [hex]#19# `+*05+` | chat + bars | 文字色(WeeChat 色) を設定
| [hex]#19# + `*` + `(ATTR)EXT` | [hex]#19# `+*@00214+` | chat + bars | 文字色 (拡張色) を設定
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `STD` ^(1)^ | [hex]#19# `+*08,05+` | chat + bars | 文字色および背景色 (WeeChat 色) を設定
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `EXT` ^(1)^ | [hex]#19# `+*01,@00214+` | chat + bars | 文字色 (WeeChat 色) と背景色 (拡張色) を設定
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `STD` ^(1)^ | [hex]#19# `+*@00214,05+` | chat + bars | 文字色 (拡張色) と背景色 (WeeChat 色) を設定
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `EXT` ^(1)^ | [hex]#19# `+*@00214,@00017+` | chat + bars | 文字色および背景色 (拡張色) を設定
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `STD` ^(1)^ | [hex]#19# `+*08,05+` | chat + bars | 文字色および背景色 (WeeChat 色) を設定
| [hex]#19# + `*` + `(ATTR)STD` + `,` + `EXT` ^(1)^ | [hex]#19# `+*01,@00214+` | chat + bars | 文字色 (WeeChat 色) と背景色 (拡張色) を設定
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `STD` ^(1)^ | [hex]#19# `+*@00214,05+` | chat + bars | 文字色 (拡張色) と背景色 (WeeChat 色) を設定
| [hex]#19# + `*` + `(ATTR)EXT` + `,` + `EXT` ^(1)^ | [hex]#19# `+*@00214,@00017+` | chat + bars | 文字色および背景色 (拡張色) を設定
| [hex]#19# + `*` + `(ATTR)STD` + `~` + `STD` | [hex]#19# `+*08~05+` | chat + bars | 文字色および背景色 (WeeChat 色) を設定
| [hex]#19# + `*` + `(ATTR)STD` + `~` + `EXT` | [hex]#19# `+*01~@00214+` | chat + bars | 文字色 (WeeChat 色) と背景色 (拡張色) を設定
| [hex]#19# + `*` + `(ATTR)EXT` + `~` + `STD` | [hex]#19# `+*@00214~05+` | chat + bars | 文字色 (拡張色) と背景色 (WeeChat 色) を設定
+292 -98
View File
@@ -1809,23 +1809,35 @@ weechat_string_free_split (argv);
[NOTE]
スクリプト API ではこの関数を利用できません。
==== string_build_with_split_string
==== string_rebuild_split_string
分割文字列から文字列を作る。
_WeeChat バージョン 3.7 で更新。_
// TRANSLATION MISSING
Rebuild a string with a split string, using optional separator and index of
first/last string to use.
プロトタイプ:
[source,c]
----
char *weechat_string_build_with_split_string (char **split_string,
const char *separator);
char *weechat_string_rebuild_split_string (char **split_string,
const char *separator,
int index_start, int index_end);
----
引数:
* _split_string_: 関数 <<_string_split,string_split>>
が返した分割文字列の配列
* _separator_: 文字列を分割する区切り文字
// TRANSLATION MISSING
* _separator_: string used to separate strings (can be NULL or empty string)
// TRANSLATION MISSING
* _index_start_: index of first string to use (≥ 0)
// TRANSLATION MISSING
* _index_end_: index of last string to use
(must be ≥ _index_start_; special value -1 can be used to use all arguments
until NULL is found)
戻り値:
@@ -1838,7 +1850,7 @@ C 言語での使用例:
char **argv;
int argc;
argv = weechat_string_split ("abc def ghi", " ", 0, 0, &argc);
char *str = weechat_string_build_with_split_string (argv, ";");
char *str = weechat_string_rebuild_split_string (argv, ";", 0, -1);
/* str == "abc;def;ghi" */
/* ... */
free (str);
@@ -1969,6 +1981,52 @@ def string_format_size(size: int) -> str: ...
str = weechat.string_format_size(15200) # == "15.2 KB"
----
// TRANSLATION MISSING
==== string_parse_size
_WeeChat ≥ 3.7._
Parse a string with a size and optional unit and return the size in bytes.
プロトタイプ:
[source,c]
----
unsigned long long weechat_string_parse_size (const char *size);
----
引数:
* _size_: the size as string: positive integer number followed by optional
spaces and optional unit (lower or upper case), which is one of:
** _b_: bytes
** _k_: kilobytes (1k = 1000 bytes)
** _m_: megabytes (1m = 1000k = 1,000,000 bytes)
** _g_: gigabytes (1g = 1000m = 1,000,000,000 bytes)
** _t_: terabytes (1t = 1000g = 1,000,000,000,000 bytes)
戻り値:
* size in bytes, 0 if error
C 言語での使用例:
[source,c]
----
unsigned long long size = weechat_parse_size ("1.34m"); /* size == 1340000 */
----
Script (Python):
[source,python]
----
# プロトタイプ
def string_parse_size(size: str) -> int: ...
# 例
size = weechat.string_parse_size("1.34m") # 1340000
----
==== string_color_code_size
_WeeChat ≥ 3.0._
@@ -2662,7 +2720,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
| `+${eval:xxx}+` | 1.3
| 評価する文字列
| >> `+${eval:${date:${weechat.look.buffer_time_format}}}+` +
==  `+19:02:45+` ^(1)^ +
==  `+19:02:45+` ^(1)^ +
+
^(1)^ オプション weechat.look.buffer_time_format 内に色コードが存在する場合色付き
@@ -2732,7 +2790,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
== `+!dlrow ,olleH+` +
+
>> `+${rev:Hello, ${color:red}world!}+` +
== `+!dlrow30F ,olleH+` ^(1)^ +
== `+!dlrow30F ,olleH+` ^(1)^ +
+
^(1)^ No color, the color code is reversed
@@ -2743,7 +2801,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
== `+!dlrow ,olleH+` +
+
>> `+${revscr:Hello, ${color:red}world!}+` +
== `+!dlrow ,olleH+` ^(1)^ +
== `+!dlrow ,olleH+` ^(1)^ +
+
^(1)^ `pass:[ ,olleH]` in red
@@ -2861,10 +2919,10 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
| WeeChat 色コード (色名部分はオプション属性をとることも可能です),
書式を確認するには関数 <<_color,color>> をご確認ください
| >> `+${color:red}red text+` +
== `+red text+` ^(1)^ +
== `+red text+` ^(1)^ +
+
>> `+${color:*214}bold orange text+` +
== `+bold orange text+` ^(2)^ +
== `+bold orange text+` ^(2)^ +
+
^(1)^ 赤色で +
^(2)^ 太字オレンジ色で
@@ -2976,7 +3034,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
| `+${translate:xxx}+` | 3.2
| Translated string (depends on the language used by WeeChat to display messages).
| >> `+${translate:Plugin}+` +
== `+Extension+` ^(1)^ +
== `+Extension+` ^(1)^ +
+
^(1)^ Example in French
@@ -3803,6 +3861,50 @@ rc = weechat_crypto_hash (data, strlen (data), "sha256", hash, &hash_size);
[NOTE]
スクリプト API ではこの関数を利用できません。
// TRANSLATION MISSING
==== crypto_hash_flie
_WeeChat バージョン 3.7 以上で利用可。_
Compute hash of a file.
プロトタイプ:
[source,c]
----
int weechat_crypto_hash_file (const char *filename, const char *hash_algo,
void *hash, int *hash_size);
----
引数:
* _filename_: パスやファイル名
* _hash_algo_: the hash algorithm, see table in function
<<crypto_hash_algorithms,crypto_hash>>
* _hash_: pointer to the hash variable, which is used to store the resulting hash
(the buffer must be large enough, according to the algorithm, see table in
function <<crypto_hash_algorithms,crypto_hash>>)
* _hash_size_: pointer to a variable used to store the size of the hash computed
(in bytes) (can be NULL)
戻り値:
* 成功した場合は 1、失敗した場合は 0
C 言語での使用例:
[source,c]
----
char hash[256 / 8];
int rc, hash_size;
rc = weechat_crypto_hash_file ("/path/to/file", "sha256", hash, &hash_size);
/* rc == 1, hash_size == 32 and hash is a buffer with:
71 c4 80 df 93 d6 ae 2f 1e fa d1 44 7c 66 c9 52 5e 31 62 18 cf 51 fc 8d 9e d8 32 f2 da f1 8b 73 */
----
[NOTE]
スクリプト API ではこの関数を利用できません。
==== crypto_hash_pbkdf2
_WeeChat バージョン 2.8 以上で利用可。_
@@ -4156,6 +4258,48 @@ if (weechat_file_copy ("/tmp/test.txt", "/path/to/test2.txt"))
[NOTE]
スクリプト API ではこの関数を利用できません。
// TRANSLATION MISSING
==== file_compress
_WeeChat ≥ 3.7._
Compress a file with gzip or zstd.
プロトタイプ:
[source,c]
----
int weechat_file_compress (const char *from, const char *to,
const char *compressor, int compression_level);
----
引数:
* _from_: source file
* _to_: destination file
* _compressor_: the compressor to use, one of:
** _gzip_: gzip compression
** _zstd_: zstandard compression
* _compression_level_: compression level, between 1 (fast, low compression) to
100 (slow, best compression)
戻り値:
* 1 if OK, 0 if error
C 言語での使用例:
[source,c]
----
if (weechat_file_compress ("/tmp/test.txt", "/tmp/test.txt.zst", "zstd", 50))
{
/* OK */
}
----
[NOTE]
スクリプト API ではこの関数を利用できません。
[[util]]
=== ユーティリティ
@@ -5966,7 +6110,7 @@ struct t_config_file *config_file = weechat_config_new ("test",
def config_new(name: str, callback_reload: str, callback_reload_data: str) -> str: ...
# 例
def my_config_reload_cb(data, config_file):
def my_config_reload_cb(data: str, config_file: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -6229,26 +6373,26 @@ def config_new_section(config_file: str, name: str,
callback_delete_option: str, callback_delete_option_data: str) -> str: ...
# 例
def my_section_read_cb(data, config_file, section, option_name, value):
def my_section_read_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
# return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
# return weechat.WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND
# return weechat.WEECHAT_CONFIG_OPTION_SET_ERROR
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_write_default_cb(data, config_file, section_name):
def my_section_write_default_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_create_option_cb(data, config_file, section, option_name, value):
def my_section_create_option_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
def my_section_delete_option_cb(data, config_file, section, option):
def my_section_delete_option_cb(data: str, config_file: str, section: str, option: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED
@@ -6479,21 +6623,21 @@ struct t_config_option *option5 =
# プロトタイプ
def config_new_option(config_file: str, section: str, name: str, type: str, description: str,
string_values: str, min: int, max: int,
default_value: str, value: str, null_value_allowed: int,
default_value: str | None, value: str | None, null_value_allowed: int,
callback_check_value: str, callback_check_value_data: str,
callback_change: str, callback_change_data: str,
callback_delete: str, callback_delete_data: str) -> str: ...
# 例
def option4_check_value_cb(data, option, value):
def option4_check_value_cb(data: str, option: str, value: str) -> int:
# ...
return 1
# return 0
def option4_change_cb(data, option):
def option4_change_cb(data: str, option: str) -> int:
# ...
def option4_delete_cb(data, option):
def option4_delete_cb(data: str, option: str) -> int:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
@@ -7594,7 +7738,7 @@ my_section_write_cb (const void *pointer, void *data,
def config_write_option(config_file: str, option: str) -> int: ...
# 例
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "my_section", "")
weechat.config_write_option(config_file, option)
return weechat.WEECHAT_RC_OK
@@ -7647,7 +7791,7 @@ my_section_write_cb (const void *pointer, void *data,
def config_write_line(config_file: str, option_name: str, value: str) -> int: ...
# 例
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "my_section", "")
weechat.config_write_line(config_file, "option", "value")
return weechat.WEECHAT_RC_OK
@@ -8770,22 +8914,48 @@ _WeeChat バージョン 0.3.4 以上で利用可。_
一部のフックに対して優先度を設定することができます。フックリストは優先度の高い順にフックが並べられ、高い優先度を持つフックはそれよりも低い優先度を持つフックが実行される前に実行されます。これは実行順序が重要となる修飾子で便利です。
優先度が指定できる引数に優先度を設定するには、必ず以下の構文を使ってください:
"nnn|name" ここで "nnn" は優先度を示すゼロおよび正の整数で
"name" は引数の名前です
(優先度は自動的に文字列から削除され、フックの名前になります)。
`nnn|name` ここで `nnn` は優先度を示すゼロおよび正の整数で
`name` は引数の名前です
(優先度は自動的に文字列から削除され、フックの名前になります)。 +
// TRANSLATION MISSING
Only a single priority per hook is allowed.
デフォルトの優先度は 1000 です。
C 言語での使用例:
// TRANSLATION MISSING
C examples:
// TRANSLATION MISSING
[source,c]
----
/* hook modifier with priority = 2000 */
/* high priority: called before other modifier calbacks */
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
/* hook two signals with priority = 3000 */
/* high priority: called before other signal callbacks */
weechat_hook_signal ("3000|quit;upgrade", &signal_cb, NULL, NULL);
/* hook lines printed in formatted buffers with priority = 500 */
/* low priority: called after other line callbacks */
weechat_hook_line ("500|formatted", "*", NULL, &line_cb, NULL, NULL);
----
以下のフック型に対して優先度を設定できます:
command、command_run、signal、hsignal、config、completion、modifier、info、info_hashtable、infolist、hdata、focus。
* <<_hook_command,command>>
* <<_hook_completion,completion>>
* <<_hook_command_run,command_run>>
* <<_hook_line,line>>
* <<_hook_signal,signal>>
* <<_hook_hsignal,hsignal>>
* <<_hook_config,config>>
* <<_hook_modifier,modifier>>
* <<_hook_info,info>>
* <<_hook_info_hashtable,info_hashtable>>
* <<_hook_infolist,infolist>>
* <<_hook_hdata,hdata>>
* <<_hook_focus,focus>>
==== hook_command
@@ -8814,8 +8984,9 @@ struct t_hook *weechat_hook_command (const char *command,
引数:
// TRANSLATION MISSING
* _command_: コマンド名
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the command, see note about <<hook_priority,priority>>)
* _description_: コマンドの説明 (`/help command` で表示されます)
* _args_: コマンドの引数 (`/help command` で表示されます)
* _args_description_: 引数の説明 (`/help command` で表示されます)
@@ -8924,7 +9095,7 @@ def hook_command(command: str, description: str, args: str, args_description: st
completion: str, callback: str, callback_data: str) -> str: ...
# 例
def my_command_cb(data, buffer, args):
def my_command_cb(data: str, buffer: str, args: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -8963,10 +9134,11 @@ struct t_hook *weechat_hook_completion (const char *completion_item,
引数:
// TRANSLATION MISSING
* _completion_item_: 補完候補テンプレートの名前、これ以降コマンドフックの
_completion_ 引数で _%(name)_ という補完候補テンプレートを使えます
(WeeChat バージョン 1.7 以上の場合 _%(name:arguments)_ も使えます)
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the completion item, see note about <<hook_priority,priority>>)
* _description_: 補完候補テンプレートの説明
* _callback_: 補完候補テンプレート (ユーザはこの関数を使って何かを補完します)
が使われた場合に呼び出すコールバック関数、引数と戻り値:
@@ -9031,7 +9203,7 @@ struct t_hook *my_completion_hook = weechat_hook_completion ("plugin_item",
def hook_completion(completion_item: str, description: str, callback: str, callback_data: str) -> str: ...
# 例
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
weechat.completion_list_add(completion, "word1", 0, weechat.WEECHAT_LIST_POS_SORT)
weechat.completion_list_add(completion, "test_word2", 0, weechat.WEECHAT_LIST_POS_SORT)
return weechat.WEECHAT_RC_OK
@@ -9075,8 +9247,9 @@ struct t_hook *weechat_hook_command_run (const char *command,
引数:
// TRANSLATION MISSING
* _command_: フックするコマンド (ワイルドカード `+*+` を使うことができます)
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the command, see note about <<hook_priority,priority>>)
* _callback_: コマンドが実行される際に呼び出すコールバック関数、引数と戻り値:
** _const void *pointer_: ポインタ
** _void *data_: ポインタ
@@ -9120,7 +9293,7 @@ struct t_hook *my_command_run_hook =
def hook_command_run(command: str, callback: str, callback_data: str) -> str: ...
# 例
def my_command_run_cb(data, buffer, command):
def my_command_run_cb(data: str, buffer: str, command: str) -> int:
weechat.prnt("", "I'm eating the completion!")
return weechat.WEECHAT_RC_OK_EAT
@@ -9194,7 +9367,7 @@ struct t_hook *my_timer_hook =
def hook_timer(interval: int, align_second: int, max_calls: int, callback: str, callback_data: str) -> str: ...
# 例
def my_timer_cb(data, remaining_calls):
def my_timer_cb(data: str, remaining_calls: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9278,7 +9451,7 @@ struct t_hook *my_fd_hook = weechat_hook_fd (sock, 1, 0, 0, &my_fd_cb, NULL, NUL
def hook_fd(fd: int, flag_read: int, flag_write: int, flag_exception: int, callback: str, callback_data: str) -> str: ...
# 例
def my_fd_cb(data, fd):
def my_fd_cb(data: str, fd: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -9337,9 +9510,11 @@ struct t_hook *weechat_hook_process (const char *command,
**** _3_: メモリ不足
**** _4_: ファイルに関するエラー
*** _< 0_:
**** _WEECHAT_HOOK_PROCESS_RUNNING_: データは利用可能だが子プロセスは終了していない
**** _WEECHAT_HOOK_PROCESS_ERROR_: コマンドの起動中にエラー
**** _WEECHAT_HOOK_PROCESS_CHILD_: 子プロセスからコールバックが呼び出された
**** _WEECHAT_HOOK_PROCESS_RUNNING_ (-1): データは利用可能だが子プロセスは終了していない
**** _WEECHAT_HOOK_PROCESS_ERROR_ (-2): コマンドの起動中にエラー
// TRANSLATION MISSING
**** _WEECHAT_HOOK_PROCESS_CHILD_ (-3): 子プロセスからコールバックが呼び出された
(used only in C API, not scripting API)
** _out_: コマンドの標準出力 (stdout)
** _err_: コマンドの標準エラー出力 (stderr)
** 戻り値:
@@ -9479,7 +9654,7 @@ struct t_hook *my_process_hook = weechat_hook_process ("func:get_status", 5000,
def hook_process(command: str, timeout: int, callback: str, callback_data: str) -> str: ...
# 外部コマンドを実行する例
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9494,12 +9669,12 @@ def my_process_cb(data, command, return_code, out, err):
hook = weechat.hook_process("ls", 5000, "my_process_cb", "")
# スクリプト関数を実行する例
def get_status(data):
def get_status(data: str) -> str:
# 何かブロックを生じさせるようなことを実行...
# ...
return "this is the result"
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9703,7 +9878,7 @@ if (options_cmd2)
def hook_process_hashtable(command: str, options: Dict[str, str], timeout: int, callback: str, callback_data: str) -> str: ...
# 例
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Error with command '%s'" % command)
return weechat.WEECHAT_RC_OK
@@ -9901,7 +10076,7 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc
callback: str, callback_data: str) -> str: ...
# 例
def my_connect_cb(data, status, gnutls_rc, sock, error, ip_address):
def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int:
if status == WEECHAT_HOOK_CONNECT_OK:
# ...
elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND:
@@ -9932,7 +10107,8 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
==== hook_line
_WeeChat バージョン 2.3 以上で利用可_
// TRANSLATION MISSING
_WeeChat ≥ 2.3, updated in 3.7._
バッファに対する行表示をフックする。
@@ -9966,7 +10142,9 @@ struct t_hook *weechat_hook_line (const char *buffer_type,
引数:
* _buffer_type_: ここで指定したバッファ型の行をフックします (NULL または空文字列の場合、
_formatted_ を指定したことになります):
_formatted_ を指定したことになります)
(_WeeChat ≥ 3.7_: a priority is allowed before the buffer type,
see note about <<hook_priority,priority>>):
** _formatted_: フォーマット済み内容バッファの行のみをフックします (デフォルト)
** _free_: 自由内容バッファの行のみをフックします
** _*_: すべてのバッファの行をフックします
@@ -10196,7 +10374,7 @@ struct t_hook *my_line_hook =
def hook_line(buffer_type: str, buffer_name: str, tags: str, callback: str, callback_data: str) -> str: ...
# 例
def my_line_cb(data, line):
def my_line_cb(data: str, line: Dict[str, str]) -> Dict[str, str]:
# この行のハイライトを強制
return {"highlight": "1"}
@@ -10305,8 +10483,8 @@ struct t_hook *my_print_hook =
def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback: str, callback_data: str) -> str: ...
# 例
def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message):
if int(highlight):
def my_print_cb(data: str, buffer: str, date: str, tags: str, displayed: int, highlight: int, prefix: str, message: str) -> int:
if highlight:
# ...
return weechat.WEECHAT_RC_OK
@@ -10339,7 +10517,7 @@ struct t_hook *weechat_hook_signal (const char *signal,
// TRANSLATION MISSING
* _signal_: キャッチするシグナル、ワイルドカード `+*+` を使うことができます,
multiple signals can be separated by semi-colons
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before one or more signals, see note about <<hook_priority,priority>>)
(以下の表を参照)
* _callback_:
シグナルを受信した際に呼び出すコールバック関数、引数と戻り値:
@@ -10389,7 +10567,7 @@ WeeChat とプラグインが送信するシグナルのリスト:
| Scheme スクリプトを削除
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| String: メッセージ
| サーバから IRC メッセージを受信 (メッセージを *無視しない* 場合のみ irc
プラグインがメッセージを処理する前に、シグナルが送信される) +
@@ -10397,14 +10575,14 @@ WeeChat とプラグインが送信するシグナルのリスト:
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the IRC message
is immediately destroyed and not processed _(WeeChat ≥ 3.3)_.
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| String: メッセージ
| サーバから IRC メッセージを受信 (メッセージを *無視しない* 場合のみ irc
プラグインがメッセージを処理した後に、シグナルが送信される) +
バージョン 2.2 以上ではタグを含めたすべての IRC メッセージが送信されます。
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ | 0.3.2
| String: メッセージ
| サーバから IRC メッセージを受信 (メッセージを無視する場合でも irc
プラグインがメッセージを処理する前に、シグナルが送信される) +
@@ -10412,19 +10590,19 @@ WeeChat とプラグインが送信するシグナルのリスト:
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the IRC message
is immediately destroyed and not processed _(WeeChat ≥ 3.3)_.
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| String: メッセージ
| サーバから IRC メッセージを受信 (メッセージを無視する場合でも irc
プラグインがメッセージを処理した後に、シグナルが送信される) +
バージョン 2.2 以上ではタグを含めたすべての IRC メッセージが送信されます。
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| String: メッセージ
| サーバに送信する IRC メッセージ
(自動分割前、自動分割はデフォルトでメッセージを 512 バイト内に収まるように分割します)。
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| String: メッセージ
| サーバに送信する IRC メッセージ
(自動分割後、自動分割はデフォルトでメッセージを 512 バイト内に収まるように分割します)。 +
@@ -10432,7 +10610,7 @@ WeeChat とプラグインが送信するシグナルのリスト:
Signal "xxx,irc_out1_yyy" is recommended instead.
// TRANSLATION MISSING
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| String: タグ + ";" + メッセージ
| タグ + サーバに送信する IRC メッセージ +
*Warning:* the string may contain invalid UTF-8 data.
@@ -10935,8 +11113,10 @@ WeeChat とプラグインが送信するシグナルのリスト:
| -
| SIGWINCH シグナルを受信しました (端末サイズが変更されました)
// TRANSLATION MISSING
| weechat | [[hook_signal_upgrade]] upgrade |
| String: /upgrade に "-quit" 引数が与えられた場合は "quit"、それ以外は NULL
| String: "quit" if "-quit" argument was given for /upgrade, "save" if "-save"
if "-save" argument was given for /upgrade, otherwise NULL.
| ユーザがコマンド `/upgrade` を実行
| weechat | [[hook_signal_upgrade_ended]] upgrade_ended | 0.3.4
@@ -11044,7 +11224,7 @@ struct t_hook *my_signal_hook = weechat_hook_signal ("quit;upgrade",
def hook_signal(signal: str, callback: str, callback_data: str) -> str: ...
# 例
def my_signal_cb(data, signal, signal_data):
def my_signal_cb(data: str, signal: str, signal_data: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11276,7 +11456,7 @@ struct t_hook *weechat_hook_hsignal (const char *signal,
// TRANSLATION MISSING
* _signal_: キャッチするシグナル、ワイルドカード `+*+` を使うことができます,
multiple signals can be separated by semi-colons
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before one or more signals, see note about <<hook_priority,priority>>)
(以下の表を参照)
* _callback_:
シグナルを受信した際に呼び出すコールバック関数、引数と戻り値:
@@ -11305,7 +11485,7 @@ hsignal のリスト:
// TRANSLATION MISSING
| プラグイン | シグナル | Min WeeChat | 引数 | 説明
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| <<hsignal_irc_redirect_command,hsignal_irc_redirect_command>> を参照
| 出力の転送
@@ -11374,7 +11554,7 @@ struct t_hook *my_hsignal_hook = weechat_hook_hsignal ("test",
def hook_hsignal(signal: str, callback: str, callback_data: str) -> str: ...
# 例
def my_hsignal_cb(data, signal, hashtable):
def my_hsignal_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11528,7 +11708,7 @@ if (hashtable)
[source,python]
----
def test_whois_cb(data, signal, hashtable):
def test_whois_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
weechat.prnt("", "error = %s" % hashtable["error"])
weechat.prnt("", "output = %s" % hashtable["output"])
return weechat.WEECHAT_RC_OK
@@ -11633,9 +11813,10 @@ struct t_hook *weechat_hook_config (const char *option,
引数:
// TRANSLATION MISSING
* _option_: オプション、書式は完全な名前、コマンド `/set` で使うのと同じ
(例: `+weechat.look.item_time_format+`)、ワイルドカード `+*+` を使うことができます
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the option, see note about <<hook_priority,priority>>)
* _callback_:
設定オプションが変更されたら呼び出すコールバック関数、引数と戻り値:
** _const void *pointer_: ポインタ
@@ -11679,7 +11860,7 @@ struct t_hook *my_config_hook = weechat_hook_config ("weechat.look.item_time_for
def hook_config(option: str, callback: str, callback_data: str) -> str: ...
# 例
def my_config_cb(data, option, value):
def my_config_cb(data: str, option: str, value: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11709,8 +11890,9 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
引数:
* _modifier_: 修飾子名、WeeChat またはプラグインが使う修飾子のリスト
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
// TRANSLATION MISSING
* _modifier_: modifier name
(a priority is allowed before the modifier, see note about <<hook_priority,priority>>)
(以下の表を参照)
* _callback_: 修飾子が使われた際に呼び出すコールバック関数、引数と戻り値:
** _const void *pointer_: ポインタ
@@ -11736,7 +11918,7 @@ WeeChat とプラグインが使う修飾子のリスト:
| 修飾子 | Min WeeChat | 修飾子データ | 文字列 | 出力
// TRANSLATION MISSING
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| サーバ名
| IRC サーバから受信したメッセージの内容 (文字セットをデコードする前) +
*Warning:* the string may contain invalid UTF-8 data; use only for raw
@@ -11744,25 +11926,25 @@ WeeChat とプラグインが使う修飾子のリスト:
Modifier <<hook_modifier_irc_in2_xxx,irc_in2_xxx>> is recommended instead.
| メッセージの新しい内容
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| サーバ名
| IRC サーバから受信したメッセージの内容 (文字セットをデコードした後)
| メッセージの新しい内容
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| サーバ名
| IRC サーバに送信するメッセージの内容
(自動分割前、自動分割はデフォルトでメッセージを 512 バイト内に収まるように分割します)。|
メッセージの新しい内容
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| サーバ名
| IRC サーバに送信するメッセージの内容
(自動分割後、自動分割はデフォルトでメッセージを 512 バイト内に収まるように分割します)。|
メッセージの新しい内容
// TRANSLATION MISSING
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| ウィンドウへのポインタの文字列 (eg: "0x1234abcd")
| 空文字列
| バーを表示する場合は "1"、隠す場合は "0"
@@ -11799,7 +11981,7 @@ WeeChat とプラグインが使う修飾子のリスト:
// TRANSLATION MISSING
| [[hook_modifier_weechat_print]] weechat_print |
| buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^
| buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^
| 表示されたメッセージ
| 表示される新しいメッセージ +
行が表示される際に呼び出されるフックについての詳細は
@@ -11850,7 +12032,7 @@ struct t_hook *my_modifier_hook = weechat_hook_modifier ("weechat_print",
def hook_modifier(modifier: str, callback: str, callback_data: str) -> str: ...
# 例
def my_modifier_cb(data, modifier, modifier_data, string):
def my_modifier_cb(data: str, modifier: str, modifier_data: str, string: str) -> str:
return "%s xxx" % string
hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "")
@@ -11996,8 +12178,9 @@ struct t_hook *weechat_hook_info (const char *info_name,
引数:
// TRANSLATION MISSING
* _info_name_: インフォの名前
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the info name, see note about <<hook_priority,priority>>)
* _description_: 説明
* _args_description_: 引数の説明 (任意、NULL にすることも可)
* _callback_: インフォが要求されたら呼び出すコールバック関数、引数と戻り値:
@@ -12047,7 +12230,7 @@ def hook_info(info_name: str, description: str, args_description: str,
callback: str, callback_data: str) -> str: ...
# 例
def my_info_cb(data, info_name, arguments):
def my_info_cb(data: str, info_name: str, arguments: str) -> str:
return "some_info"
hook = weechat.hook_info("my_info", "Some info", "Info about arguments",
@@ -12078,8 +12261,9 @@ struct t_hook *weechat_hook_info_hashtable (const char *info_name,
引数:
// TRANSLATION MISSING
* _info_name_: インフォの名前
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the info name, see note about <<hook_priority,priority>>)
* _description_: 説明
* _args_description_: 引数ハッシュテーブルの説明 (任意、NULL でも可)
* _output_description_: コールバックが返すハッシュテーブルの説明
@@ -12128,7 +12312,7 @@ def hook_info_hashtable(info_name: str, description: str, args_description: str,
output_description: str, callback: str, callback_data: str) -> str: ...
# 例
def my_info_hashtable_cb(data, info_name, hashtable):
def my_info_hashtable_cb(data: str, info_name: str, hashtable: Dict[str, str]) -> Dict[str, str]:
return {"test_key": "test_value"}
hook = weechat.hook_info_hashtable("my_info_hashtable", "Some info",
@@ -12162,8 +12346,9 @@ struct t_hook *weechat_hook_infolist (const char *infolist_name,
引数:
// TRANSLATION MISSING
* _infolist_name_: インフォリストの名前
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the infolist name, see note about <<hook_priority,priority>>)
* _description_: 説明
* _pointer_description_: ポインタの説明 (任意、NULL でも可)
* _args_description_: 引数の説明 (任意、NULL でも可)
@@ -12218,7 +12403,7 @@ def hook_infolist(infolist_name: str, description: str, pointer_description: str
args_description: str, callback: str, callback_data: str) -> str: ...
# 例
def my_infolist_cb(data, infolist_name, pointer, arguments):
def my_infolist_cb(data: str, infolist_name: str, pointer: str, arguments: str) -> str:
# build infolist
# ...
return my_infolist
@@ -12249,8 +12434,9 @@ struct t_hook *weechat_hook_hdata (const char *hdata_name,
引数:
// TRANSLATION MISSING
* _hdata_name_: hdata の名前
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the hdata name, see note about <<hook_priority,priority>>)
* _description_: 説明
* _callback_:
hdata が要求された際に呼び出すコールバック関数、引数と戻り値:
@@ -12312,8 +12498,9 @@ struct t_hook *weechat_hook_focus (const char *area,
引数:
// TRANSLATION MISSING
* _area_: チャットエリアの場合は "chat"、またはバー要素の名前
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
(a priority is allowed before the area, see note about <<hook_priority,priority>>)
* _callback_:
フォーカスが当たったら呼び出すコールバック関数、引数と戻り値:
** _const void *pointer_: ポインタ
@@ -12340,7 +12527,7 @@ info を使う前にエリアが一致していることを確認して下さい
[width="100%",cols="5,5,8,3",options="header"]
|===
| キー ^(1)^ | 説明 | 値の例 | 定義できない場合の値
| キー ^(1)^ | 説明 | 値の例 | 定義できない場合の値
| _x | 画面上での列座標
| "0" ... "n" |
@@ -12372,7 +12559,7 @@ info を使う前にエリアが一致していることを確認して下さい
| _buffer_full_name | バッファの完全な名前
| "core.weechat"、"irc.libera.#weechat"、... | ""
| _buffer_localvar_XXX ^(2)^ | バッファのローカル変数
| _buffer_localvar_XXX ^(2)^ | バッファのローカル変数
| 任意の値 | 未定義
| _chat | チャットエリアインジケータ
@@ -12381,16 +12568,16 @@ info を使う前にエリアが一致していることを確認して下さい
| _chat_line | 行へのポインタ _(WeeChat バージョン 1.2 以上で利用可)_
| "0x1234abcd" | ""
| _chat_line_x | 行中の列番号 ^(3)^
| _chat_line_x | 行中の列番号 ^(3)^
| "0" ... "n" | "-1"
| _chat_line_y | 行番号 ^(3)^
| _chat_line_y | 行番号 ^(3)^
| "0" ... "n" | "-1"
| _chat_line_date | 日付/時間の行
| "1313237175" | "0"
| _chat_line_date_printed | 日付/時間の行 ^(4)^
| _chat_line_date_printed | 日付/時間の行 ^(4)^
| "1313237175" | "0"
| _chat_line_time | 表示された時間
@@ -12452,7 +12639,7 @@ info を使う前にエリアが一致していることを確認して下さい
[width="100%",cols="^1,^1,5",options="header"]
|===
| プラグイン ^(1)^ | キー | 説明
| プラグイン ^(1)^ | キー | 説明
| weechat | nick | ニックネーム
| weechat | prefix | ニックネームのプレフィックス
| weechat | group | グループ名
@@ -12496,7 +12683,7 @@ struct t_hook *my_focus = weechat_hook_focus ("buffer_nicklist",
def hook_focus(area: str, callback: str, callback_data: str) -> str: ...
# 例
def my_focus_nicklist_cb(data, info):
def my_focus_nicklist_cb(data: str, info: Dict[str, str]) -> Dict[str, str]:
# build dict
# ...
return my_dict
@@ -12567,7 +12754,7 @@ weechat_hook_set (my_command_hook, "subplugin", "test");
def hook_set(hook: str, property: str, value: str) -> int: ...
# 例
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -12752,11 +12939,11 @@ def buffer_new(name: str, input_callback: str, input_callback_data: str,
close_callback: str, close_callback_data: str) -> str: ...
# 例
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Text: %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Buffer _%s_ will be closed!" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -12876,11 +13063,11 @@ def buffer_new_props(name: str, properties: Dict[str, str],
close_callback: str, close_callback_data: str) -> str: ...
# 例
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Text: %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Buffer _%s_ will be closed!" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -13279,6 +13466,8 @@ const char *weechat_buffer_get_string (struct t_gui_buffer *buffer,
** _input_: 入力テキスト
** _text_search_input_: テキスト検索前に保存した入力テキスト
** _highlight_words_: ハイライトする単語のリスト
// TRANSLATION MISSING
** _highlight_disable_regex_: POSIX extended regular expression for disabling highlight
** _highlight_regex_: ハイライト用の POSIX 拡張正規表現
** _highlight_tags_restrict_: これらのタグを付けられたメッセージだけにハイライトを制限する
** _highlight_tags_: これらのタグを付けられたメッセージを強制的にハイライトする
@@ -13330,6 +13519,7 @@ void *weechat_buffer_pointer (struct t_gui_buffer *buffer,
* _property_: プロパティ名:
** _plugin_: このバッファを作ったプラグインへのポインタ
(WeeChat メインバッファの場合は NULL)
** _highlight_disable_regex_compiled_: コンパイル済みの正規表現 _highlight_disable_regex_
** _highlight_regex_compiled_: コンパイル済みの正規表現 _highlight_regex_
戻り値:
@@ -13467,6 +13657,10 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
| highlight_words_del | | 単語のコンマ区切りリスト
| 指定したバッファ内でハイライトする単語から削除する単語のコンマ区切りリスト
// TRANSLATION MISSING
| highlight_disable_regex | | any string
| POSIX extended regular expression for disabling highlight.
| highlight_regex | | 任意の文字列
| ハイライトする POSIX 拡張正規表現
@@ -14907,13 +15101,13 @@ WeeChat バージョン 0.4.1 以下に対する互換性のために、デフ
def bar_item_new(name: str, build_callback: str, build_callback_data: str) -> str: ...
# 例 (コールバックに "buffer" と "extra_info" を除いた引数を渡す)
def my_build_callback(data, item, window):
def my_build_callback(data: str, item: str, window: str) -> str:
return "my content"
bar_item = weechat.bar_item_new("myitem", "my_build_callback", "")
# 例 (コールバックに全ての引数を渡す、WeeChat バージョン 0.4.2 以上で利用可)
def my_build_callback2(data, item, window, buffer, extra_info):
def my_build_callback2(data: str, item: str, window: str, buffer: str, extra_info: Dict[str, str]) -> str:
return "my content"
bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat バージョン 0.4.2 以上で利用可
@@ -15502,7 +15696,7 @@ my_completion_cb (const void *pointer, void *data, const char *completion_item,
def completion_get_string(completion: str, property: str) -> str: ...
# 例
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
# get arguments of command
args = weechat.completion_get_string(completion, "args")
# completion depending on args
+2
View File
@@ -710,6 +710,8 @@ inl:
text_search_found: 0
text_search_input: None
highlight_words: None
highlight_disable_regex: None
highlight_disable_regex_compiled: '0x0'
highlight_regex: None
highlight_regex_compiled: '0x0'
highlight_tags_restrict: None
+15 -1
View File
@@ -596,6 +596,7 @@ link:weechat_plugin_api.ja.html[WeeChat プラグイン API リファレンス 
string_has_highlight_regex +
string_mask_to_regex +
string_format_size +
string_parse_size +
string_color_code_size +
string_remove_color +
string_is_command_char +
@@ -1350,7 +1351,7 @@ _WeeChat バージョン 0.3.4 以上で利用可。_
[width="100%",cols="3,^2,10,7",options="header"]
|===
// TRANSLATION MISSING
| キー | Since WeeChat ^(1)^ | 説明 | 例
| キー | Since WeeChat ^(1)^ | 説明 | 例
| tags | 0.4.0
| メッセージに付けられたタグ (空にすることも可)
@@ -1394,6 +1395,16 @@ _WeeChat バージョン 0.3.4 以上で利用可。_
| テキスト (ユーザメッセージなど)
| `+hello!+`
// TRANSLATION MISSING
| paramN | 3.4
| Command parameter (from 1 to N).
| `+#weechat+`
// TRANSLATION MISSING
| num_params | 3.4
| Number of command parameters.
| `+2+`
| pos_command | 1.3
| メッセージ内における _command_ のインデックス (_command_ が見つからない場合 "-1")
| `+47+`
@@ -1433,6 +1444,9 @@ dict = weechat.info_get_hashtable(
# "channel": "#weechat",
# "arguments": "#weechat :hello!",
# "text": "hello!",
# "param1": "#weechat",
# "param2": "hello!",
# "num_params": "2",
# "pos_command": "65",
# "pos_arguments": "73",
# "pos_channel": "73",
+154 -52
View File
@@ -120,18 +120,42 @@ WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| パッケージ ^(1)^ | バージョン | 機能
| C コンパイラ (gcc / clang) | | ビルド
| cmake | ≥ 3.0 | ビルド (autotools でも可能ですが、CMake を推奨します)
| pkg-config | | インストール済みライブラリを検出
| libncursesw5-dev ^(2)^ | | ncurses インターフェース
| libcurl4-gnutls-dev | | URL 転送
| libgcrypt20-dev | | 保護データ、IRC SASL 認証
| libgnutls28-dev | 2.2.0 以上 ^(3)^ | IRC サーバへの SSL 接続、IRC SASL 認証 (ECDSA-NIST256P-CHALLENGE)
// TRANSLATION MISSING
| zlib1g-dev | | Compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] in relay plugin (weechat protocol), script plugin.
| パッケージ ^(1)^ | バージョン | Features
| C コンパイラ (gcc / clang) |
| ビルド
| cmake | ≥ 3.0
| ビルド (autotools でも可能ですが、CMake を推奨します)
| pkg-config |
| インストール済みライブラリを検出
| libncursesw5-dev ^(2)^ |
| ncurses インターフェース
| libcurl4-gnutls-dev |
| URL 転送
| libgcrypt20-dev |
| 保護データ、IRC SASL 認証
// TRANSLATION MISSING
| libzstd-dev | | Compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] in relay plugin (weechat protocol).
| libgnutls28-dev | ≥ 2.2.0 ^(3)^
| IRC plugin: support of TLS connections, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE). +
Relay plugin: support of TLS connections.
// TRANSLATION MISSING
| zlib1g-dev |
| Logger plugin: compression of rotated log files (gzip). +
Relay plugin: compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] (weechat protocol). +
Script plugin: read of repository index file (gzip).
// TRANSLATION MISSING
| libzstd-dev | ≥ 0.8.1
| Logger plugin: compression of rotated log files. +
Relay plugin: compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] (weechat protocol).
|===
[NOTE]
@@ -150,12 +174,13 @@ WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| パッケージ ^(1)^ | バージョン | 機能
// TRANSLATION MISSING
| パッケージ ^(1)^ | バージョン | Features
| {cpp} コンパイラ (pass:[g++ / clang++]) | | ビルドとテストの実行、JavaScript プラグイン
| gettext | | 国際化 (メッセージの翻訳; ベース言語は英語です)
| ca-certificates | | SSL 接続に必要な証明書、relay プラグインで SSL サポート
| libaspell-dev / libenchant-dev | | spell プラグイン
| python3-dev ^(2)^ | | python プラグイン
| python3-dev ^(2)^ | | python プラグイン
| libperl-dev | | perl プラグイン
| ruby2.7, ruby2.7-dev | 1.9.1 以上 | ruby プラグイン
| liblua5.4-dev | | lua プラグイン
@@ -767,28 +792,28 @@ The WeeChat directories are:
[width="100%",cols="1m,3",options="header"]
|===
// TRANSLATION MISSING
| Path ^(1)^ | 説明
| Path ^(1)^ | 説明
// TRANSLATION MISSING
| ~/.config/weechat/ | WeeChat configuration files: `*.conf`, certificates, etc.
// TRANSLATION MISSING
| ~/.local/share/weechat/ | WeeChat data files: logs, scripts, scripts data, xfer files, etc.
|    logs/ | ログファイル (バッファごとに 1 つのファイル)
|    python/ | Python スクリプト
|       autoload/ | 起動時に自動ロードされる Python スクリプト ^(2)^
|       autoload/ | 起動時に自動ロードされる Python スクリプト ^(2)^
|    perl/ | Perl スクリプト
|       autoload/ | 起動時に自動ロードされる Perl スクリプト ^(2)^
|       autoload/ | 起動時に自動ロードされる Perl スクリプト ^(2)^
|    ruby/ | Ruby スクリプト
|       autoload/ | 起動時に自動ロードされる Ruby スクリプト ^(2)^
|       autoload/ | 起動時に自動ロードされる Ruby スクリプト ^(2)^
|    lua/ | Lua スクリプト
|       autoload/ | 起動時に自動ロードされる Lua スクリプト ^(2)^
|       autoload/ | 起動時に自動ロードされる Lua スクリプト ^(2)^
|    tcl/ | Tcl スクリプト
|       autoload/ | 起動時に自動ロードされる Tcl スクリプト ^(2)^
|       autoload/ | 起動時に自動ロードされる Tcl スクリプト ^(2)^
|    guile/ | Guile スクリプト
|       autoload/ | 起動時に自動ロードされる Guile スクリプト ^(2)^
|       autoload/ | 起動時に自動ロードされる Guile スクリプト ^(2)^
|    javascript/ | JavaScript スクリプト
|       autoload/ | 起動時に自動ロードされる JavaScript スクリプト ^(2)^
|       autoload/ | 起動時に自動ロードされる JavaScript スクリプト ^(2)^
|    php/ | PHP スクリプト
|       autoload/ | 起動時に自動ロードされる PHP スクリプト ^(2)^
|       autoload/ | 起動時に自動ロードされる PHP スクリプト ^(2)^
// TRANSLATION MISSING
| ~/.cache/weechat/ | WeeChat cache files: scripts cache.
// TRANSLATION MISSING
@@ -1344,13 +1369,13 @@ WeeChat は様々な目的で各行にタグを付けます:
| no_log | ログファイルに書き込まれない行
| log0 … log9 | 行に対するログレベル (`/help logger` を参照)
// TRANSLATION MISSING
| notify_none | The line must not be added to hotlist. ^(1)^
| notify_none | The line must not be added to hotlist. ^(1)^
// TRANSLATION MISSING
| notify_message | The line is a user message. ^(1)^
| notify_message | The line is a user message. ^(1)^
// TRANSLATION MISSING
| notify_private | The line is a private message. ^(1)^
| notify_private | The line is a private message. ^(1)^
// TRANSLATION MISSING
| notify_highlight | The line is a message with highlight. ^(1)^
| notify_highlight | The line is a message with highlight. ^(1)^
| self_msg | 自分のメッセージ
| nick_xxx | ニックネーム "xxx" からのメッセージ
| prefix_nick_ccc | プレフィックスを色 "ccc" のニックネームにします
@@ -1575,28 +1600,30 @@ They can be changed and new ones can be added with the <<command_weechat_key,/ke
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キー | 説明 | コマンド
| キー | 説明 | コマンド
| kbd:[Del] +
kbd:[Ctrl+d] | コマンドラインで次の文字を削除 | `+/input delete_next_char+`
kbd:[Ctrl+d] | コマンドラインで次の文字を削除 | `+/input delete_next_char+`
| kbd:[Backspace] +
kbd:[Ctrl+h] | コマンドラインで前の文字を削除 | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | コマンドラインでカーソルより後の文字列を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | 文字の入れ替え | `+/input transpose_chars+`
| kbd:[Ctrl+u] | コマンドラインでカーソルより前の文字列を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `+/input delete_beginning_of_line+`
| kbd:[Ctrl+w] | コマンドラインで前の単語を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `+/input delete_previous_word+`
| kbd:[Ctrl+y] | WeeChat 専用の内部クリップボードの内容をペースト | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | コマンドラインの最後の動作をやり直す | `+/input undo+`
| kbd:[Alt+_] | コマンドラインの最後の動作を取り消す | `+/input redo+`
| kbd:[Tab] | コマンドやニックネームを補完 (再度 kbd:[Tab] することで次の補完候補を表示) | `+/input complete_next+`
| kbd:[Shift+Tab] | 補完候補が無い場合: 部分補完を行う、補完候補が有る場合: 前の補完候補を表示 | `+/input complete_previous+`
kbd:[Ctrl+h] | コマンドラインで前の文字を削除 | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | コマンドラインでカーソルより後の文字列を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | 文字の入れ替え | `+/input transpose_chars+`
| kbd:[Ctrl+u] | コマンドラインでカーソルより前の文字列を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `+/input delete_beginning_of_line+`
| kbd:[Alt+Backspace] | コマンドラインで前の単語を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `+/input delete_previous_word+`
// TRANSLATION MISSING
| kbd:[Ctrl+w] | Delete previous word of command line until whitespace (deleted string is copied to the internal clipboard). | `+/input delete_previous_word_whitespace+`
| kbd:[Ctrl+y] | WeeChat 専用の内部クリップボードの内容をペースト | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | コマンドラインの最後の動作をやり直す | `+/input undo+`
| kbd:[Alt+_] | コマンドラインの最後の動作を取り消す | `+/input redo+`
| kbd:[Tab] | コマンドやニックネームを補完 (再度 kbd:[Tab] することで次の補完候補を表示) | `+/input complete_next+`
| kbd:[Shift+Tab] | 補完候補が無い場合: 部分補完を行う、補完候補が有る場合: 前の補完候補を表示 | `+/input complete_previous+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | コマンドを実行するか、メッセージを送信する (検索モードの場合: 検索の終了) | `+/input return+`
kbd:[Ctrl+m] | コマンドを実行するか、メッセージを送信する (検索モードの場合: 検索の終了) | `+/input return+`
// TRANSLATION MISSING
| kbd:[Alt+Enter] | Insert a newline. | `+/input insert \n+`
| kbd:[Alt+d] | コマンドラインで次の単語を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `+/input delete_next_word+`
| kbd:[Alt+k] | キー入力を奪って、コマンドラインにコード (キーが割り当てられていればコマンド) を入力 | `+/input grab_key_command+`
| kbd:[Alt+r] | コマンドラインへの入力をすべて削除 | `+/input delete_line+`
| kbd:[Alt+Enter] | Insert a newline. | `+/input insert \n+`
| kbd:[Alt+d] | コマンドラインで次の単語を削除 (削除された文字列は WeeChat 専用の内部クリップボードに保存) | `+/input delete_next_word+`
| kbd:[Alt+k] | キー入力を奪って、コマンドラインにコード (キーが割り当てられていればコマンド) を入力 | `+/input grab_key_command+`
| kbd:[Alt+r] | コマンドラインへの入力をすべて削除 | `+/input delete_line+`
|===
// TRANSLATION MISSING
@@ -1806,7 +1833,7 @@ These mouse actions are possible only if mouse is enabled with key kbd:[Alt+m]
[width="100%",cols="^.^3,^.^3,^.^3,.^8,.^8",options="header"]
|===
| ボタン/ホイール ^(1)^ | ジェスチャー | エリア | 説明 | コマンド
| ボタン/ホイール ^(1)^ | ジェスチャー | エリア | 説明 | コマンド
| ◾◽◽ | - | チャット | ウィンドウに移動 | `+/window ${_window_number}+`
| ◾◽◽ | 左 | チャット | 前のバッファに移動 | `+/window ${_window_number};/buffer +1+`
| ◾◽◽ | 右 | チャット | 次のバッファに移動 | `+/window ${_window_number};/buffer +1+`
@@ -1868,7 +1895,7 @@ These keys and actions are used on the fset buffer (see <<fset,Fset plugin>>).
// TRANSLATION MISSING
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key | Action ^(1)^ | Description | Command
| Key | Action ^(1)^ | Description | Command
| kbd:[↑] | | Move one line up. | `+/fset -up+`
| kbd:[↓] | | Move one line down. | `+/fset -down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
@@ -1918,7 +1945,7 @@ These keys and actions are used on the script buffer (see <<script_manager,scrip
// TRANSLATION MISSING
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key | Action ^(1)^ | Description | Command
| Key | Action ^(1)^ | Description | Command
| kbd:[↑] | | Move one line up. | `+/script up+`
| kbd:[↓] | | Move one line down. | `+/script down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
@@ -2293,6 +2320,36 @@ irc サーバ "libera" に含まれる全てのバッファに対して設定す
[[highlights]]
=== ハイライト
// TRANSLATION MISSING
[[highlights_disable]]
==== Disable highlights
You can disable highlights with option
<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
(regular expression). +
When a highlight is disabled with this option, the other highlight options are
ignored.
For example to disable any highlight on messages with a word beginning
with "flash" between chevrons:
----
/set weechat.look.highlight_regex "<flash.*>"
----
This can also be set with the buffer property "highlight_disable_regex".
Same example, specific to the current buffer:
----
/buffer set highlight_disable_regex <flash.*>
----
[NOTE]
バッファプロパティ "highlight_disable_regex" は設定ファイルに保存されません。 +
これを保存するには _buffer_autoset.py_ スクリプトを使ってください: このスクリプトをインストールするには
`+/script install buffer_autoset.py+` コマンドを使い、ヘルプを見るには `+/help buffer_autoset+` コマンドを使ってください。
[[highlights_words]]
==== ハイライトする単語の追加
@@ -2305,7 +2362,7 @@ irc サーバ "libera" に含まれる全てのバッファに対して設定す
から始まる任意の単語をハイライトするには以下のように設定します:
----
/set weechat.look.highlight word1,word2,test*
/set weechat.look.highlight "word1,word2,test*"
----
単語に対してさらに具体的なルールを設定する必要がある場合、<<option_weechat.look.highlight_regex,weechat.look.highlight_regex>>
@@ -2313,7 +2370,7 @@ irc サーバ "libera" に含まれる全てのバッファに対して設定す
という単語をハイライトするには以下のように設定します:
----
/set weechat.look.highlight_regex flashc[oö]de|flashy
/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----
ハイライトする単語の区切りは <<option_weechat.look.word_chars_highlight,weechat.look.word_chars_highlight>>
@@ -2493,6 +2550,49 @@ IRC サーバ名を使ったディレクトリに、チャンネル名を使っ
...
....
// TRANSLATION MISSING
[[logger_rotation_compression]]
==== Rotation and compression
It is possible to define a max size for log files, and when it is reached,
there is automatic rotation of log file.
The rotated log files can be compressed with gzip or
https://facebook.github.io/zstd/[zstd ^↗^,window=_blank].
[NOTE]
As the compression of a file can take some time, it is performed in background.
Example with a max size of 2GB and compression with gzip, using good compression
level (slower than default one):
----
/set logger.file.rotation_compression_type gzip
/set logger.file.rotation_compression_level 80
/set logger.file.rotation_size_max "2g"
----
If you want to use a decimal number, you can use the unit below and multiply
by 1000, for example to set max size to 2.5GB:
----
/set logger.file.rotation_size_max "2500m"
----
With these settings, you'll end with files like these ones (in this example
there is rotation only for the log of #weechat channel):
....
~/.local/share/weechat
└── logs
├── core.weechat.weechatlog
├── irc.server.libera.weechatlog
├── irc.libera.#weechat.weechatlog
├── irc.libera.#weechat.weechatlog.1.gz
├── irc.libera.#weechat.weechatlog.2.gz
└── irc.libera.#weechat.weechatlog.3.gz
....
[[logger_commands]]
==== コマンド
@@ -4025,8 +4125,8 @@ CTCP 応答時に自動的に WeeChat によって展開されます:
| コード | 説明 | 値/例
| $clientinfo | サポートしている CTCP オプションのリスト | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| $version | WeeChat バージョン | `+0.4.0-dev+`
| $versiongit | WeeChat バージョン + Git バージョン ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git バージョン ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $versiongit | WeeChat バージョン + Git バージョン ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git バージョン ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $compilation | WeeChat コンパイル日時 | `+Dec 16 2012+`
| $osinfo | OS に関する情報 | `+Linux 2.6.32-5-amd64 / x86_64+`
| $site | WeeChat ウェブサイト | `+https://weechat.org/+`
@@ -4908,7 +5008,7 @@ _var_
[width="100%",cols="2,3,7",options="header"]
|===
| フック | デフォルト変数 | 更新が許可Update allowed ^(1)^
| フック | デフォルト変数 | 更新が許可Update allowed ^(1)^
| signal | tg_signal_data |
| hsignal | |
| modifier | tg_string | tg_string
@@ -4999,6 +5099,8 @@ All callbacks set following variables in hashtable:
| 変数 | 型 | 説明
// TRANSLATION MISSING
| tg_trigger_name | string | Name of trigger.
// TRANSLATION MISSING
| tg_hook_type | string | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
@@ -5126,7 +5228,7 @@ _weechat_print_ 修飾子では、メッセージタグを使う変数 (下の
| tg_tag_host | string | ユーザ名とホスト名、書式: username@host ("host_xxx" タグから)
| tg_tag_notify | string | 通知レベル (_none_、_message_、_private_、_highlight_)
// TRANSLATION MISSING
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | 通知レベルが _none_ 以外の場合、その通知レベル
| tg_msg_pv | string | プライベートメッセージの場合 "1"、それ以外は "0"
|===
@@ -5170,7 +5272,7 @@ _weechat_print_ 修飾子では、メッセージタグを使う変数 (下の
| tg_tag_host | string | ユーザ名とホスト名、書式: username@host ("host_xxx" タグから)
| tg_tag_notify | string | 通知レベル (_none_、_message_、_private_、_highlight_)
// TRANSLATION MISSING
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | 通知レベルが _none_ 以外の場合、その通知レベル
| tg_msg_pv | string | プライベートメッセージの場合 "1"、それ以外は "0"
|===
@@ -631,6 +631,8 @@ _text_search_input_   (string) +
_highlight_words_   (string) +
_highlight_regex_   (string) +
_highlight_regex_compiled_   (pointer) +
_highlight_disable_regex_   (string) +
_highlight_disable_regex_compiled_   (pointer) +
_highlight_tags_restrict_   (string) +
_highlight_tags_restrict_count_   (integer) +
_highlight_tags_restrict_array_   (pointer, array_size: "highlight_tags_restrict_count") +
@@ -128,6 +128,8 @@
| weechat | uptime | Uptime WeeChat (format: "dni:hh:mm:ss") | "dni" (ilość dni) lub "sekundy" (ilość sekund) (opcjonalne)
| weechat | uptime_current | WeeChat uptime for the current process only (upgrades with /upgrade command are ignored) (format: "days:hh:mm:ss") | "dni" (ilość dni) lub "sekundy" (ilość sekund) (opcjonalne)
| weechat | version | Wersja WeeChat | -
| weechat | version_git | Wersja git WeeChat (wyjście komendy "git describe" dla tylko dla wersji rozwojowej, puste dla wersji stabilnej) | -
@@ -6,7 +6,7 @@
// tag::url_options[]
[width="100%",cols="2,^1,7",options="header"]
|===
| Opcja | Typ ^(1)^ | Stałe ^(2)^
| Opcja | Typ ^(1)^ | Stałe ^(2)^
| verbose | long |
+211 -194
View File
@@ -174,21 +174,27 @@ Bez podania argumentu komenda wyświetla listę banów na obecnym kanale.
req|ack [<opcja> [<opcja>...]]
end
ls: wyświetla opcje wspierane przez serwer
list: wyświetla obecnie włączone opcje
req: żądanie opcji
ack: potwierdzenie opcji wymagających potwierdzenia po stronie klienta
end: kończy negocjacje opcji
ls: list the capabilities supported by the server
list: list the capabilities currently enabled
req: request a new capability or remove a capability (if starting with "-", for example: "-multi-prefix")
ack: acknowledge capabilities which require client-side acknowledgement
end: end the capability negotiation
Bez argumentu, wysyłane są "ls" i "list".
Without argument, "ls" and "list" are sent.
Opcje wspierane przez WeeChat to: account-notify, away-notify, cap-notify, chghost, extended-join, invite-notify, message-tags, multi-prefix, server-time, setname, userhost-in-names.
Capabilities supported by WeeChat are: account-notify, away-notify, cap-notify, chghost, extended-join, invite-notify, message-tags, multi-prefix, server-time, setname, userhost-in-names.
Opcje automatycznie włączane na serwerach można ustawić za pomocą opcji irc.server_default.capabilities (albo dla konkretnego serwera, opcja irc.server.xxx.capabilities).
The capabilities to automatically enable on servers can be set in option irc.server_default.capabilities (or by server in option irc.server.xxx.capabilities).
Przykłady:
/cap
/cap req multi-prefix away-notify
Examples:
display supported and enabled capabilities:
/cap
request capabilities multi-prefix and away-notify:
/cap req multi-prefix away-notify
request capability extended-join, remove capability multi-prefix:
/cap req extended-join -multi-prefix
remove capability away-notify:
/cap req -away-notify
----
[[command_irc_connect]]
@@ -1591,63 +1597,64 @@ Wartość: ilość elementów historii do pokazania
----
/input <akcja> [<argumenty>]
lista akcji:
return: symuluje klawisz "enter"
complete_next: dopełnia słowo następnym dopełnieniem
complete_previous: dopełnia słowo poprzednim dopełnieniem
search_text_here: szuka testu w obecnej pozycji w buforze
search_text: szuka tekstu w buforze
search_switch_case: przełącza na dokładne dopasowanie przy szukaniu
search_switch_regex: przełącza typy wyszukiwania ciąg/wyrażenie regularne
search_switch_where: zmienia miejsce przeszukiwania na wiadomości/przedrostki
search_previous: szuka poprzednich linii
search_next: szuka następnych linii
search_stop_here: zatrzymuje wyszukiwanie na obecnej pozycji
search_stop: zatrzymuje wyszukiwanie
delete_previous_char: usuwa poprzedni znak
delete_next_char: usuwa następny znak
delete_previous_word: usuwa poprzednie słowo
delete_next_word: usuwa następne słowo
delete_beginning_of_line: usuwa od początku linii do kursora
delete_end_of_line: usuwa od kursora do końca linii
delete_line: usuwa cała lin
clipboard_paste: wkleja ze schowka
transpose_chars: zamienia dwa znaki
undo: cofa ostatnia akcję w linii poleceń
redo: ponownie wykonuje cofniętą akcję w linii poleceń
move_beginning_of_line: przesuwa kursor na początek linii
move_end_of_line: przesuwa kursor na koniec linii
move_previous_char: przesuwa kursor do poprzedniego znaku
move_next_char: przesuwa kursor do następnego znaku
move_previous_word: przesuwa kursor do poprzedniego słowa
move_next_word: przesuwa kursor do następnego słowa
history_previous: przywołuje poprzednia komendę z historii obecnego bufora
history_next: przywołuje następną komendę z historii obecnego bufora
history_global_previous: przywołuje poprzednią komendę z globalnej historii
history_global_next: przywołuje następną komendę z globalnej historii
jump_smart: przechodzi do następnego bufora z aktywnością
jump_last_buffer_displayed: przechodzi do ostatnio wyświetlanego bufora (przed ostatnim przeskoczeniem do bufora)
jump_previously_visited_buffer: przeskakuje do poprzedniego bufora
jump_next_visited_buffer: przeskakuje to następnego bufora
hotlist_clear: czyści hotlistę (opcjonaly argument: "lowest" czyści najniższy poziom na hotliście, "highest" czyści najwyższy poziom na hotliście, albo maska poziomu: liczba będąca kombinacją 1=join/part, 2=wiadomość, 4=prywatny, 8=podświetlenie)
hotlist_remove_buffer: usuwa obecny bufor z hotlisty
hotlist_restore_buffer: przywraca ostatnią usuniętą hotlistę w obecnym buforze
hotlist_restore_all: przywraca ostatnią usuniętą hotlistę we wszystkich buforach
grab_key: przechwytuje klawisz (opcjonalny argument: opóźnienie końca przechwycenia, domyślnie jest to 500 milisekund)
grab_key_command: przechwytuje klawisz z przypisaną komendą (opcjonalny argument: opóźnienie końca przechwycenia, domyślnie jest to 500 milisekund)
grab_mouse: przechwytuje kod zdarzenia myszy
grab_mouse_area: przechwytuje kod zdarzenia myszy z obszarem
set_unread: ustawia znacznik nie przeczytania dla wszystkich buforów
set_unread_current_buffer: ustawia znacznik nie przeczytania dla obecnego bufora
switch_active_buffer: przełącza do następnego połączonego buforu
switch_active_buffer_previous: przełącza do poprzedniego połączonego buforu
zoom_merged_buffer: zoom na połączony bufor
insert: wkleja tekst do linii poleceń (dozwolone są wyescapowane znaki, zobacz /help print)
send: wysyła tekst do bufora
paste_start: zaczyna wklejanie (tryb z rozpoznawaniem wklejanego tekstu)
paste_stop: kończy wklejanie (tryb z rozpoznawaniem wklejanego tekstu)
list of actions:
return: simulate key "enter"
complete_next: complete word with next completion
complete_previous: complete word with previous completion
search_text_here: search text in buffer at current position
search_text: search text in buffer
search_switch_case: switch exact case for search
search_switch_regex: switch search type: string/regular expression
search_switch_where: switch search in messages/prefixes
search_previous: search previous line
search_next: search next line
search_stop_here: stop search at current position
search_stop: stop search
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_previous_word_whitespace: delete previous word (until whitespace)
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
delete_line: delete entire line
clipboard_paste: paste from the internal clipboard
transpose_chars: transpose two chars
undo: undo last command line action
redo: redo last command line action
move_beginning_of_line: move cursor to beginning of line
move_end_of_line: move cursor to end of line
move_previous_char: move cursor to previous char
move_next_char: move cursor to next char
move_previous_word: move cursor to previous word
move_next_word: move cursor to next word
history_previous: recall previous command in current buffer history
history_next: recall next command in current buffer history
history_global_previous: recall previous command in global history
history_global_next: recall next command in global history
jump_smart: jump to next buffer with activity
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist (optional argument: "lowest" to clear only lowest level in hotlist, "highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
hotlist_remove_buffer: remove current buffer from hotlist
hotlist_restore_buffer: restore latest hotlist removed in the current buffer
hotlist_restore_all: restore latest hotlist removed in all buffers
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
grab_mouse_area: grab mouse event code with area
set_unread: set unread marker for all buffers
set_unread_current_buffer: set unread marker for current buffer
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line (escaped chars are allowed, see /help print)
send: send text to the buffer
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
Ta komenda jest używana do przypisywania klawiszy lub przez wtyczki.
This command is used by key bindings or plugins.
----
[[command_weechat_item]]
@@ -2115,35 +2122,42 @@ Przykłady:
----
[[command_weechat_upgrade]]
* `+upgrade+`: przeładowanie pliku binarnego WeeChat bez rozłączania z serwerami
* `+upgrade+`: save WeeChat session and reload the WeeChat binary without disconnecting from servers
----
/upgrade [-yes] [<ścieżka_do_binarki>|-quit]
/upgrade [-yes] [<path_to_binary>|-save|-quit]
-yes: wymagane, jeśli "weechat.look.confirm_upgrade" jest włączona
ścieżka_do_binarki: ścieżka do pliku binarnego WeeChat (domyślnie jest to obecny plik)
-dummy: nic nie rób (opcja użyta w celu zapobiegnięcia przypadkowego dopełnienia za pomocą"-quit")
-quit: zamyka *WSZYSTKIE* połączenia, zapisuje sesję i wyłącza WeeChat, umożliwia to późniejsze przywrócenie (zobacz niżej)
-yes: required if option "weechat.look.confirm_upgrade" is enabled
path_to_binary: path to WeeChat binary (default is current binary)
-dummy: do nothing (option used to prevent accidental completion with "-quit")
-save: only save the session, do not quit nor reload WeeChat; the configuration files are not saved (if needed you can use /save before this command)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
Ta komenda uaktualnia i przeładowuje działającą sesję WeeChat. Nowy plik binarny WeeChat powinien zostać skompilowany lub zainstalowany za pomocą managera pakietów przed uruchomieniem tej komendy.
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
Uwaga: połączenia SSL są przerywane podczas uaktualniania, ponieważ przeładowanie sesji SSL nie jest obecnie możliwe za pomocą GnuTLS. Po uaktualnieniu nastąpi ponowne ich połączenie.
Note: SSL connections are lost during upgrade (except with -save), because the reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Proces uaktualnienia składa się z 4 kroków:
1. zapisania sesji do plików dla rdzenia i wtyczek (bufory, historia, ..)
2. wyładowanie wszystkich wtyczek (zapisanie plików konfiguracyjnych *.conf)
3. zapisanie konfiguracji WeeChat (weechat.conf)
4. uruchomienie nowego pliku binarnego WeeChat i przeładowanie sesji.
Important: use of option -save can be dangerous, it is recommended to use only /upgrade (or with -quit) for a standard upgrade and a restart; the option -save can be used to save the session regularly and restore it in case of after abnormal exit (power outage, crash, etc.)
Z opcją "-quit", proces przebiega inaczej:
1. zamknięcie *WSZYSTKICH* połączeń (irc, xfer, relay, ...)
2. zapisanie sesji do pliku (*.upgrade)
3. wyładowanie wszystkich wtyczek
4. zapisanie konfiguracji WeeChat
5. wyłączenie WeeChat
Następnie można przywrócić sesję za pomocą komendy: weechat --upgrade
WAŻNE: należy przywracać sesję z identyczną konfiguracją (pliki *.conf).
Jest możliwe przywrócenie sesji WeeChat na innej maszynie, jeśli skopiujemy zawartość katalogów domowych WeeChat (zobacz /debug dirs).
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
2. unload all plugins (configuration files (*.conf) are written on disk)
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
With option "-quit", the process is:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
With option "-save", the process is:
1. save session into files (*.upgrade) with a disconnected state for IRC servers and Relay clients (but no disconnection is made)
With -quit or -save, you can restore the session later with this command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf) and if possible the same WeeChat version (or a more recent one).
It is possible to restore WeeChat session on another machine if you copy the content of WeeChat home directories (see /debug dirs).
----
[[command_weechat_uptime]]
@@ -2284,51 +2298,52 @@ Przykłady:
bar
refresh
enable: włącza buflist
disable: wyłącza buflist
toggle: przełącza buflist
bar: dodaje pasek "buflist"
refresh: wymusza odświeżenie elementów paska (buflist, buflist2 oraz buflist3)
enable: enable buflist
disable: disable buflist
toggle: toggle buflist
bar: add the "buflist" bar
refresh: force the refresh of the bar items (buflist, buflist2 and buflist3)
Linie z buforami są wyświetlane za pomocą przetwarzania ciągów (zobacz /help eval żeby poznać format), za pomocą tych opcji:
- buflist.look.display_conditions: warunki wyświetlenia buforu na liście
- buflist.format.buffer: format dla buforu nie będącego obecnym buforem
- buflist.format.buffer_current: format format dla obecnego buforu
The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options:
- buflist.look.display_conditions: conditions to display a buffer in the list
- buflist.format.buffer: format for a buffer which is not current buffer
- buflist.format.buffer_current: format for the current buffer
Następujące zmienne mogą być użyte w powyższych opcjach:
- dane elementu paska (pełną listę można znaleźć w dokumentacji API dla hdata "bar_item"), na przykład:
The following variables can be used in these options:
- bar item data (see hdata "bar_item" in API doc for a complete list), for example:
- ${bar_item.name}
- dane okna, w którym element paska jest wyświetlany (okna nie ma w głównych paskach, zobacz hdata "window" w dokumentacji API dla pełnej listy zmiennych), na przykład:
- window data, where the bar item is displayed (there's no window in root bars, see hdata "window" in API doc for a complete list), for example:
- ${window.number}
- ${window.buffer.full_name}
- dane buforu (zobacz hdata "buffer" w dokumentacji API dla pełnej listy zmiennych), na przykład:
- buffer data (see hdata "buffer" in API doc for a complete list), for example:
- ${buffer.number}
- ${buffer.name}
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
- irc_server: dane serwera IRC, zdefiniowane tylko w buforze IRC (zobacz hdata "irc_server" w dokumentacji API)
- irc_channel: dane kanału IRC, zdefiniowane tylko w buforze kanału IRC (zobacz hdata "irc_channel" w dokumentacji API)
- dodatkowe zmienne dodane dla wygody przez listę buforów:
- ${format_buffer}: przetworzona wartość opcji buflist.format.buffer; może to zostać użyte w opcji buflist.format.buffer_current na przykład do zmiany koloru tła
- ${current_buffer}: boolowskie ("0" lub "1"), "1" jeśli jest to obecny bufor; może zostać użyte w warunku: ${if: ${current_buffer}?...:...}
- ${merged}: boolowskie ("0" lub "1"), "1" jeśli bufor jest połączony z przynajmniej jednym innym buforem; może zostać użyte w warunku: ${if:${merged}?...:...}
- ${format_number}: wyrównany numer z separatorem (przetworzona opcja buflist.format.number)
- ${number}: wyrównany numer, na przykład " 1" jeśli buforów jest między 10 a 99
- ${number2}: wyrównany numer, na przykład " 1" jeśli buforów jest między 10 a 99
- ${number_displayed}: "1" jeśli numer jest wyświetlany, w przeciwnym wypadku "0"
- ${indent}: wyrównanie dla nazwy (kanały i bufory prywatne są wyrównywane) (przetworzona opcja buflist.format.indent)
- ${format_nick_prefix}: kolorowy prefiks nicka dla kanału (przetworzona opcja buflist.format.nick_prefix)
- ${color_nick_prefix}: kolor prefiksu nicka dla kanału (ustawiany, jeśli opcja buflist.look.nick_prefix jest włączona)
- ${nick_prefix}: prefix nicka dla kanału (ustawiany, jeśli opcja buflist.look.nick_prefix jest włączona)
- ${format_name}: sformatowana nazwa (przetworzona opcja buflist.format.name)
- ${name}: skrócona nazwa (jeśli ustawiona inaczej zwraca pełną nazwę)
- ${color_hotlist}: kolor zależący od najwyższego poziomu hotlisty dla bufora (przetworzona opcja buflist.format.hotlist_xxx, gdzie xxx to poziom)
- ${format_hotlist}: sformatowana hotlista (przetworzenie opcji buflist.format.hotlist)
- ${hotlist}: niesformatowana hotlista
- ${hotlist_priority}: "none", "low", "message", "private" lub "highlight"
- ${format_lag}: opóźnienie buforu serwera IRC, puste jeśli nie ma opóźnienia (przetworzona opcja buflist.format.lag)
- ${format_tls_version}: wskaźnik wersji TLS w buforze serwera, pusty dla kanałów (wynik przetworzenia opcji buflist.format.tls_version)
- irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
- irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
- extra variables added by buflist for convenience:
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
- ${current_buffer}: a boolean ("0" or "1"), "1" if this is the current buffer; it can be used in a condition: ${if:${current_buffer}?...:...}
- ${merged}: a boolean ("0" or "1"), "1" if the buffer is merged with at least another buffer; it can be used in a condition: ${if:${merged}?...:...}
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers; for merged buffers, this variable is set with number for the first buffer and spaces for the next buffers with same number
- ${number2}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${number_displayed}: "1" if the number is displayed, otherwise "0"
- ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
- ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
- ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${format_name}: formatted name (evaluation of option buflist.format.name)
- ${name}: the short name (if set), with a fallback on the name
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
- ${hotlist}: the raw hotlist
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight"
- ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = private, 3 = highlight
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
- ${format_tls_version}: indicator of TLS version for a server buffer, empty for channels (evaluation of option buflist.format.tls_version)
----
// end::buflist_commands[]
@@ -3048,27 +3063,27 @@ Przykłady:
----
/spell enable|disable|toggle
listdict
setdict <język>[,<język>...]
setdict -|<dict>[,<dict>...]
deldict
addword [<język>] <słowo>
addword [<dict>] <word>
enable: włącza sprawdzanie pisowni
disable: wyłącza sprawdzanie pisowni
toggle: przełącza sprawdzanie pisowni
listdict: pokazuje zainstalowane słowniki
setdict: ustawia słownik dla obecnego buforu (kilka słowników może być podanych po przecinku)
deldict: usuwa słownik używany w obecnym buforze
addword: dodaje słowo do osobistego słownika
enable: enable spell checker
disable: disable spell checker
toggle: toggle spell checker
listdict: show installed dictionaries
setdict: set dictionary for current buffer (multiple dictionaries can be separated by a comma, the special value "-" disables spell checking on current buffer)
deldict: delete dictionary used on current buffer
addword: add a word in personal dictionary
Jeśli wprowadzany tekst zaczyna się od '/' nie będzie on sprawdzany, za wyjątkiem kilku komend (zobacz /set spell.check.commands).
Input line beginning with a '/' is not checked, except for some commands (see /set spell.check.commands).
W celu włączenia sprawdzania pisowni dla wszystkich buforów, należy użyć opcji "default_dict", następnie włączyć sprawdzanie pisowni, na przykład:
To enable spell checker on all buffers, use option "default_dict", then enable spell checker, for example:
/set spell.check.default_dict "en"
/spell enable
W celu wyświetlenia listy sugestii na pasku, użyj elementu "spell_suggest".
To display a list of suggestions in a bar, use item "spell_suggest".
Domyślny skrót klawiszowy przełączający sprawdzanie pisowni to alt-s.
Default key to toggle spell checker is alt-s.
----
// end::spell_commands[]
@@ -3122,70 +3137,72 @@ Bez argumentów ta komenda wyświetli wszystkie załadowane wtyczki.
default -yes
monitor [<filtr>]
list: lista triggerów (jeśli nie podano argumentu, wyświetli się ta lista)
listfull: lista triggerów ze szczegółowymi informacjami
listdefault: lista domyślnych triggerów
add: dodaje trigger
addoff: dodaje trigger (wyłączony)
addreplace: dodaje lub zastępuje istniejący trigger
nazwa: nazwa triggera
list: list triggers (without argument, this list is displayed)
listfull: list triggers with detailed info for each trigger
listdefault: list default triggers
add: add a trigger
addoff: add a trigger (disabled)
addreplace: add or replace an existing trigger
name: name of trigger
hook: signal, hsignal, modifier, line, print, command, command_run, timer, config, focus, info, info_hashtable
argumenty: argumenty dla uchwytu, w zależności od jego typu (oddzielone średnikami):
signal: nazwa(-y) signal (wymagane)
hsignal: nazwa(-y) hsignal (wymagane)
modifier: nazwa(-y) modifier (wymagane)
line: typ bufora("formatted", "free" lub "*"), lista mask buforów, tagi
print: bufor, tagi, wiadomość, pomiń kolory
command: komenda (wymagane), opis, argumenty, opis argumentów, dopełnienie (wszystkie argumenty poza komendą są przetwarzane, "${tg_trigger_name}" jest zastępowane przez nazwę triggera, zobacz /help eval)
command_run: komenda(-y) (wymagane)
timer: interwał (wymagane), wyrównanie sekund, ilość wywołań
config: nazwa(-y) opcji (wymagane)
focus: nazwa(-y) obszarów (wymagane)
info: nazwa(y) informacji (wymagane)
info_hashtable: nazwa(y) informacji (wymagane)
warunki: przetwarzane warunki dla triggera
regex: jedno lub więcej wyrażeń regularnych do zastępowania ciągów w zmiennych
komenda: komenda do wykonania (wiele komend można oddzielić ";")
zwracany_kod: kod zwracany w callbacku (ok (domyślne), ok_eat, error)
post_action: akcja do wykonania po zakończeniu (none (domyślne), disable, delete)
addinput: ustawia wejście z domyślnymi argumentami do stworzenia triggera
input: ustawia wejście z komendą użytą do stworzenia triggera
output: wysyła komendę do stworzenia triggera do buforu
recreate: tak samo jak "input", z opcją "addreplace" zamiast "add"
set: ustawia opcje triggera
opcja: nazwa opcji: name, hook, arguments, conditions, regex, command, return_code
(aby uzyskać pomoc na temat opcji możesz wpisać: /help trigger.trigger.<nazwa>.<opcja>)
wartość: nowa wartość dla opcji
rename: zmienia nazwę triggera
copy: kopiuje trigger
enable: włącza trigger(y) (bez argumentów: włącza triggery globalnie)
disable: wyłącza trigger(y) (bez argumentów: wyłącza triggery globalnie)
toggle: zmienia stan triggera(-ów) (bez argumentów: zmienia stan triggerów globalnie)
restart: restartuje trigger(y) (tworzy na nowo uchwyty)
show: pokazuje szczegółowe informacje o triggerze (z niektórymi statystykami)
del: usuwa trigger
-all: wykonaj akcję na wszystkich triggerach
restore: przywraca trigger(y) z domyślnymi wartościami (działa tylko dla domyślnych triggerów)
default: przywraca domyślne triggery
monitor: otwiera bufor monitorowania triggerów, z opcjonalnym filtrem:
filtr: filtruje uchwyty/triggery do wyświetlenia (uchwyt musi się zaczynać od "@", na przykład "@signal"), wiele filtrów może być oddzielonych przecinkiem; dzika karta "*" jest dozwolona w nazwie każdego triggera
arguments: arguments for the hook, depending on hook (separated by semicolons):
signal: name(s) of signal (required)
hsignal: name(s) of hsignal (required)
modifier: name(s) of modifier (required)
line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags
print: buffer, tags, message, strip colors
command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, "${tg_trigger_name}" is replaced by the trigger name, see /help eval)
command_run: command(s) (required)
timer: interval (required), align on second, max calls
config: name(s) of option (required)
focus: name(s) of area (required)
info: name(s) of info (required)
info_hashtable: name(s) of info (required)
conditions: evaluated conditions for the trigger
regex: one or more regular expressions to replace strings in variables
command: command to execute (many commands can be separated by ";")
return_code: return code in callback (ok (default), ok_eat, error)
post_action: action to take after execution (none (default), disable, delete)
addinput: set input with default arguments to create a trigger
input: set input with the command used to create the trigger
output: send the command to create the trigger on the buffer
recreate: same as "input", with option "addreplace" instead of "add"
set: set an option in a trigger
option: name of option: name, hook, arguments, conditions, regex, command, return_code
(for help on option, you can type: /help trigger.trigger.<name>.<option>)
value: new value for the option
rename: rename a trigger
copy: copy a trigger
enable: enable trigger(s) (without arguments: enable triggers globally)
disable: disable trigger(s) (without arguments: disable triggers globally)
toggle: toggle trigger(s) (without arguments: toggle triggers globally)
restart: restart trigger(s) (recreate the hooks)
show: show detailed info on a trigger (with some stats)
del: delete a trigger
-all: do action on all triggers
restore: restore trigger(s) with the default values (works only for default triggers)
default: delete all triggers and restore default ones
monitor: open the trigger monitor buffer, with optional filter:
filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; wildcard "*" is allowed in each trigger name
Kiedy callback triggera jest wywoływany, wykonywane są następujące akcje, w kolejności:
1. sprawdzenie warunków; jeśli nie są spełnione, wyjście
2. zastąpienie tekstu za pomocą rozszerzonych wyrażeń regularnych POSIX (jeśli zdefiniowane)
3. wykonanie komend(y) (jeśli zdefiniowane)
4. wyjście z kodem wyjścia (poza modifiers i focus)
5. wykonanie akcji kończącej
When a trigger callback is called, following actions are performed, in this order:
1. check conditions; if false, exit
2. replace text using POSIX extended regular expression(s) (if defined in trigger)
3. execute command(s) (if defined in trigger)
4. exit with a return code (except for modifier, line, focus, info and info_hashtable)
5. perform post action
Przykłady (możesz też spojrzeć na domyślne triggery za pomocą /trigger listdefault):
dodaje atrybuty tekstu *bold*, _underline_ i /italic/ (tylko w wiadomościach użytkowników):
Examples (you can also look at default triggers with /trigger listdefault):
add text attributes *bold*, _underline_ and /italic/ (only in user messages):
/trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/"
ukrywa pasek z nickami na małych terminalach:
hide nicklist bar on small terminals:
/trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist"
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
cichy zapis plików konfiguracyjnych co każdą godzinę:
silently save config each hour:
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
otwiera monitor triggerów i pokazuje tylko modifiers i triggery, których nazwa zaczyna się od "resize":
silently save WeeChat session at midnight (see /help upgrade):
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
/trigger monitor @modifier,resize*
----
// end::trigger_commands[]
+51 -3
View File
@@ -750,6 +750,12 @@
** wartości: dowolny ciąg
** domyślna wartość: `+""+`
* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
** opis: pass:none[POSIX extended regular expression used to prevent any highlight from a message: this option has higher priority over other highlight options (if the string is found in the message, the highlight is disabled and the other options are ignored), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "<flash.*>", "(?-i)<Flash.*>"]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+""+`
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** opis: pass:none[Rozszerzone wyrażenie regularne POSIX używane do sprawdzenia, czy wiadomość posiada podświetlenie czy nie, przynajmniej jedno dopasowanie w ciąg musi być otoczone separatorami (znaki inne niż: alfanumeryczne, "-", "_" lub "|"), wielkość znaków nie ma wpływu na wyrażenie (użyj "(?-i)" na początku, aby wielkość znaków miała znaczenie), przykłady: "flashcode|flashy", "(?-i)FlashCode|flashy"]
** typ: ciąg
@@ -1397,7 +1403,7 @@
** domyślna wartość: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** opis: pass:none[automatycznie zapisuj zawartość buforów do plików (chyba, że bufor ma wyłączone logowanie)]
** opis: pass:none[automatically save content of buffers to files (unless a buffer disables log); if disabled, logging is disabled on all buffers]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
@@ -1462,6 +1468,24 @@
** wartości: dowolny ciąg
** domyślna wartość: `+"_"+`
* [[option_logger.file.rotation_compression_level]] *logger.file.rotation_compression_level*
** opis: pass:none[compression level for rotated log files (with extension ".1", ".2", etc.), if option logger.file.rotation_compression_type is enabled: 1 = low compression / fast ... 100 = best compression / slow; the value is a percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is recommended, it offers a good compromise between compression and speed]
** typ: liczba
** wartości: 1 .. 100
** domyślna wartość: `+20+`
* [[option_logger.file.rotation_compression_type]] *logger.file.rotation_compression_type*
** opis: pass:none[compression type for rotated log files; if set to "none", rotated log files are not compressed; WARNING: if rotation was enabled with another type of compression (or no compression), you must first unload the logger plugin, compress files with the new type (or decompress files), then change the option in logger.conf, then load the logger plugin]
** typ: liczba
** wartości: none, gzip, zstd
** domyślna wartość: `+none+`
* [[option_logger.file.rotation_size_max]] *logger.file.rotation_size_max*
** opis: pass:none[when this size is reached, a rotation of log files is performed: the existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) and the current file is renamed with extension .1; an integer number with a suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = megabytes, g = gigabytes, t = terabytes; example: "2g" causes a rotation if the file size is > 2,000,000,000 bytes; if set to "0", no rotation is performed (unlimited log size); WARNING: before changing this option, you should first set the compression type via option logger.file.rotation_compression_type]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"0"+`
* [[option_logger.file.time_format]] *logger.file.time_format*
** opis: pass:none[format czasu użyty w plikach z logami (zobacz man strftime dla specyfikatorów daty/czasu)]
** typ: ciąg
@@ -1544,6 +1568,12 @@
** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie
** domyślna wartość: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** opis: pass:none[text color for trigger context identifier in monitor buffer]
** typ: kolor
** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie
** domyślna wartość: `+cyan+`
* [[option_trigger.color.regex]] *trigger.color.regex*
** opis: pass:none[kolor tekstu dla wyrażeń regularnych]
** typ: kolor
@@ -1771,7 +1801,7 @@
** domyślna wartość: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** opis: pass:none[włącz liste buforów]
** opis: pass:none[enable buflist; it is recommended to use this option instead of just hiding the bar because it also removes some internal hooks that are not needed any more when the bar is hidden; you can also use the command "/buflist toggle" or use the default key alt+shift+b]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
@@ -2127,7 +2157,7 @@
** domyślna wartość: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** opis: pass:none[kolor tekstu w wiadomościach o zmianie hosta]
** opis: pass:none[color for text in "chghost" messages]
** typ: kolor
** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie
** domyślna wartość: `+brown+`
@@ -2150,6 +2180,12 @@
** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie
** domyślna wartość: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** opis: pass:none[color for text in "setname" messages]
** typ: kolor
** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie
** domyślna wartość: `+brown+`
* [[option_irc.color.mirc_remap]] *irc.color.mirc_remap*
** opis: pass:none[zamień kolory mirca w wiadomościach używając tablicy hashy: klucze to "fg,bg" przyjmują one wartości pomiędzy -1 (nie określono) a 15, wartości to nazwy lub numery kolorów WeeChat (format: "1,-1:kolor1;2,7:kolor2"), przykład: "1,-1:darkgray;1,2:white,blue" w celu przemapowania czarnego na "darkgray" oraz czarnego na niebieskim tle na "white,blue"; domyślne kolory WeeChat dla kodów IRC: 0=white, 1=black, 2=blue, 3=green, 4=lightred, 5=red, 6=magenta, 7=brown, 8=yellow, 9=lightgreen, 10=cyan, 11=lightcyan, 12=lightblue, 13=lightmagenta, 14=darkgray, 15=gray]
** typ: ciąg
@@ -2330,6 +2366,12 @@
** wartości: on, off
** domyślna wartość: `+on+`
* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change*
** opis: pass:none[display nick change in private]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
* [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address*
** opis: pass:none[wyświetl ostrzeżenie w prywatnym buforze jeśli adres zdalnego nicka uległ zmianie; ta opcja jest domyślnie wyłączona ponieważ serwery jak bitlbee powodują wyświetlanie tego ostrzeżenia, kiedy nie powinny (adres zdalnego nicka zmienia się wiele razy przy logowaniu)]
** typ: bool
@@ -2546,6 +2588,12 @@
** wartości: on, off
** domyślna wartość: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** opis: pass:none[enable smart filter for "setname" messages]
** typ: bool
** wartości: on, off
** domyślna wartość: `+on+`
* [[option_irc.look.temporary_servers]] *irc.look.temporary_servers*
** opis: pass:none[włącza tworzenie tymczasowych serwerów za pomocą komendy /connect]
** typ: bool
+15 -1
View File
@@ -580,6 +580,7 @@ Lista funkcji w API skryptów:
string_has_highlight_regex +
string_mask_to_regex +
string_format_size +
string_parse_size +
string_color_code_size +
string_remove_color +
string_is_command_char +
@@ -1319,7 +1320,7 @@ Wynik jest tabela hashy z następującymi kluczami
[width="100%",cols="3,^2,10,7",options="header"]
|===
| Klucz | Od wersji ^(1)^ | Opis | Przykład
| Klucz | Od wersji ^(1)^ | Opis | Przykład
| tags | 0.4.0
| Tagi w wiadomości (mogą byc puste).
@@ -1361,6 +1362,16 @@ Wynik jest tabela hashy z następującymi kluczami
| Tekst (na przykład wiadomość użytkownika).
| `+hello!+`
// TRANSLATION MISSING
| paramN | 3.4
| Command parameter (from 1 to N).
| `+#weechat+`
// TRANSLATION MISSING
| num_params | 3.4
| Number of command parameters.
| `+2+`
| pos_command | 1.3
| The index of _command_ in message ("-1" if _command_ was not found).
| `+47+`
@@ -1399,6 +1410,9 @@ dict = weechat.info_get_hashtable(
# "channel": "#weechat",
# "arguments": "#weechat :hello!",
# "text": "hello!",
# "param1": "#weechat",
# "param2": "hello!",
# "num_params": "2",
# "pos_command": "65",
# "pos_arguments": "73",
# "pos_channel": "73",
+154 -52
View File
@@ -120,18 +120,42 @@ WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Pakiet ^(1)^ | Wersja | Opis
| kompilator C (gcc / clang) | | Kompilacja.
| cmake | ≥ 3.0 | Kompilacja (możliwe jest użycie autotools, jednak CMake jest zalecany).
| pkg-config | | Wykrywa zainstalowane biblioteki.
| libncursesw5-dev ^(2)^ | | Interfejs ncurses.
| libcurl4-gnutls-dev | | Transfer URL.
| libgcrypt20-dev | | Zabezpieczone dane, uwierzytelnianie IRC SASL.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | Połączenia SSL z serwerami IRC, wsparcie dla SSL we wtyczce relay, uwierzytelnianie IRC SASL (ECDSA-NIST256P-CHALLENGE).
// TRANSLATION MISSING
| zlib1g-dev | | Compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] in relay plugin (weechat protocol), script plugin.
| Pakiet ^(1)^ | Wersja | Features
| kompilator C (gcc / clang) |
| Kompilacja.
| cmake | ≥ 3.0
| Kompilacja (możliwe jest użycie autotools, jednak CMake jest zalecany).
| pkg-config |
| Wykrywa zainstalowane biblioteki.
| libncursesw5-dev ^(2)^ |
| Interfejs ncurses.
| libcurl4-gnutls-dev |
| Transfer URL.
| libgcrypt20-dev |
| Zabezpieczone dane, uwierzytelnianie IRC SASL.
// TRANSLATION MISSING
| libzstd-dev | | Compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] in relay plugin (weechat protocol).
| libgnutls28-dev | ≥ 2.2.0 ^(3)^
| IRC plugin: support of TLS connections, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE). +
Relay plugin: support of TLS connections.
// TRANSLATION MISSING
| zlib1g-dev |
| Logger plugin: compression of rotated log files (gzip). +
Relay plugin: compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] (weechat protocol). +
Script plugin: read of repository index file (gzip).
// TRANSLATION MISSING
| libzstd-dev | ≥ 0.8.1
| Logger plugin: compression of rotated log files. +
Relay plugin: compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] (weechat protocol).
|===
[NOTE]
@@ -149,12 +173,13 @@ WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Pakiet ^(1)^ | Wersja | Opis
// TRANSLATION MISSING
| Pakiet ^(1)^ | Wersja | Features
| kompilator {cpp} (pass:[g++ / clang++]) | | Kompilacja i uruchamianie testów, wtyczka JavaScript.
| gettext | | Internacjonalizacja (tłumaczenie wiadomości; język bazowy to Angielski).
| ca-certificates | | Certyfikaty dla połączeń SSL.
| libaspell-dev / libenchant-dev | | Wtyczka spell.
| python3-dev ^(2)^ | | Wtyczka python.
| python3-dev ^(2)^ | | Wtyczka python.
| libperl-dev | | Wtyczka perl.
| ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Wtyczka ruby.
| liblua5.4-dev | | Wtyczka lua.
@@ -748,26 +773,26 @@ Katalogi używane przez WeeChat to:
[width="100%",cols="1m,3",options="header"]
|===
| Ścieżka ^(1)^ | Opis
| Ścieżka ^(1)^ | Opis
| ~/.config/weechat/ | Pliki konfiguracyjne WeeChat: `*.conf`, certifikaty, itp.
| ~/.local/share/weechat/ | Pliki z danymi WeeChat: logi, skrypty, dane skryptów, pliki xfer, itp.
|    logs/ | Pliki z logami (jeden na bufor).
|    python/ | Skrypty pythonowe.
|       autoload/ | Skrypty pythonowe automatycznie ładowane przy starcie ^(2)^.
|       autoload/ | Skrypty pythonowe automatycznie ładowane przy starcie ^(2)^.
|    perl/ | Skrypty perlowe.
|       autoload/ | Skrypty perlowe automatycznie ładowane przy starcie ^(2)^.
|       autoload/ | Skrypty perlowe automatycznie ładowane przy starcie ^(2)^.
|    ruby/ | Skrypty ruby.
|       autoload/ | Skrypty ruby automatycznie ładowane przy starcie ^(2)^.
|       autoload/ | Skrypty ruby automatycznie ładowane przy starcie ^(2)^.
|    lua/ | Skrypty lua.
|       autoload/ | Skrypty lua automatycznie ładowane przy starcie ^(2)^.
|       autoload/ | Skrypty lua automatycznie ładowane przy starcie ^(2)^.
|    tcl/ | Skrypty tcl.
|       autoload/ | Skrypty tcl automatycznie ładowane przy starcie ^(2)^.
|       autoload/ | Skrypty tcl automatycznie ładowane przy starcie ^(2)^.
|    guile/ | Skrypty guile.
|       autoload/ | Skrypry guile automatycznie ładowane przy starcie ^(2)^.
|       autoload/ | Skrypry guile automatycznie ładowane przy starcie ^(2)^.
|    javascript/ | Skrypty JavaScript.
|       autoload/ | Skrypty JavaScript automatycznie ładowane przy starcie ^(2)^.
|       autoload/ | Skrypty JavaScript automatycznie ładowane przy starcie ^(2)^.
|    php/ | Skrypty PHP.
|       autoload/ | Skrypty PHP automatycznie ładowane przy starcie ^(2)^.
|       autoload/ | Skrypty PHP automatycznie ładowane przy starcie ^(2)^.
| ~/.cache/weechat/ | Pliki pamięci podręcznej WeeChat: pliki pamięci podręcznej skryptów.
| /run/user/1000/weechat/ | Pliki uruchomieniowe WeeChat: kolejki FIFO, Gniazda UNIX pośrednika.
|===
@@ -1294,10 +1319,10 @@ Popularnie używane tagi (niepełna lista):
| no_highlight | Podświetlenia nie są dozwolone w tej linii.
| no_log | Linia nie jest zapisywana w logu.
| log0 … log9 | Poziom logowania dla linii (zobacz `/help logger`).
| notify_none | Linia nie może być dodana do hotlisty. ^(1)^
| notify_message | Linia jest wiasomością użytkownika. ^(1)^
| notify_private | Linia jest wiadomością prywatną. ^(1)^
| notify_highlight | Linia jest wiadomością z podświetleniem. ^(1)^
| notify_none | Linia nie może być dodana do hotlisty. ^(1)^
| notify_message | Linia jest wiasomością użytkownika. ^(1)^
| notify_private | Linia jest wiadomością prywatną. ^(1)^
| notify_highlight | Linia jest wiadomością z podświetleniem. ^(1)^
| self_msg | Własna wiadomość.
| nick_xxx | Wiadomość od nicku "xxx".
| prefix_nick_ccc | Prefiks to nick o kolorze "ccc".
@@ -1518,27 +1543,29 @@ Można je zmienić oraz dodać nowe za pomocą komendy <<command_weechat_key,/ke
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| Skrót | Opis | Komenda
| Skrót | Opis | Komenda
| kbd:[Del] +
kbd:[Ctrl+d] | Usuń następny znak w linii poleceń. | `+/input delete_next_char+`
kbd:[Ctrl+d] | Usuń następny znak w linii poleceń. | `+/input delete_next_char+`
| kbd:[Backspace] +
kbd:[Ctrl+h] | Usuń poprzedni znak w linii poleceń. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | Usuń od znacznika kursora do końca linii poleceń (usuwany ciąg jest kopiowany do wewnętrznego schowka). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Przestaw znaki. | `+/input transpose_chars+`
| kbd:[Ctrl+u] | Usuń od znaku kursora do początku linii poleceń (usuwany ciąg jest kopiowany do wewnętrznego schowka). | `+/input delete_beginning_of_line+`
| kbd:[Ctrl+w] | Usuń poprzednie słowo w linii poleceń (usuwany ciąg jest kopiowany do wewnętrznego schowka). | `+/input delete_previous_word+`
| kbd:[Ctrl+y] | Wkleja zawartość wewnętrznego schowka. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Cofnij poprzednia akcję w linii poleceń. | `+/input undo+`
| kbd:[Alt+_] | Powtórz ostatnią akcję w linii poleceń. | `+/input redo+`
| kbd:[Tab] | Dopełnij komendę lub nick (ponowne wciśnięcie kbd:[Tab]: znajdź następne dopełnienie). | `+/input complete_next+`
| kbd:[Shift+Tab] | Bez dopełnienia: wykonaj częściowe dopełnienie, z oczekującym dopełnieniem: dopełnij z poprzednim dopełnieniem. | `+/input complete_previous+`
kbd:[Ctrl+h] | Usuń poprzedni znak w linii poleceń. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | Usuń od znacznika kursora do końca linii poleceń (usuwany ciąg jest kopiowany do wewnętrznego schowka). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Przestaw znaki. | `+/input transpose_chars+`
| kbd:[Ctrl+u] | Usuń od znaku kursora do początku linii poleceń (usuwany ciąg jest kopiowany do wewnętrznego schowka). | `+/input delete_beginning_of_line+`
| kbd:[Alt+Backspace] | Usuń poprzednie słowo w linii poleceń (usuwany ciąg jest kopiowany do wewnętrznego schowka). | `+/input delete_previous_word+`
// TRANSLATION MISSING
| kbd:[Ctrl+w] | Delete previous word of command line until whitespace (deleted string is copied to the internal clipboard). | `+/input delete_previous_word_whitespace+`
| kbd:[Ctrl+y] | Wkleja zawartość wewnętrznego schowka. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Cofnij poprzednia akcję w linii poleceń. | `+/input undo+`
| kbd:[Alt+_] | Powtórz ostatnią akcję w linii poleceń. | `+/input redo+`
| kbd:[Tab] | Dopełnij komendę lub nick (ponowne wciśnięcie kbd:[Tab]: znajdź następne dopełnienie). | `+/input complete_next+`
| kbd:[Shift+Tab] | Bez dopełnienia: wykonaj częściowe dopełnienie, z oczekującym dopełnieniem: dopełnij z poprzednim dopełnieniem. | `+/input complete_previous+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | Wykonaj komendę lub wyślij wiadomość (w trybie wyszukiwania: przerwij wyszukiwanie). | `+/input return+`
| kbd:[Alt+Enter] | Wstawia nową linię. | `+/input insert \n+`
| kbd:[Alt+d] | Usuń następne słowo w linii poleceń (usuwany ciąg jest kopiowany do wewnętrznego schowka). | `+/input delete_next_word+`
| kbd:[Alt+k] | Przechwyć wciśnięte klawisze i zwróć ich kod (i przypisaną komendę, jeśli istnieje) w linii poleceń. | `+/input grab_key_command+`
| kbd:[Alt+r] | Usuń całą zawartość linii poleceń. | `+/input delete_line+`
kbd:[Ctrl+m] | Wykonaj komendę lub wyślij wiadomość (w trybie wyszukiwania: przerwij wyszukiwanie). | `+/input return+`
| kbd:[Alt+Enter] | Wstawia nową linię. | `+/input insert \n+`
| kbd:[Alt+d] | Usuń następne słowo w linii poleceń (usuwany ciąg jest kopiowany do wewnętrznego schowka). | `+/input delete_next_word+`
| kbd:[Alt+k] | Przechwyć wciśnięte klawisze i zwróć ich kod (i przypisaną komendę, jeśli istnieje) w linii poleceń. | `+/input grab_key_command+`
| kbd:[Alt+r] | Usuń całą zawartość linii poleceń. | `+/input delete_line+`
|===
[[key_bindings_cmdline_color_codes]]
@@ -1732,7 +1759,7 @@ za pomocą skrótu kbd:[Alt+m] (komenda: `+/mouse toggle+`).
[width="100%",cols="^.^3,^.^3,^.^3,.^8,.^8",options="header"]
|===
| Klawisz/Wheel ^(1)^ | Gest | Obszar | Opis | Komenda
| Klawisz/Wheel ^(1)^ | Gest | Obszar | Opis | Komenda
| ◾◽◽ | - | chat | Przełącz na okno. | `+/window ${_window_number}+`
| ◾◽◽ | lewo | chat | Przełącz na poprzedni bufor. | `+/window ${_window_number};/buffer +1+`
| ◾◽◽ | prawo | chat | Przełącz na następny bufor. | `+/window ${_window_number};/buffer +1+`
@@ -1784,7 +1811,7 @@ Poniższe skróty i akcje mogą zostać użyte w buforze fset (zobacz <<fset,wty
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Skrót | Akcja ^(1)^ | Opis | Komenda
| Skrót | Akcja ^(1)^ | Opis | Komenda
| kbd:[↑] | | Przejdź linię wyżej. | `+/fset -up+`
| kbd:[↓] | | Przejdź linię niżej. | `+/fset -down+`
| kbd:[PgUp] | | Przejdź stronę do góry. | `+/window page_up+`
@@ -1830,7 +1857,7 @@ Te skróty klawiszowe i akcje mogą zostać użyte w buforze skryptów (zobacz <
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Skrót | Akcja ^(1)^ | Opis | Komenda
| Skrót | Akcja ^(1)^ | Opis | Komenda
| kbd:[↑] | | Przejdź linię wyżej. | `+/script up+`
| kbd:[↓] | | Przejdź linię niżej. | `+/script down+`
| kbd:[PgUp] | | Przewiń stronę do góry. | `+/window page_up+`
@@ -2208,6 +2235,36 @@ Można ją zapisać za pomocą skryptu _buffer_autoset.py_: można go zaintalowa
[[highlights]]
=== Podświetlenia
// TRANSLATION MISSING
[[highlights_disable]]
==== Disable highlights
You can disable highlights with option
<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
(regular expression). +
When a highlight is disabled with this option, the other highlight options are
ignored.
For example to disable any highlight on messages with a word beginning
with "flash" between chevrons:
----
/set weechat.look.highlight_regex "<flash.*>"
----
This can also be set with the buffer property "highlight_disable_regex".
Same example, specific to the current buffer:
----
/buffer set highlight_disable_regex <flash.*>
----
[NOTE]
Właściwość bufora "highlight_disable_regex" nie jest zapisywana w konfiguracji. +
Można ją zapisać za pomocą skryptu _buffer_autoset.py_: można go zaintalować za pomocą
`+/script install buffer_autoset.py+`, informacje o używaniu `+/help buffer_autoset+`.
[[highlights_words]]
==== Dodawanie słów do podświetleń
@@ -2219,7 +2276,7 @@ Możesz dodawać inne słowa do podświetlen używając opcji
podświetlać Twój nick oraz słowa "słowo1", "słowo2" oraz wszystko co zaczyna się od "test":
----
/set weechat.look.highlight słowo1,słowo2,test*
/set weechat.look.highlight "słowo1,słowo2,test*"
----
Jeżeli potrzebujesz bardziej przecyzyjnej reguły, możesz użyć wyrażenia reglarnego
@@ -2227,7 +2284,7 @@ używając opcji <<option_weechat.look.highlight_regex,weechat.look.highlight_re
na przydład do podświetlania słów "flashcode", "flashcöde" i "flashy":
----
/set weechat.look.highlight_regex flashc[oö]de|flashy
/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----
Separatory do okoła podświetlanych słów można zmienić za pomocą opcji
@@ -2407,6 +2464,49 @@ Spowoduje powstanie następującej struktury:
...
....
// TRANSLATION MISSING
[[logger_rotation_compression]]
==== Rotation and compression
It is possible to define a max size for log files, and when it is reached,
there is automatic rotation of log file.
The rotated log files can be compressed with gzip or
https://facebook.github.io/zstd/[zstd ^↗^,window=_blank].
[NOTE]
As the compression of a file can take some time, it is performed in background.
Example with a max size of 2GB and compression with gzip, using good compression
level (slower than default one):
----
/set logger.file.rotation_compression_type gzip
/set logger.file.rotation_compression_level 80
/set logger.file.rotation_size_max "2g"
----
If you want to use a decimal number, you can use the unit below and multiply
by 1000, for example to set max size to 2.5GB:
----
/set logger.file.rotation_size_max "2500m"
----
With these settings, you'll end with files like these ones (in this example
there is rotation only for the log of #weechat channel):
....
~/.local/share/weechat
└── logs
├── core.weechat.weechatlog
├── irc.server.libera.weechatlog
├── irc.libera.#weechat.weechatlog
├── irc.libera.#weechat.weechatlog.1.gz
├── irc.libera.#weechat.weechatlog.2.gz
└── irc.libera.#weechat.weechatlog.3.gz
....
[[logger_commands]]
==== Komendy
@@ -3933,8 +4033,8 @@ przez WeeChat podczas odpowiedzi na CTCP:
| Kod | Opis | Wartość/Przykład
| $clientinfo | Lista wspieranych CTCP | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| $version | Wersja WeeChat | `+0.4.0-dev+`
| $versiongit | Wersja WeeChat + wersja Git ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Wersja git ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $versiongit | Wersja WeeChat + wersja Git ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Wersja git ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $compilation | Data kompilacji WeeChat | `+Dec 16 2012+`
| $osinfo | Informacje o systemie operacyjnym | `+Linux 2.6.32-5-amd64 / x86_64+`
| $site | Strona WeeChat | `+https://weechat.org/+`
@@ -4825,7 +4925,7 @@ od typu uchwytu:
[width="100%",cols="2,3,7",options="header"]
|===
| Uchwyt | Domyślna zmienna | Dozwolona aktualizacja ^(1)^
| Uchwyt | Domyślna zmienna | Dozwolona aktualizacja ^(1)^
| signal | tg_signal_data |
| hsignal | |
| modifier | tg_string | tg_string
@@ -4914,6 +5014,8 @@ Wszystkie callbacki ustawiają następujące zmienne w tablicy hashy:
|===
| Zmienna | Typ | Opis
| tg_trigger_name | ciąg | Nazwa triggera.
// TRANSLATION MISSING
| tg_hook_type | ciąg | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
@@ -5040,7 +5142,7 @@ Zmienne ustawiane za pomocą tagów w wiadomościach:
| tg_tag_host | ciąg | Nazwa użytkownika i host, format: username@host (z tagu "host_xxx").
| tg_tag_notify | ciąg | Poziom powiadomień (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | ciąg | IRC message tag (key "xxx"). ^(1)^
| tg_tag_irc_xxx | ciąg | IRC message tag (key "xxx"). ^(1)^
| tg_notify | ciąg | Poziom powiadomień, jeśli różny od _none_.
| tg_msg_pv | ciąg | "1" dla prywatnej wiadomości, inaczej "0".
|===
@@ -5084,7 +5186,7 @@ Zmienne ustawiane za pomocą tagów w wiadomościach:
| tg_tag_host | ciąg | Nazwa użytkownika i host, format: username@host (z tagu "host_xxx").
| tg_tag_notify | ciąg | Poziom powiadomień (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | ciąg | IRC message tag (key "xxx"). ^(1)^
| tg_tag_irc_xxx | ciąg | IRC message tag (key "xxx"). ^(1)^
| tg_notify | ciąg | Poziom powiadomień, jeśli różny od _none_.
| tg_msg_pv | ciąg | "1" dla prywatnej wiadomości, inaczej "0".
|===
+14 -3
View File
@@ -28,6 +28,7 @@ from pathlib import Path
import re
DOC_DIR = Path(__file__).resolve().parent / "en"
SRC_DIR = Path(__file__).resolve().parent.parent / "src"
STUB_HEADER = """\
#
@@ -56,16 +57,26 @@ def print_stub_constants() -> None:
"string": "str",
}
constant_pattern = re.compile(CONSTANT_RE)
with open(DOC_DIR / "weechat_scripting.en.adoc") as scripting_file:
with open(
DOC_DIR / "weechat_scripting.en.adoc", encoding="utf-8"
) as scripting_file, open(
SRC_DIR / "plugins" / "weechat-plugin.h", encoding="utf-8"
) as plugin_header_file:
scripting = scripting_file.read()
plugin_header = plugin_header_file.read()
for match in constant_pattern.finditer(scripting):
print(f'{match["constant"]}: {types[match["type"]]}')
value_re = rf'^#define {match["constant"]} +(?P<value>[\w"-]+)$'
value_match = re.search(value_re, plugin_header, re.MULTILINE)
value = f' = {value_match["value"]}' if value_match else ""
print(f'{match["constant"]}: {types[match["type"]]}{value}')
def print_stub_functions() -> None:
"""Print function prototypes, extracted from the Plugin API reference."""
function_pattern = re.compile(FUNCTION_RE, re.DOTALL)
with open(DOC_DIR / "weechat_plugin_api.en.adoc") as api_doc_file:
with open(DOC_DIR / "weechat_plugin_api.en.adoc",
encoding="utf-8") as api_doc_file:
api_doc = api_doc_file.read()
for match in function_pattern.finditer(api_doc):
url = f'https://weechat.org/doc/api/#_{match["function"]}'
@@ -631,6 +631,8 @@ _text_search_input_   (string) +
_highlight_words_   (string) +
_highlight_regex_   (string) +
_highlight_regex_compiled_   (pointer) +
_highlight_disable_regex_   (string) +
_highlight_disable_regex_compiled_   (pointer) +
_highlight_tags_restrict_   (string) +
_highlight_tags_restrict_count_   (integer) +
_highlight_tags_restrict_array_   (pointer, array_size: "highlight_tags_restrict_count") +
@@ -128,6 +128,8 @@
| weechat | uptime | WeeChat време извршавања (формат: „дана:чч:мм:сс”) | „days” (број дана) или „seconds” (број секунди) (није обавезно)
| weechat | uptime_current | WeeChat време извршавања само за текући процес (ажурирања помоћу команде /upgrade се игноришу) (формат: „дана:чч:мм:сс”) | „days” (број дана) или „seconds” (број секунди) (није обавезно)
| weechat | version | верзија програма WeeChat | -
| weechat | version_git | WeeChat git верзија (излаз команде „git describe” само за развојну верзију, празно за стабилну верзију) | -
@@ -6,7 +6,7 @@
// tag::url_options[]
[width="100%",cols="2,^1,7",options="header"]
|===
| Опција | Тип ^(1)^ | Константе ^(2)^
| Опција | Тип ^(1)^ | Константе ^(2)^
| verbose | long |
+95 -78
View File
@@ -176,7 +176,7 @@ Examples:
ls: исписује могућности које подржава сервер
list: исписује могућности које су тренутно укључене
req: захтева могућност
req: захтева нову могућност или уклања могућност (ако почиње са „-”, на пример: „-multi-prefix”)
ack: прихвата могућности које захтевају потврду са клијентске стране
end: завршава преговарање о могућностима
@@ -187,8 +187,14 @@ Examples:
Могућности које се аутоматски укључују на серверима могу да се поставе у опцији irc.server_default.capabilities (или посебно за сваки сервер у опцији irc.server.xxx.capabilities).
Примери:
приказ подржаних и укључених могућности:
/cap
/cap req multi-prefix away-notify
захтев за могућности multi-prefix и away-notify:
/cap req multi-prefix away-notify
захтев за могућност extended-join, улањање могућности multi-prefix:
/cap req extended-join -multi-prefix
уклањање могућности away-notify:
/cap req -away-notify
----
[[command_irc_connect]]
@@ -1592,63 +1598,64 @@ addreplace: додаје или замењује постојећи филтер
----
/input <акција> [<аргументи>]
листа акција:
return: симулира притисак на тастер „ентер”
complete_next: довршава реч са наредним довршавањем
complete_previous: довршава реч са претходним довршавањем
search_text_here: претражује текст у баферу почевши од текуће позиције
search_text: претражује текст у баферу
search_switch_case: укључује употребу тачне величине слова код претраге
search_switch_regex: мења тип претраге: стринг/регуларни израз
search_switch_where: укључује претрагу у порукама/префиксима
search_previous: претрага у претходној линији
search_next: претрага у наредној линији
search_stop_here: зауставља претрагу на текућој позицији
search_stop: зауставља претрагу
delete_previous_char: брише претходни карактер
delete_next_char: брише наредни карактер
delete_previous_word: брише претходну реч
delete_next_word: брише наредну реч
delete_beginning_of_line: брише од почетка линије до позиције курсора
delete_end_of_line: брише од позиције курсора до краја линије
delete_line: брише комплетну линију
clipboard_paste: налепљује из интерног клипборда
transpose_chars: транспонује два карактера (замењују места)
undo: поништава последњу акцију командне линије
redo: обнавља последње поништену акцију команде линије
move_beginning_of_line: помера курсор на почетак линије
move_end_of_line: помера курсор на крај линије
move_previous_char: помера курсор на претходни карактер
move_next_char: помера курсор на наредни карактер
move_previous_word: помера курсор на претходну реч
move_next_word: помера курсор на наредну реч
history_previous: позива претходну команду из историје команди текућег бафера
history_next: позива наредну команду из историје команди текућег бафера
history_global_previous: позива претходну команду из глобалне историје команди
history_global_next: позива наредну команду из глобалне историје команди
jump_smart: скаче на наредни бафер у коме постоји активност
jump_last_buffer_displayed: скаче на последњи приказани бафер (пре последњег скока на бафер)
jump_previously_visited_buffer: скаче на претходно посећени бафер
jump_next_visited_buffer: скаче на наредни посећени бафер
hotlist_clear: брише врућу листу (необавезни аргументи: „lowest” за брисање само најнижег нивоа у врућој листи, „highest” за брисање само највишег нивоа у врућој листи, или маска нивоа: целобројна вредност која представља комбинацију 1=join/part, 2=порука, 4=приватно, 8=истицање)
hotlist_remove_buffer: уклања текући бафер из вруће листе
hotlist_restore_buffer: враћа последњу уклоњену врућу листу у текући бафер
hotlist_restore_all: враћа последњу уклоњену врућу листу у све бафере
grab_key: преузима тастер (необавезни аргумент: кашњење за крај преузимања, подразумевано је 500 милисекунди)
grab_key_command: преузима тастер са својом придруженом командом (необавезни аргумент: кашњење за крај преузимања, подразумевано је 500 милисекунди)
grab_mouse: преузима кôд догађаја миша
grab_mouse_area: преузима кôд догађаја миша заједно са површином
set_unread: поставља маркер непрочитан за све бафере
set_unread_current_buffer: поставља маркер непрочитан за текући бафер
switch_active_buffer: прелази на наредни спојени бафер
switch_active_buffer_previous: прелази на претходни спојени бафер
zoom_merged_buffer: зумира на спојени бафер
insert: умеће текст у командну линију (дозвољени су означени карактери, погледајте /help print)
send: шаље текст баферу
paste_start: започиње налепљивање (режим ограђеног налепљивања)
paste_stop: зауставља налепљивање (режим ограђеног налепљивања)
list of actions:
return: simulate key "enter"
complete_next: complete word with next completion
complete_previous: complete word with previous completion
search_text_here: search text in buffer at current position
search_text: search text in buffer
search_switch_case: switch exact case for search
search_switch_regex: switch search type: string/regular expression
search_switch_where: switch search in messages/prefixes
search_previous: search previous line
search_next: search next line
search_stop_here: stop search at current position
search_stop: stop search
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_previous_word_whitespace: delete previous word (until whitespace)
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
delete_line: delete entire line
clipboard_paste: paste from the internal clipboard
transpose_chars: transpose two chars
undo: undo last command line action
redo: redo last command line action
move_beginning_of_line: move cursor to beginning of line
move_end_of_line: move cursor to end of line
move_previous_char: move cursor to previous char
move_next_char: move cursor to next char
move_previous_word: move cursor to previous word
move_next_word: move cursor to next word
history_previous: recall previous command in current buffer history
history_next: recall next command in current buffer history
history_global_previous: recall previous command in global history
history_global_next: recall next command in global history
jump_smart: jump to next buffer with activity
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist (optional argument: "lowest" to clear only lowest level in hotlist, "highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
hotlist_remove_buffer: remove current buffer from hotlist
hotlist_restore_buffer: restore latest hotlist removed in the current buffer
hotlist_restore_all: restore latest hotlist removed in all buffers
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
grab_mouse_area: grab mouse event code with area
set_unread: set unread marker for all buffers
set_unread_current_buffer: set unread marker for current buffer
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line (escaped chars are allowed, see /help print)
send: send text to the buffer
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
Ову команду користе тастерске пречице или додаци.
This command is used by key bindings or plugins.
----
[[command_weechat_item]]
@@ -2116,19 +2123,22 @@ passphrase: измена тајне реченице (без passphrase, под
----
[[command_weechat_upgrade]]
* `+upgrade+`: поновно учитавање WeeChat бинарног фајла без прекидања конекције са серверима
* `+upgrade+`: чува WeeChat сесију и поновно учитава WeeChat бинарни фајл без прекидања прекидања конекције са серверима
----
/upgrade [-yes] [<путања_до_бинарног>|-quit]
/upgrade [-yes] [<путања_до_бинарног>|-save|-quit]
-yes: обавезно ако је укључена опција „weechat.look.confirm_upgrade”
путања_до_бинарног: путања до WeeChat бинарног фајла (подразумевано је текући бинарни фајл)
-dummy: не ради ништа (опција која се користи за спречавање нехотичног довршавања са „-quit”)
-quit: затвара *СВЕ* конекције, чува сесију и напушта програм WeeChat, чиме се омогућава закашњена рестаурација (погледајте испод)
-save: only save the session, do not quit nor reload WeeChat; фајлови конфигурације се не чувају (ако је потребно, пре ове команде можете да употребите команду /save)
Ова команда ажурира и поновно учитава WeeChat сесију која се извршава. Нови WeeChat бинарни фајл мора бити компајлиран или инсталиран менаџером пакета пре покретања ове команде.
Напомена: SSL конекције се губе током ажурирања, јер тренутно са GnuTLS није могуће поновно учитавање SSL сесија. Постоји аутоматско поновно успостављање конекције након ажурирања.
Напомена: SSL конекције се губе током ажурирања (осим када се употреби -save), јер тренутно са GnuTLS није могуће поновно учитавање SSL сесија. Постоји аутоматско поновно успостављање конекције након ажурирања.
Важно: употреба опције -save може бити опасна, препоручује се да за стандардно ажурирање и рестарт користите само /upgrade (или са -quit); опција -save може да се користи за редовно чување сесије и опоравак у случају да је дошло до неуобичајеног завршетка рада програма (нестанак напајања, крах програма, итд.)
Процес ажурирања има 4 корака:
1. чување сесије у фајлове за језгро и додатке (бафери, историја, ..)
@@ -2136,14 +2146,18 @@ passphrase: измена тајне реченице (без passphrase, под
3. чување WeeChat конфигурације (weechat.conf)
4. извршавање новог WeeChat бинарног фајла и поновно учитавање сесије.
Са опцијом „-quit”, процес је малко другачији:
Процес са опцијом „-quit” је следећи:
1. затварање *СВИХ* конекција (irc, xfer, relay, ...)
2. чување сесије у фајлове (*.upgrade)
3. уклањање свих додатака из меморије
4. чување WeeChat конфигурације
5. напуштање програма WeeChat
Затим касније можете да обновите сесију командом: weechat --upgrade
ВАЖНО: сесију морате да обновите са потпуно истом конфигурацијом (фајлови *.conf).
За опцију „-save” процес је следећи:
1. чување сесије у фајлове (*.upgrade) у стању прекинуте везе за IRC сервере и Релеј клијенте (али се не прекида ниједна веза)
У случају -quit или -save, сесију касније можете опоравити следећом командом: weechat --upgrade
ВАЖНО: сесију морате да обновите са потпуно истом конфигурацијом (фајлови *.conf) и ако је то могуће, са истом (или новијом) верзијом програма WeeChat.
WeeChat сесија може да се обнови на другој машини ако копирате садржај WeeChat почетних директоријума (погледајте /debug dirs).
----
@@ -2328,6 +2342,7 @@ refresh: форсира освежавање ставки траке (buflist, b
- ${format_hotlist}: форматирана врућа листа (израчуната вредност опције buflist.format.hotlist)
- ${hotlist}: сирова врућа листа
- ${hotlist_priority}: „none”, „low”, „message”, „private” или „highlight”
- ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = private, 3 = highlight
- ${format_lag}: кашњење за бафер IRC сервера, празна у случају да нема кашњења (израчуната вредност опције buflist.format.lag)
- ${format_tls_version}: индикатор TLS верзије за серверски бафер, празно за канале (резултат израчунавања опције buflist.format.tls_version)
----
@@ -3049,27 +3064,27 @@ toggleautoload: пребацивање аутоматског учитавања
----
/spell enable|disable|toggle
listdict
setdict <речн>[,<речн>...]
setdict -|<dict>[,<dict>...]
deldict
addword [<речн>] <реч>
addword [<dict>] <word>
enable: укључивање програма за проверу правописа
disable: искључивање програма за проверу правописа
toggle: пребацивање програма за проверу правописа
listdict: приказ инсталираних речника
setdict: постављање речника за текући бафер (више речника може да се раздвоји запетама)
deldict: брисање речника који се користи за текући бафер
addword: додавање речи у лични речник
enable: enable spell checker
disable: disable spell checker
toggle: toggle spell checker
listdict: show installed dictionaries
setdict: set dictionary for current buffer (multiple dictionaries can be separated by a comma, the special value "-" disables spell checking on current buffer)
deldict: delete dictionary used on current buffer
addword: add a word in personal dictionary
Линије уноса које почињу са ’/’ се не проверавају, осим за неке команде (погледајте /set spell.check.commands).
Input line beginning with a '/' is not checked, except for some commands (see /set spell.check.commands).
Ако желите да укључите програм за проверу правописа у свим баферима, употребите опцију „default_dict, па затим укључите програм за проверу правописа, на пример:
/set spell.check.default_dict en
To enable spell checker on all buffers, use option "default_dict", then enable spell checker, for example:
/set spell.check.default_dict "en"
/spell enable
Ако желите да се у траци прикаже листа предлога, употребите ставку „spell_suggest.
To display a list of suggestions in a bar, use item "spell_suggest".
Подразумевани тастер за пребацивање програма за проверу правописа је alt-s.
Default key to toggle spell checker is alt-s.
----
// end::spell_commands[]
@@ -3186,6 +3201,8 @@ listdefault: листа подразумеваних окидача
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
чување конфигурације на сваки сат, у тишини:
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
у тишини чува WeeChat сесију у поноћ (погледајте /help upgrade):
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
отварање монитора окидача и приказ само модификатора и окидача чије име почиње са „resize”:
/trigger monitor @modifier,resize*
----
+51 -3
View File
@@ -750,6 +750,12 @@
** вредности: било који стринг
** подразумевана вредност: `+""+`
* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
** опис: pass:none[POSIX проширени регуларни израз који се користи за спречавање било каквог истицања у поруци: ова опција има виши приоритет у односу на све осталеопције истицања (ако се стринг пронађе у поруци, истицање се исључује и све остале опције се игноришу), регуларни израз не прави разлику у величини слова (употребите „(?-i)” на почетку да се величина слова не узима у обзир), примери: „<flash.*>”, „(?-i)<Flash.*>”]
** тип: стринг
** вредности: било који стринг
** подразумевана вредност: `+""+`
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** опис: pass:none[POSIX проширени регуларни израз који се користи за проверу да ли порука садржи истицање или не, барем једно подударање мора бити окружено граничницима (карактери који се разликују од: алфанумерика, „-”, „_” и „|”), регуларни израз не прави разлику у величини слова (употребите „(?-i)” не почетку ако желите да се величина слова узима у обзир), примери: „flashcode|flashy”, „(?-i)FlashCode|flashy”]
** тип: стринг
@@ -1397,7 +1403,7 @@
** подразумевана вредност: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** опис: pass:none[аутоматско чување садржаја бафера у фајлове (осим у случају да бафер искључује логовање)]
** опис: pass:none[аутоматско чување садржаја бафера у фајлове (осим у случају да бафер искључује логовање); ако је искључена, логовање се искључује у свим баферима]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
@@ -1462,6 +1468,24 @@
** вредности: било који стринг
** подразумевана вредност: `+"_"+`
* [[option_logger.file.rotation_compression_level]] *logger.file.rotation_compression_level*
** опис: pass:none[compression level for rotated log files (with extension ".1", ".2", etc.), if option logger.file.rotation_compression_type is enabled: 1 = low compression / fast ... 100 = best compression / slow; the value is a percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is recommended, it offers a good compromise between compression and speed]
** тип: целобројна
** вредности: 1 .. 100
** подразумевана вредност: `+20+`
* [[option_logger.file.rotation_compression_type]] *logger.file.rotation_compression_type*
** опис: pass:none[compression type for rotated log files; if set to "none", rotated log files are not compressed; WARNING: if rotation was enabled with another type of compression (or no compression), you must first unload the logger plugin, compress files with the new type (or decompress files), then change the option in logger.conf, then load the logger plugin]
** тип: целобројна
** вредности: none, gzip, zstd
** подразумевана вредност: `+none+`
* [[option_logger.file.rotation_size_max]] *logger.file.rotation_size_max*
** опис: pass:none[when this size is reached, a rotation of log files is performed: the existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) and the current file is renamed with extension .1; an integer number with a suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = megabytes, g = gigabytes, t = terabytes; example: "2g" causes a rotation if the file size is > 2,000,000,000 bytes; if set to "0", no rotation is performed (unlimited log size); WARNING: before changing this option, you should first set the compression type via option logger.file.rotation_compression_type]
** тип: стринг
** вредности: било који стринг
** подразумевана вредност: `+"0"+`
* [[option_logger.file.time_format]] *logger.file.time_format*
** опис: pass:none[временска ознака која се користи у лог фајловима (погледајте man strftime за спецификаторе датума/времена)]
** тип: стринг
@@ -1544,6 +1568,12 @@
** вредности: име WeeChat боје (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), број terminal боје или алијас; испред боје су дозвољени атрибути (само за боју текста, не и за позадину): „*” за подебљано, „!” за обрнуто, „/” за курзив, „_” за подвучено
** подразумевана вредност: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** опис: pass:none[боја текста за идентификатор контекста окидача у монитор баферу]
** тип: боја
** вредности: име WeeChat боје (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), број terminal боје или алијас; испред боје су дозвољени атрибути (само за боју текста, не и за позадину): „*” за подебљано, „!” за обрнуто, „/” за курзив, „_” за подвучено
** подразумевана вредност: `+cyan+`
* [[option_trigger.color.regex]] *trigger.color.regex*
** опис: pass:none[боја текста за регуларне изразе]
** тип: боја
@@ -1771,7 +1801,7 @@
** подразумевана вредност: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** опис: pass:none[укључује buflist]
** опис: pass:none[enable buflist; препроручује се да се уместо простог скривања траке употреби ова опција јер она уклања и неке интерне куке које више нису потребне када трака сакрије; такође можете да употребите и команду „/buflist toggle” или подразумевани тастер alt+shift+b]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
@@ -2127,7 +2157,7 @@
** подразумевана вредност: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** опис: pass:none[боја за текст у chghost порукама]
** опис: pass:none[боја за текст у chghost порукама]
** тип: боја
** вредности: име WeeChat боје (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), број terminal боје или алијас; испред боје су дозвољени атрибути (само за боју текста, не и за позадину): „*” за подебљано, „!” за обрнуто, „/” за курзив, „_” за подвучено
** подразумевана вредност: `+brown+`
@@ -2150,6 +2180,12 @@
** вредности: име WeeChat боје (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), број terminal боје или алијас; испред боје су дозвољени атрибути (само за боју текста, не и за позадину): „*” за подебљано, „!” за обрнуто, „/” за курзив, „_” за подвучено
** подразумевана вредност: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** опис: pass:none[боја за текст у „setname” порукама]
** тип: боја
** вредности: име WeeChat боје (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), број terminal боје или алијас; испред боје су дозвољени атрибути (само за боју текста, не и за позадину): „*” за подебљано, „!” за обрнуто, „/” за курзив, „_” за подвучено
** подразумевана вредност: `+brown+`
* [[option_irc.color.mirc_remap]] *irc.color.mirc_remap*
** опис: pass:none[ремапирање mirc боја у порукама користећи хеш табелу: кључеви су „fg,bg” као цели бројеви између -1 (није наведена) и 15, вредности су WeeChat имена или бројеви боја (формат је: „1,-1:боја1;2,7:боја2”), пример: „1,-1:darkgray;1,2:white,blue” да се црна ремапира на „darkgray” и црна на плавој позадини у „white,blue”; подразумеване WeeChat боје за IRC кодове: 0=white, 1=black, 2=blue, 3=green, 4=lightred, 5=red, 6=magenta, 7=brown, 8=yellow, 9=lightgreen, 10=cyan, 11=lightcyan, 12=lightblue, 13=lightmagenta, 14=darkgray, 15=gray]
** тип: стринг
@@ -2330,6 +2366,12 @@
** вредности: on, off
** подразумевана вредност: `+on+`
* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change*
** опис: pass:none[display nick change in private]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
* [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address*
** опис: pass:none[приказ упозорења у приватном баферу ако се промени адреса удаљеног надимка; ова опција је подразумевано искључена јер сервери као што је bitlbee чине да се ово упозорење прикаже и онда када се то не очекује (адреса удаљеног надимка се током пријављивања мења више пута)]
** тип: логичка
@@ -2546,6 +2588,12 @@
** вредности: on, off
** подразумевана вредност: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** опис: pass:none[укључивање паметног филтера за „setname” поруке]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
* [[option_irc.look.temporary_servers]] *irc.look.temporary_servers*
** опис: pass:none[укључивање аутоматског додавања привремених сервера командом /connect]
** тип: логичка
+11 -4
View File
@@ -428,6 +428,10 @@ WeeChat „језгро” се налази у следећим директо
|          test-gui-buffer.cpp | Тестови: бафер функције.
|          test-gui-chat.cpp | Тестови: чет функције.
|          test-gui-color.cpp | Тестови: боје.
// TRANSLATION MISSING
|          test-gui-filter.cpp | Тестови: filters.
// TRANSLATION MISSING
|          test-gui-input.cpp | Tests: input functions.
|          test-gui-line.cpp | Тестови: линије.
|          test-gui-nick.cpp | Тестови: надимци.
|       plugins/ | Корен unit тестова додатака.
@@ -455,6 +459,9 @@ WeeChat „језгро” се налази у следећим директо
|             test-typing-status.cpp | Тестови: typing статус.
|          relay/ | Корен unit тестова за Релеј додатак.
|             test-relay-auth.cpp | Тестови: аутентификација клијената.
|          xfer/ | Корен unit тестова за Xfer додатак.
|             test-xfer-file.cpp | Тестови: фајл функције.
|             test-xfer-network.cpp | Тестови: мрежне функције.
|===
[[documentation_translations]]
@@ -920,10 +927,10 @@ struct t_gui_buffer *last_gui_buffer = NULL; /* last buffer */
| [hex]#19# + `B` + `ПРО` | [hex]#19# `+B@00124+` | чет + траке | Постављање предњег плана (проширена боја).
| [hex]#19# + `*` + `(ATTR)СТД` | [hex]#19# `+*05+` | чет + траке | Постављање предњег плана (WeeChat боја).
| [hex]#19# + `*` + `(ATTR)ПРО` | [hex]#19# `+*@00214+` | чет + траке | Постављање предњег плана (проширена боја).
| [hex]#19# + `*` + `(ATTR)СТД` + `,` + `СТД` ^(1)^ | [hex]#19# `+*08,05+` | чет + траке | Постављање предњег плана/позадине (WeeChat боје).
| [hex]#19# + `*` + `(ATTR)СТД` + `,` + `ПРО` ^(1)^ | [hex]#19# `+*01,@00214+` | чет + траке | Постављање предњег плана (WeeChat боје) у позадине (проширена боја).
| [hex]#19# + `*` + `(ATTR)ПРО` + `,` + `СТД` ^(1)^ | [hex]#19# `+*@00214,05+` | чет + траке | Постављање предњег плана (extended color) и позадине (WeeChat color).
| [hex]#19# + `*` + `(ATTR)ПРО` + `,` + `ПРО` ^(1)^ | [hex]#19# `+*@00214,@00017+` | чет + траке | Постављање предњег плана/позадине (проширене боје).
| [hex]#19# + `*` + `(ATTR)СТД` + `,` + `СТД` ^(1)^ | [hex]#19# `+*08,05+` | чет + траке | Постављање предњег плана/позадине (WeeChat боје).
| [hex]#19# + `*` + `(ATTR)СТД` + `,` + `ПРО` ^(1)^ | [hex]#19# `+*01,@00214+` | чет + траке | Постављање предњег плана (WeeChat боје) у позадине (проширена боја).
| [hex]#19# + `*` + `(ATTR)ПРО` + `,` + `СТД` ^(1)^ | [hex]#19# `+*@00214,05+` | чет + траке | Постављање предњег плана (extended color) и позадине (WeeChat color).
| [hex]#19# + `*` + `(ATTR)ПРО` + `,` + `ПРО` ^(1)^ | [hex]#19# `+*@00214,@00017+` | чет + траке | Постављање предњег плана/позадине (проширене боје).
| [hex]#19# + `*` + `(ATTR)СТД` + `~` + `СТД` | [hex]#19# `+*08~05+` | чет + траке | Постављање предњег плана/позадине (WeeChat боје).
| [hex]#19# + `*` + `(ATTR)СТД` + `~` + `ПРО` | [hex]#19# `+*01~@00214+` | чет + траке | Постављање предњег плана (WeeChat color) и позадине (проширена боја).
| [hex]#19# + `*` + `(ATTR)ПРО` + `~` + `СТД` | [hex]#19# `+*@00214~05+` | чет + траке | Постављање предњег плана (проширена боја) и позадине (WeeChat color).
+287 -95
View File
@@ -1711,22 +1711,30 @@ weechat_string_free_split (argv);
[NOTE]
Ова функција није доступна у API скриптовања.
==== string_build_with_split_string
==== string_rebuild_split_string
Изграђује стринг од подељеног стринга.
_Ажурирано у верзији 3.7._
Поново изграђује стринг уз помоћ стринга за поделу, користећи необавезни граничник и индекс
први/последњи.
Прототип:
[source,c]
----
char *weechat_string_build_with_split_string (char **split_string,
const char *separator);
char *weechat_string_rebuild_split_string (char **split_string,
const char *separator,
int index_start, int index_end);
----
Аргументи:
* _split_string_: стринг подељен функцијом <<_string_split,string_split>>
* _separator_: стринг који се користи за раздвајање стрингова
* _separator_: стринг који се користи за раздвајање стрингова (Може да буде NULL или празан стринг)
* _index_start_: индекст првог стринга који треба да се користи (≥ 0)
* _index_end_: индекс последњег стринга који треба да се користи
(мора бити ≥ _index_start_; може да се користи специјална вредност -1 да се употребе сви аргументи
док се не наиђе на NULL)
Повратна вредност:
@@ -1739,7 +1747,7 @@ C пример:
char **argv;
int argc;
argv = weechat_string_split ("abc def ghi", " ", 0, 0, &argc);
char *str = weechat_string_build_with_split_string (argv, ";");
char *str = weechat_string_rebuild_split_string (argv, ";", 0, -1);
/* str == "abc;def;ghi" */
/* ... */
free (str);
@@ -1867,6 +1875,52 @@ def string_format_size(size: int) -> str: ...
str = weechat.string_format_size(15200) # == "15.2 KB"
----
// TRANSLATION MISSING
==== string_parse_size
_WeeChat ≥ 3.7._
Parse a string with a size and optional unit and return the size in bytes.
Прототип:
[source,c]
----
unsigned long long weechat_string_parse_size (const char *size);
----
Аргументи:
* _size_: the size as string: positive integer number followed by optional
spaces and optional unit (lower or upper case), which is one of:
** _b_: bytes
** _k_: kilobytes (1k = 1000 bytes)
** _m_: megabytes (1m = 1000k = 1,000,000 bytes)
** _g_: gigabytes (1g = 1000m = 1,000,000,000 bytes)
** _t_: terabytes (1t = 1000g = 1,000,000,000,000 bytes)
Повратна вредност:
* size in bytes, 0 if error
C пример:
[source,c]
----
unsigned long long size = weechat_parse_size ("1.34m"); /* size == 1340000 */
----
Script (Python):
[source,python]
----
# прототип
def string_parse_size(size: str) -> int: ...
# пример
size = weechat.string_parse_size("1.34m") # 1340000
----
==== string_color_code_size
_WeeChat ≥ 3.0._
@@ -2508,7 +2562,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
| `+${eval:xxx}+` | 1.3
| Стринг који се израчунава.
| >> `+${eval:${date:${weechat.look.buffer_time_format}}}+` +
== `+19:02:45+` ^(1)^ +
== `+19:02:45+` ^(1)^ +
+
^(1)^ са бојама, ако у опцији weechat.look.buffer_time_format постоје боје
@@ -2574,7 +2628,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
== `+!dlrow ,olleH+` +
+
>> `+${rev:Hello, ${color:red}world!}+` +
== `+!dlrow30F ,olleH+` ^(1)^ +
== `+!dlrow30F ,olleH+` ^(1)^ +
+
^(1)^ нема боје, кôд боје је обрнут
@@ -2584,7 +2638,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
== `+!dlrow ,olleH+` +
+
>> `+${revscr:Hello, ${color:red}world!}+` +
== `+!dlrow ,olleH+` ^(1)^ +
== `+!dlrow ,olleH+` ^(1)^ +
+
^(1)^ `pass:[ ,olleH]` у црвеној боји
@@ -2697,10 +2751,10 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
| Кôд WeeChat боје (име боје има и необавезне атрибуте), погледајте
функцију <<_color,color>> у вези подржаних формата.
| >> `+${color:red}red text+` +
== `+red text+` ^(1)^ +
== `+red text+` ^(1)^ +
+
>> `+${color:*214}bold orange text+` +
== `+bold orange text+` ^(2)^ +
== `+bold orange text+` ^(2)^ +
+
^(1)^ у црвеној +
^(2)^ подебљано наранџасто
@@ -2806,7 +2860,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
| `+${translate:xxx}+` | 3.2
| Преведени стринг (зависи од језика који програм WeeChat користи за приказ порука).
| >> `+${translate:Plugin}+` +
== `+Extension+` ^(1)^ +
== `+Extension+` ^(1)^ +
+
^(1)^ пример из француског
@@ -3612,6 +3666,48 @@ rc = weechat_crypto_hash (data, strlen (data), "sha256", hash, &hash_size);
[NOTE]
Ова функција није доступна у API скриптовања.
==== crypto_hash_file
_WeeChat ≥ 3.7._
Израчунава хеш фајла.
Прототип:
[source,c]
----
int weechat_crypto_hash_file (const char *filename, const char *hash_algo,
void *hash, int *hash_size);
----
Аргументи:
* _filename_: путања и име фајла
* _hash_algo_: хеш алгоритам, погледајте табелу у функцији
<<crypto_hash_algorithms,crypto_hash>>
* _hash_: показивач на хеш променљиву која се користи за чување резултата хеширања
(бафер мора бити довољне величине која зависи од алгоритма, погледајте табелу у
функцији <<crypto_hash_algorithms,crypto_hash>>)
* _hash_size_: показивач на променљиву која се користи за чување величине израчунатог хеша (у бајтовима) (може да буде NULL)
Повратна вредност:
* 1 ако је све OK, 0 у случају грешке
C пример:
[source,c]
----
char hash[256 / 8];
int rc, hash_size;
rc = weechat_crypto_hash_file ("/path/to/file", "sha256", hash, &hash_size);
/* rc == 1, hash_size == 32 и хеш је бафер са:
71 c4 80 df 93 d6 ae 2f 1e fa d1 44 7c 66 c9 52 5e 31 62 18 cf 51 fc 8d 9e d8 32 f2 da f1 8b 73 */
----
[NOTE]
Ова функција није доступна у API скриптовања.
==== crypto_hash_pbkdf2
_WeeChat ≥ 2.8._
@@ -3957,6 +4053,48 @@ if (weechat_file_copy ("/tmp/test.txt", "/path/to/test2.txt"))
Неке корисне функције.
// TRANSLATION MISSING
==== file_compress
_WeeChat ≥ 3.7._
Compress a file with gzip or zstd.
Прототип:
[source,c]
----
int weechat_file_compress (const char *from, const char *to,
const char *compressor, int compression_level);
----
Аргументи:
* _from_: изворишни фајл
* _to_: одредишни фајл
* _compressor_: the compressor to use, one of:
** _gzip_: gzip compression
** _zstd_: zstandard compression
* _compression_level_: compression level, between 1 (fast, low compression) to
100 (slow, best compression)
Повратна вредност:
* 1 ако је копирање OK, 0 у случају грешке
C пример:
[source,c]
----
if (weechat_file_compress ("/tmp/test.txt", "/tmp/test.txt.zst", "zstd", 50))
{
/* OK */
}
----
[NOTE]
Ова функција није доступна у API скриптовања.
==== util_timeval_cmp
Пореди две „timeval” структуре.
@@ -5771,7 +5909,7 @@ struct t_config_file *config_file = weechat_config_new ("test",
def config_new(name: str, callback_reload: str, callback_reload_data: str) -> str: ...
# пример
def my_config_reload_cb(data, config_file):
def my_config_reload_cb(data: str, config_file: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -6009,26 +6147,26 @@ def config_new_section(config_file: str, name: str,
callback_delete_option: str, callback_delete_option_data: str) -> str: ...
# пример
def my_section_read_cb(data, config_file, section, option_name, value):
def my_section_read_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
# return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
# return weechat.WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND
# return weechat.WEECHAT_CONFIG_OPTION_SET_ERROR
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_write_default_cb(data, config_file, section_name):
def my_section_write_default_cb(data: str, config_file: str, section_name: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_WRITE_OK
def my_section_create_option_cb(data, config_file, section, option_name, value):
def my_section_create_option_cb(data: str, config_file: str, section: str, option_name: str, value: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
def my_section_delete_option_cb(data, config_file, section, option):
def my_section_delete_option_cb(data: str, config_file: str, section: str, option: str) -> int:
# ...
return weechat.WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED
@@ -6242,21 +6380,21 @@ struct t_config_option *option5 =
# прототип
def config_new_option(config_file: str, section: str, name: str, type: str, description: str,
string_values: str, min: int, max: int,
default_value: str, value: str, null_value_allowed: int,
default_value: str | None, value: str | None, null_value_allowed: int,
callback_check_value: str, callback_check_value_data: str,
callback_change: str, callback_change_data: str,
callback_delete: str, callback_delete_data: str) -> str: ...
# пример
def option4_check_value_cb(data, option, value):
def option4_check_value_cb(data: str, option: str, value: str) -> int:
# ...
return 1
# return 0
def option4_change_cb(data, option):
def option4_change_cb(data: str, option: str) -> int:
# ...
def option4_delete_cb(data, option):
def option4_delete_cb(data: str, option: str) -> int:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
@@ -7340,7 +7478,7 @@ my_section_write_cb (const void *pointer, void *data,
def config_write_option(config_file: str, option: str) -> int: ...
# пример
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "my_section", "")
weechat.config_write_option(config_file, option)
return weechat.WEECHAT_RC_OK
@@ -7391,7 +7529,7 @@ my_section_write_cb (const void *pointer, void *data,
def config_write_line(config_file: str, option_name: str, value: str) -> int: ...
# пример
def my_section_write_cb(data, config_file, section_name):
def my_section_write_cb(data: str, config_file: str, section_name: str) -> int:
weechat.config_write_line(config_file, "my_section", "")
weechat.config_write_line(config_file, "option", "value")
return weechat.WEECHAT_RC_OK
@@ -8482,19 +8620,46 @@ _WeeChat ≥ 0.3.4._
У неким кукама можете да поставите приоритет. Кука са вишим приоритетом се налази при почетку листе кука, тако да ће се пронаћи и извршити пре осталих кука. Корисно је за модификаторе, јер је за њих битан редослед извршавања.
Да бисте поставили приоритет, морате да користите следећу синтаксу за аргумент за који је дозвољен приоритет: nnn|име где је nnn позитиван цео број са приоритетом, а име је име аргумента (приоритет се не појављује у имену, он се аутоматски уклања из стринга).
Да бисте поставили приоритет, морате да користите следећу синтаксу за аргумент за који је дозвољен приоритет: `nnn|име` где је `nnn` позитиван цео број са приоритетом, а `име` је име аргумента (приоритет се не појављује у имену, он се аутоматски уклања из стринга). +
// TRANSLATION MISSING
Only a single priority per hook is allowed.
Подразумевани приоритет је 1000.
C пример:
// TRANSLATION MISSING
C examples:
// TRANSLATION MISSING
[source,c]
----
/* модификатор кука са приоритетом = 2000 */
/* high priority: called before other modifier calbacks */
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
/* hook two signals with priority = 3000 */
/* high priority: called before other signal callbacks */
weechat_hook_signal ("3000|quit;upgrade", &signal_cb, NULL, NULL);
/* hook lines printed in formatted buffers with priority = 500 */
/* low priority: called after other line callbacks */
weechat_hook_line ("500|formatted", "*", NULL, &line_cb, NULL, NULL);
----
Приоритет дозвољавају следећи типови кука: command, command_run, signal, hsignal, config, completion, modifier, info, info_hashtable, infolist, hdata, focus.
Приоритет дозвољавају следећи типови кука:
* <<_hook_command,command>>
* <<_hook_completion,completion>>
* <<_hook_command_run,command_run>>
* <<_hook_line,line>>
* <<_hook_signal,signal>>
* <<_hook_hsignal,hsignal>>
* <<_hook_config,config>>
* <<_hook_modifier,modifier>>
* <<_hook_info,info>>
* <<_hook_info_hashtable,info_hashtable>>
* <<_hook_infolist,infolist>>
* <<_hook_hdata,hdata>>
* <<_hook_focus,focus>>
==== hook_command
@@ -8523,7 +8688,8 @@ struct t_hook *weechat_hook_command (const char *command,
Аргументи:
* _command_: име команде (приоритет је дозвољен, погледајте напомену о <<hook_priority,приоритету>>)
// TRANSLATION MISSING
* _command_: име команде (a priority is allowed before the command, see note about <<hook_priority,приоритетима>>)
* _description_: опис команде (приказује се са `/help команда`)
* _args_: аргументи за команду (приказује се са `/help команда`)
* _args_description_: опис аргумената (приказује се са `/help команда`)
@@ -8624,7 +8790,7 @@ def hook_command(command: str, description: str, args: str, args_description: st
completion: str, callback: str, callback_data: str) -> str: ...
# пример
def my_command_cb(data, buffer, args):
def my_command_cb(data: str, buffer: str, args: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -8663,7 +8829,8 @@ struct t_hook *weechat_hook_completion (const char *completion_item,
Аргументи:
* _completion_item_: име ставке довршавања, након ње у закаченој команди (аргумент _completion_) можете да користите _%(име)_ (или _%(име:аргументи)_ у WeeChat ≥ 1.7) (дозвољава се приоритет, погледајте напомену о <<hook_priority,приоритетима>>)
// TRANSLATION MISSING
* _completion_item_: име ставке довршавања, након ње у закаченој команди (аргумент _completion_) можете да користите _%(име)_ (или _%(име:аргументи)_ у WeeChat ≥ 1.7) (a priority is allowed before the completion item, see note about <<hook_priority,приоритетима>>)
* _description_: опис довршавања
* _callback_: функција се позива када се употреби ставка довршавања (корисник нешто довршава употребом ове ставке), аргументи и повратна вредност су:
** _const void *pointer_: показивач
@@ -8715,7 +8882,7 @@ struct t_hook *my_completion_hook = weechat_hook_completion ("plugin_ставк
def hook_completion(completion_item: str, description: str, callback: str, callback_data: str) -> str: ...
# пример
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
weechat.completion_list_add(completion, "реч1", 0, weechat.WEECHAT_LIST_POS_SORT)
weechat.completion_list_add(completion, "тест_реч2", 0, weechat.WEECHAT_LIST_POS_SORT)
return weechat.WEECHAT_RC_OK
@@ -8757,7 +8924,8 @@ struct t_hook *weechat_hook_command_run (const char *command,
Аргументи:
* _command_: команда која се качи (дозвољен је џокер `+*+`) (дозвољава се приоритет, погледајте напомену о <<hook_priority,приоритетима>>)
// TRANSLATION MISSING
* _command_: команда која се качи (дозвољен је џокер `+*+`) (a priority is allowed before the command, see note about <<hook_priority,приоритетима>>)
* _callback_: функција која се позива када се команда покрене, аргументи и повратна вредност су:
** _const void *pointer_: показивач
** _void *data_: показивач
@@ -8799,7 +8967,7 @@ struct t_hook *my_command_run_hook =
def hook_command_run(command: str, callback: str, callback_data: str) -> str: ...
# пример
def my_command_run_cb(data, buffer, command):
def my_command_run_cb(data: str, buffer: str, command: str) -> int:
weechat.prnt("", "Трошим довршавање!")
return weechat.WEECHAT_RC_OK_EAT
@@ -8869,7 +9037,7 @@ struct t_hook *my_timer_hook =
def hook_timer(interval: int, align_second: int, max_calls: int, callback: str, callback_data: str) -> str: ...
# пример
def my_timer_cb(data, remaining_calls):
def my_timer_cb(data: str, remaining_calls: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -8947,7 +9115,7 @@ struct t_hook *my_fd_hook = weechat_hook_fd (sock, 1, 0, 0, &my_fd_cb, NULL, NUL
def hook_fd(fd: int, flag_read: int, flag_write: int, flag_exception: int, callback: str, callback_data: str) -> str: ...
# пример
def my_fd_cb(data, fd):
def my_fd_cb(data: str, fd: int) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -8998,9 +9166,11 @@ struct t_hook *weechat_hook_process (const char *command,
**** _3_: нема довољно слободне меморије
**** _4_: грешка са фајлом
*** _< 0_:
**** _WEECHAT_HOOK_PROCESS_RUNNING_: подаци су доступни, али се дете још увек извршава)
**** _WEECHAT_HOOK_PROCESS_ERROR_: грешка приликом покретања команде
**** _WEECHAT_HOOK_PROCESS_CHILD_: у дете процесу је позвана функција повратног позива
**** _WEECHAT_HOOK_PROCESS_RUNNING_ (-1): подаци су доступни, али се дете још увек извршава
**** _WEECHAT_HOOK_PROCESS_ERROR_ (-2): грешка приликом покретања команде
// TRANSLATION MISSING
**** _WEECHAT_HOOK_PROCESS_CHILD_ (-3): у дете процесу је позвана функција повратног позива
(used only in C API, not scripting API)
** _out_: стандардни излаз команде (stdout)
** _err_: излаз грешака команде (stderr)
** повратна вредност:
@@ -9124,7 +9294,7 @@ struct t_hook *my_process_hook = weechat_hook_process ("func:get_status", 5000,
def hook_process(command: str, timeout: int, callback: str, callback_data: str) -> str: ...
# пример са спољном командом
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Грешка у команди %s’" % command)
return weechat.WEECHAT_RC_OK
@@ -9139,12 +9309,12 @@ def my_process_cb(data, command, return_code, out, err):
hook = weechat.hook_process("ls", 5000, "my_process_cb", "")
# пример са скрипт функцијом
def get_status(data):
def get_status(data: str) -> str:
# одради нешто блокирајуће...
# ...
return "ово је резултат"
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Грешка у команди %s’" % command)
return weechat.WEECHAT_RC_OK
@@ -9339,7 +9509,7 @@ if (options_cmd2)
def hook_process_hashtable(command: str, options: Dict[str, str], timeout: int, callback: str, callback_data: str) -> str: ...
# пример
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
if return_code == weechat.WEECHAT_HOOK_PROCESS_ERROR:
weechat.prnt("", "Грешка у команди %s’" % command)
return weechat.WEECHAT_RC_OK
@@ -9528,7 +9698,7 @@ def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, loc
callback: str, callback_data: str) -> str: ...
# пример
def my_connect_cb(data, status, gnutls_rc, sock, error, ip_address):
def my_connect_cb(data: str, status: int, gnutls_rc: int, sock: int, error: str, ip_address: str) -> int:
if status == WEECHAT_HOOK_CONNECT_OK:
# ...
elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND:
@@ -9559,7 +9729,8 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
==== hook_line
_WeeChat ≥ 2.3._
// TRANSLATION MISSING
_WeeChat ≥ 2.3, updated in 3.7._
Качи се на линију која треба да се испише у бафер.
@@ -9588,7 +9759,10 @@ struct t_hook *weechat_hook_line (const char *buffer_type,
Аргументи:
* _buffer_type_: хвата линије у наведеном типу бафера (ако је NULL или празан стринг, подразумева се _formatted_):
// TRANSLATION MISSING
* _buffer_type_: хвата линије у наведеном типу бафера (ако је NULL или празан стринг, подразумева се _formatted_)
(_WeeChat ≥ 3.7_: a priority is allowed before the buffer type,
see note about <<hook_priority,приоритетима>>):
** _formatted_: хвата линије само у форматираним баферима (подразумевано)
** _free_: хвата линије само у баферима са слободним садржајем
** _*_: хвата линије у баферима свих типова
@@ -9806,7 +9980,7 @@ struct t_hook *my_line_hook =
def hook_line(buffer_type: str, buffer_name: str, tags: str, callback: str, callback_data: str) -> str: ...
# пример
def my_line_cb(data, line):
def my_line_cb(data: str, line: Dict[str, str]) -> Dict[str, str]:
# force a highlight on the line
return {"highlight": "1"}
@@ -9904,8 +10078,8 @@ struct t_hook *my_print_hook =
def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback: str, callback_data: str) -> str: ...
# пример
def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message):
if int(highlight):
def my_print_cb(data: str, buffer: str, date: str, tags: str, displayed: int, highlight: int, prefix: str, message: str) -> int:
if highlight:
# ...
return weechat.WEECHAT_RC_OK
@@ -9935,9 +10109,11 @@ struct t_hook *weechat_hook_signal (const char *signal,
Аргументи:
// TRANSLATION MISSING
* _signal_: сигнал који се хвата, дозвољава се џокер `+*+`, више сигнала може
да се раздвоји тачка запетама
(дозвољен је приоритет, погледајте напомену о <<hook_priority,приоритетима>>) (погледајте табелу испод)
(a priority is allowed before one or more signals, see note about <<hook_priority,приоритетима>>)
(погледајте табелу испод)
* _callback_: функција која се позива када се прими сигнал, аргументи и повратна вредност су:
** _const void *pointer_: показивач
** _void *data_: показивач
@@ -9980,7 +10156,7 @@ struct t_hook *weechat_hook_signal (const char *signal,
| Стринг: листа уклоњених скрипти раздвојених запетама.
| Уклоњен(а/е) Scheme скрипт(а/е).
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in_yyy]] xxx,irc_in_yyy ^(1)^ |
| Стринг: порука.
| IRC порука од сервера (пре него што је употреби irc додатак,
сигнал се шаље само ако се порука *не* игнорише). +
@@ -9988,13 +10164,13 @@ struct t_hook *weechat_hook_signal (const char *signal,
Ако је повратни код функције повратног позива _WEECHAT_RC_OK_EAT_, онда се IRC
порука одмах брише и не обрађује се _(WeeChat ≥ 3.3)_.
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_in2_yyy]] xxx,irc_in2_yyy ^(1)^ |
| Стринг: порука.
| IRC порука од сервера (након што је употреби irc додатак,
сигнал се шаље само ако се порука *не* игнорише). +
Почевши од верзије 2.2, шаље се комплетна IRC порука, заједно са ознакама.
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in_yyy]] xxx,irc_raw_in_yyy ^(1)^ | 0.3.2
| Стринг: порука.
| IRC порука од сервера (пре него што је употреби irc додатак,
сигнал се шаље чак и када се порука игнорише). +
@@ -10002,25 +10178,25 @@ struct t_hook *weechat_hook_signal (const char *signal,
Ако је повратни кôд функције повратног позива _WEECHAT_RC_OK_EAT_, онда се IRC
порука одмах брише и обрађује се _(WeeChat ≥ 3.3)_.
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| irc | [[hook_signal_xxx_irc_raw_in2_yyy]] xxx,irc_raw_in2_yyy ^(1)^ | 0.3.2
| Стринг: порука.
| IRC порука од сервера (након што је употреби irc додатак,
сигнал се шаље чак и када се порука игнорише). +
Почевши од верзије 2.2, шаље се комплетна IRC порука, заједно са ознакама.
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| irc | [[hook_signal_xxx_irc_out1_yyy]] xxx,irc_out1_yyy ^(1)^ | 0.3.7
| Стринг: порука.
| IRC порука која се шаље серверу пре аутоматске поделе
(да стане у 512 бајтова, подразумевано).
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| irc | [[hook_signal_xxx_irc_out_yyy]] xxx,irc_out_yyy ^(1)^ |
| Стринг: порука.
| IRC порука која се шаље серверу након аутоматске поделе
(да стане у 512 бајтова, подразумевано).
*Упозорење:* стринг може да садржи неважеће UTF-8 податке.
Уместо овог, препоручује се употреба сигнала „xxx,irc_out1_yyy”.
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| irc | [[hook_signal_xxx_irc_outtags_yyy]] xxx,irc_outtags_yyy ^(1)^ | 0.3.4
| Стринг: ознаке + „;” + порука.
| Ознаке + IRC порука која се шаље серверу. +
*Упозорење:* стринг може да садржи неважеће UTF-8 податке.
@@ -10516,7 +10692,8 @@ struct t_hook *weechat_hook_signal (const char *signal,
Примљен је сигнал SIGWINCH (промењена је величина терминала).
| weechat | [[hook_signal_upgrade]] upgrade |
| Стринг: "quit" ако је за /upgrade наведен аргумент „-quit”, у супротном NULL.
| Стринг: quit ако је уз /upgrade наведен аргумент „-quit”, „save”
ако је уз /upgrade наведен аргумент „-save”, у супротном NULL.
| Корисник је задао команду `/upgrade`.
| weechat | [[hook_signal_upgrade_ended]] upgrade_ended | 0.3.4
@@ -10624,7 +10801,7 @@ struct t_hook *my_signal_hook = weechat_hook_signal ("quit;upgrade",
def hook_signal(signal: str, callback: str, callback_data: str) -> str: ...
# пример
def my_signal_cb(data, signal, signal_data):
def my_signal_cb(data: str, signal: str, signal_data: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -10844,9 +11021,11 @@ struct t_hook *weechat_hook_hsignal (const char *signal,
Аргументи:
// TRANSLATION MISSING
* _signal_: сигнал који се хвата, дозвољава се џокер `+*+`, multiple signals can
be separated by semi-colons
(дозвољен је приоритет, погледајте напомену о <<hook_priority,приоритетима>>) (погледајте табелу испод)
(a priority is allowed before one or more signals, see note about <<hook_priority,приоритетима>>)
(погледајте табелу испод)
* _callback_: функција која се позива када се прими сигнал, аргументи и повратна вредност су:
** _const void *pointer_: показивач
** _void *data_: показивач
@@ -10869,7 +11048,7 @@ struct t_hook *weechat_hook_hsignal (const char *signal,
|===
| Додатак | Сигнал | Мин WeeChat | Аргументи | Опис
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| irc | [[hook_hsignal_irc_redirection_xxx_yyy]] irc_redirection_xxx_yyy ^(1)^ | 0.3.4
| Погледајте <<hsignal_irc_redirect_command,hsignal_irc_redirect_command>>
| Преусмеравање излаза.
@@ -10937,7 +11116,7 @@ struct t_hook *my_hsignal_hook = weechat_hook_hsignal ("test",
def hook_hsignal(signal: str, callback: str, callback_data: str) -> str: ...
# пример
def my_hsignal_cb(data, signal, hashtable):
def my_hsignal_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11082,7 +11261,7 @@ if (hashtable)
[source,python]
----
def test_whois_cb(data, signal, hashtable):
def test_whois_cb(data: str, signal: str, hashtable: Dict[str, str]) -> int:
weechat.prnt("", "error = %s" % hashtable["error"])
weechat.prnt("", "output = %s" % hashtable["output"])
return weechat.WEECHAT_RC_OK
@@ -11182,7 +11361,8 @@ struct t_hook *weechat_hook_config (const char *option,
Аргументи:
* _option_: опција, формат је пуно име, као што се користи у команди `/set` на пример: `+weechat.look.item_time_format+`), дозвољава се џокер `+*+` (дозвољена је употреба приоритета, погледајте напомену о <<hook_priority,приоритетима>>)
// TRANSLATION MISSING
* _option_: опција, формат је пуно име, као што се користи у команди `/set` на пример: `+weechat.look.item_time_format+`), дозвољава се џокер `+*+` (a priority is allowed before the option, see note about <<hook_priority,приоритетима>>)
* _callback_: функција која се позива када се измени опција конфигурације, аргументи и повратна вредност су:
** _const void *pointer_: показивач
** _void *data_: показивач
@@ -11223,7 +11403,7 @@ struct t_hook *my_config_hook = weechat_hook_config ("weechat.look.item_time_for
def hook_config(option: str, callback: str, callback_data: str) -> str: ...
# пример
def my_config_cb(data, option, value):
def my_config_cb(data: str, option: str, value: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -11253,7 +11433,9 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
Аргументи:
* _modifier_: име модификатора, листа модификатора које користе програм WeeChat или додаци (дозвољава се приоритет, погледајте напомену о <<hook_priority,приоритетима>>) (погледајте табелу испод)
// TRANSLATION MISSING
* _modifier_: modifier name (a priority is allowed before the modifier, see note about <<hook_priority,приоритетима>>)
(погледајте табелу испод)
* _callback_: функција која се позива када се употреби модификатор, аргументи и повратна вредност су:
** _const void *pointer_: показивач
** _void *data_: показивач
@@ -11274,7 +11456,7 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
|===
| Модификатор | Мин WeeChat | Подаци модификатора | Стринг | Излаз
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| Име сервера
| Садржај поруке примљене са IRC сервера (пре декодирања скупа карактера). +
*Упозорење:* стринг може да садржи неважеће UTF-8 податке; користите га само
@@ -11282,24 +11464,24 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
Уместо њега се препоручује употреба <<hook_modifier_irc_in2_xxx,irc_in2_xxx>>.
| Нови садржај поруке.
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5
| Име сервера
| Садржај поруке примљене са IRC сервера (након декодирања скупа карактера).
| Нови садржај поруке.
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7
| Име сервера
| Садржај поруке које треба да се пошаље IRC серверу пре аутоматске поделе
(да стане у 512 подразумевано).
| Нови садржај поруке.
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| Име сервера
| Садржај поруке које треба да се пошаље IRC серверу након аутоматске поделе
(да стане у 512 подразумевано).
| Нови садржај поруке.
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| Стринг са показивачем на прозор (нпр: "0x1234abcd")
| Празан стринг.
| "1" да се прикаже трака, "0" да се сакрије.
@@ -11330,7 +11512,7 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
| Нови садржај командне линије који се шаље у бафер.
| [[hook_modifier_weechat_print]] weechat_print |
| показивач на бафер (нпр: "0x1234abcd") + ";" + ознаке ^(3)^
| показивач на бафер (нпр: "0x1234abcd") + ";" + ознаке ^(3)^
| Порука која се исписује.
| Нова порука која се исписује. +
За више информација о кукама које се позивају када се линија исписује,
@@ -11380,7 +11562,7 @@ struct t_hook *my_modifier_hook = weechat_hook_modifier ("weechat_print",
def hook_modifier(modifier: str, callback: str, callback_data: str) -> str: ...
# пример
def my_modifier_cb(data, modifier, modifier_data, string):
def my_modifier_cb(data: str, modifier: str, modifier_data: str, string: str) -> str:
return "%s xxx" % string
hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "")
@@ -11521,7 +11703,8 @@ struct t_hook *weechat_hook_info (const char *info_name,
Аргументи:
* _info_name_: име инфо (дозвољава се приоритет, погледајте напомену о <<hook_priority,приоритетима>>)
// TRANSLATION MISSING
* _info_name_: име инфо (a priority is allowed before the info name, see note about <<hook_priority,приоритетима>>)
* _description_: опис
* _args_description_: опис аргумената (није обавезан, може да буде NULL)
* _callback_: функција која се позива када се затражи инфо, аргументи и повратна вредност су:
@@ -11568,7 +11751,7 @@ def hook_info(info_name: str, description: str, args_description: str,
callback: str, callback_data: str) -> str: ...
# пример
def my_info_cb(data, info_name, arguments):
def my_info_cb(data: str, info_name: str, arguments: str) -> str:
return „some_info”
hook = weechat.hook_info("my_info", "Нека инфо", "Инфо о аргументима",
@@ -11599,7 +11782,8 @@ struct t_hook *weechat_hook_info_hashtable (const char *info_name,
Аргументи:
* _info_name_: име инфо (дозвољава се приоритет, погледајте напомену о <<hook_priority,приоритетима>>)
// TRANSLATION MISSING
* _info_name_: име инфо (a priority is allowed before the info name, see note about <<hook_priority,приоритетима>>)
* _description_: опис
* _args_description_: опис очекиване хеш табеле (није обавезан, може да буде NULL)
* _output_description_: опис хеш табеле коју враћа функција повратног позива (није обавезно, може да буде NULL)
@@ -11645,7 +11829,7 @@ def hook_info_hashtable(info_name: str, description: str, args_description: str,
output_description: str, callback: str, callback_data: str) -> str: ...
# пример
def my_info_hashtable_cb(data, info_name, hashtable):
def my_info_hashtable_cb(data: str, info_name: str, hashtable: Dict[str, str]) -> Dict[str, str]:
return {"test_key": "test_value"}
hook = weechat.hook_info_hashtable("my_info_hashtable", "Нека инфо",
@@ -11679,7 +11863,8 @@ struct t_hook *weechat_hook_infolist (const char *infolist_name,
Аргументи:
* _infolist_name_: име инфолисте (дозвољава се приоритет, погледајте напомену о <<hook_priority,приоритетима>>)
// TRANSLATION MISSING
* _infolist_name_: име инфолисте (a priority is allowed before the infolist name, see note about <<hook_priority,приоритетима>>)
* _description_: опис
* _pointer_description_: опис показивача (није обавезно, може да буде NULL)
* _args_description_: опис аргумената (није обавезан, може да буде NULL)
@@ -11730,7 +11915,7 @@ def hook_infolist(infolist_name: str, description: str, pointer_description: str
args_description: str, callback: str, callback_data: str) -> str: ...
# пример
def my_infolist_cb(data, infolist_name, pointer, arguments):
def my_infolist_cb(data: str, infolist_name: str, pointer: str, arguments: str) -> str:
# изградња инфолисте
# ...
return my_infolist
@@ -11761,7 +11946,8 @@ struct t_hook *weechat_hook_hdata (const char *hdata_name,
Аргументи:
* _hdata_name_: име hdata (дозвољавају се приоритети, погледајте напомену о <<hook_priority,приоритетима>>)
// TRANSLATION MISSING
* _hdata_name_: име hdata (a priority is allowed before the hdata name, see note about <<hook_priority,приоритетима>>)
* _description_: опис
* _callback_: функција која се позива када се затражи hdata, аргументи и повратна вредност су:
** _const void *pointer_: показивач
@@ -11819,7 +12005,8 @@ struct t_hook *weechat_hook_focus (const char *area,
Аргументи:
* _area_: „chat” за површину чета (разговора), или име ставке траке (дозвољава се приоритет, погледајте напомену о <<hook_priority,приоритетима>>)
// TRANSLATION MISSING
* _area_: „chat” за површину чета (разговора), или име ставке траке (a priority is allowed before the area, see note about <<hook_priority,приоритетима>>)
* _callback_: функција која се позива када се направи фокус, аргументи и повратна вредност су:
** _const void *pointer_: показивач
** _void *data_: показивач
@@ -11835,7 +12022,7 @@ struct t_hook *weechat_hook_focus (const char *area,
[width="100%", cols="5,5,8,3", options="header"]
|===
| Кључ ^(1)^ | Опис | Примери вредности | Вредност ако нема
| Кључ ^(1)^ | Опис | Примери вредности | Вредност ако нема
| _x | Колона на екрану.
| "0" ... "n" |
@@ -11867,7 +12054,7 @@ struct t_hook *weechat_hook_focus (const char *area,
| _buffer_full_name | Пуно име бафера.
| "core.weechat", "irc.libera.#weechat", ... | ""
| _buffer_localvar_XXX ^(2)^ | Локалне променљиве бафера.
| _buffer_localvar_XXX ^(2)^ | Локалне променљиве бафера.
| any value | not set
| _chat | Индикатор површине разговора.
@@ -11876,16 +12063,16 @@ struct t_hook *weechat_hook_focus (const char *area,
| _chat_line | Показивач на линију _(WeeChat ≥ 1.2)_.
| "0x1234abcd" | ""
| _chat_line_x | Колона у линији ^(3)^.
| _chat_line_x | Колона у линији ^(3)^.
| "0" ... "n" | "-1"
| _chat_line_y | Број линије ^(3)^.
| _chat_line_y | Број линије ^(3)^.
| "0" ... "n" | "-1"
| _chat_line_date | Датум/време линије.
| "1313237175" | "0"
| _chat_line_date_printed | Датум/време линије ^(4)^.
| _chat_line_date_printed | Датум/време линије ^(4)^.
| "1313237175" | "0"
| _chat_line_time | Приказано време.
@@ -11941,7 +12128,7 @@ struct t_hook *weechat_hook_focus (const char *area,
[width="100%", cols="^1,^1,5", options="header"]
|===
| Додатак ^(1)^ | Кључ | Опис
| Додатак ^(1)^ | Кључ | Опис
| irc | irc_nick | Показивач на IRC надимак _(WeeChat ≥ 3.0)_.
| irc | irc_host | Хост за надимак (ако се зна).
| weechat | nick | Име надимка.
@@ -11982,7 +12169,7 @@ struct t_hook *my_focus = weechat_hook_focus ("buffer_nicklist",
def hook_focus(area: str, callback: str, callback_data: str) -> str: ...
# пример
def my_focus_nicklist_cb(data, info):
def my_focus_nicklist_cb(data: str, info: Dict[str, str]) -> Dict[str, str]:
# изградња dict
# ...
return my_dict
@@ -12052,7 +12239,7 @@ weechat_hook_set (my_command_hook, "subplugin", "test");
def hook_set(hook: str, property: str, value: str) -> int: ...
# пример
def my_process_cb(data, command, return_code, out, err):
def my_process_cb(data: str, command: str, return_code: int, out: str, err: str) -> int:
# ...
return weechat.WEECHAT_RC_OK
@@ -12228,11 +12415,11 @@ def buffer_new(name: str, input_callback: str, input_callback_data: str,
close_callback: str, close_callback_data: str) -> str: ...
# пример
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Текст: %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Затвориће се бафер ’%s!" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -12341,11 +12528,11 @@ def buffer_new_props(name: str, properties: Dict[str, str],
close_callback: str, close_callback_data: str) -> str: ...
# пример
def my_input_cb(data, buffer, input_data):
def my_input_cb(data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Текст: %s" % input_data)
return weechat.WEECHAT_RC_OK
def my_close_cb(data, buffer):
def my_close_cb(data: str, buffer: str) -> int:
weechat.prnt("", "Затвориће се бафер ’%s!" % weechat.buffer_get_string(buffer, "name"))
return weechat.WEECHAT_RC_OK
@@ -12724,6 +12911,7 @@ const char *weechat_buffer_get_string (struct t_gui_buffer *buffer,
** _input_: текст уноса
** _text_search_input_: сачувани унос пре претраге текста
** _highlight_words_: листа речи које се истичу
** _highlight_disable_regex_: POSIX прооширени регуларни израз за искључивање истицања
** _highlight_regex_: POSIX проширени регуларни израз за истицање
** _highlight_tags_restrict_: ограничава истицање само на поруке са наведеним ознакама
** _highlight_tags_: истицање се форсира за поруке са наведеним ознакама
@@ -12773,6 +12961,7 @@ void *weechat_buffer_pointer (struct t_gui_buffer *buffer,
* _buffer_: показивач на бафер
* _property_: име особине:
** _plugin_: показивач на додатак који је креирао овај бафер (NULL за главни бафер програма WeeChat)
** _highlight_disable_regex_compiled_: компајлиран регуларни израз _highlight_disable_regex_
** _highlight_regex_compiled_: компајлиран регуларни израз _highlight_regex_
Повратна вредност:
@@ -12911,6 +13100,9 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
| highlight_words_del | | листа речи раздвојених запетама
| Лист речи раздвојених запетама које треба да се уклоне из речи које се истичу у овом баферу.
| highlight_disable_regex | | било који стринг
| POSIX проширени регуларни израз за искључивање истицања.
| highlight_regex | | било који стринг
| POSIX проширени регуларни израз за истицање.
@@ -14324,13 +14516,13 @@ struct t_gui_bar_item *my_item = weechat_bar_item_new ("myitem",
def bar_item_new(name: str, build_callback: str, build_callback_data: str) -> str: ...
# пример (функција повратног позива без „buffer” и „extra_info”)
def my_build_callback(data, item, window):
def my_build_callback(data: str, item: str, window: str) -> str:
return "my content"
bar_item = weechat.bar_item_new("myitem", "my_build_callback", "")
# пример (функција повратног позива са свим аргументима, за WeeChat ≥ 0.4.2)
def my_build_callback2(data, item, window, buffer, extra_info):
def my_build_callback2(data: str, item: str, window: str, buffer: str, extra_info: Dict[str, str]) -> str:
return "my content"
bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat ≥ 0.4.2
@@ -14898,7 +15090,7 @@ my_completion_cb (const void *pointer, void *data, const char *completion_item,
def completion_get_string(completion: str, property: str) -> str: ...
# пример
def my_completion_cb(data, completion_item, buffer, completion):
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
# добавља аргументе команде
args = weechat.completion_get_string(completion, "args")
# довршавање у зависности од args
+2
View File
@@ -640,6 +640,8 @@ inl:
text_search_found: 0
text_search_input: None
highlight_words: None
highlight_disable_regex: None
highlight_disable_regex_compiled: '0x0'
highlight_regex: None
highlight_regex_compiled: '0x0'
highlight_tags_restrict: None
+13 -1
View File
@@ -532,6 +532,7 @@ weechat_hook_timer(1000, 0, 1, $timer_cb, 'test');
string_has_highlight_regex +
string_mask_to_regex +
string_format_size +
string_parse_size +
string_color_code_size +
string_remove_color +
string_is_command_char +
@@ -1243,7 +1244,7 @@ IRC поруку можете да парсирате са info_hashtable под
[width="100%", cols="3,^2,10,7", options="header"]
|===
| Кључ | Од WeeChat ^(1)^ | Опис | Пример
| Кључ | Од WeeChat ^(1)^ | Опис | Пример
| tags | 0.4.0
| Ознаке у поруци (може бити празно).
@@ -1285,6 +1286,14 @@ IRC поруку можете да парсирате са info_hashtable под
| Текст (на пример, корисникова порука).
| `+здраво!+`
| paramN | 3.4
| Параметар команде (од 1 до N).
| `+#weechat+`
| num_params | 3.4
| Број параметара команде.
| `+2+`
| pos_command | 1.3
| Индекс _command_ у поруци („-1” ако се _command_ не пронађе).
| `+47+`
@@ -1323,6 +1332,9 @@ dict = weechat.info_get_hashtable(
# "channel": "#weechat",
# "arguments": "#weechat :здраво!",
# "text": "hello!",
# "param1": "#weechat",
# "param2": "hello!",
# "num_params": "2",
# "pos_command": "65",
# "pos_arguments": "73",
# "pos_channel": "73",
+153 -52
View File
@@ -106,16 +106,42 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[width="100%", cols="5,^3,.^15", options="header"]
|===
| Пакет ^(1)^ | Верзија | Служи за
| C компајлер (gcc / clang) | | Изградњу.
| cmake | ≥ 3.0 | Изградњу (може да се користи и autotools, али се препоручује CMake).
| pkg-config | | Детекција инсталираних библиотека.
| libncursesw5-dev ^(2)^ | | Ncurses интерфејс.
| libcurl4-gnutls-dev | | URL пренос.
| libgcrypt20-dev | | Обезбеђени подаци, IRC SASL аутентификација.
| libgnutls28-dev | ≥ 2.2.0 ^(3)^ | SSL веза са IRC сервером, подршка за SSL у релеј додатку, IRC SASL аутентификација (ECDSA-NIST256P-CHALLENGE).
| zlib1g-dev | | Компресија порука (WeeChat -> клијент) са https://zlib.net/[zlib ^↗^,window=_blank] у релеј додатку (weechat протокол), скрипт додатак.
| libzstd-dev | | Компресија порука (WeeChat -> клијент) са https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] у релеј додатку (weechat протокол).
// TRANSLATION MISSING
| Пакет ^(1)^ | Верзија | Features
| C компајлер (gcc / clang) |
| Изградњу.
| cmake | ≥ 3.0
| Изградњу (може да се користи и autotools, али се препоручује CMake).
| pkg-config |
| Детекција инсталираних библиотека.
| libncursesw5-dev ^(2)^ |
| Ncurses интерфејс.
| libcurl4-gnutls-dev |
| URL пренос.
| libgcrypt20-dev |
| Обезбеђени подаци, IRC SASL аутентификација.
// TRANSLATION MISSING
| libgnutls28-dev | ≥ 2.2.0 ^(3)^
| IRC plugin: support of TLS connections, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE). +
Relay plugin: support of TLS connections.
// TRANSLATION MISSING
| zlib1g-dev |
| Logger plugin: compression of rotated log files (gzip). +
Relay plugin: compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^,window=_blank] (weechat protocol). +
Script plugin: read of repository index file (gzip).
// TRANSLATION MISSING
| libzstd-dev | ≥ 0.8.1
| Logger plugin: compression of rotated log files. +
Relay plugin: compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^,window=_blank] (weechat protocol).
|===
[NOTE]
@@ -128,12 +154,13 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[width="100%", cols="5,^3,.^15", options="header"]
|===
| Пакет ^(1)^ | Верзија | Служи за
// TRANSLATION MISSING
| Пакет ^(1)^ | Верзија | Features
| {cpp} компајлер (pass:[g++ / clang++]) | | Изградњу и покретање тестова, JavaScript додатак.
| gettext | | Интернационализацију (превод порука; основни језик је енглески).
| ca-certificates | | Сертификате за SSL везе.
| libaspell-dev / libenchant-dev | | Spell додатак.
| python3-dev ^(2)^ | | Python додатак.
| python3-dev ^(2)^ | | Python додатак.
| libperl-dev | | Perl додатак.
| ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby додатак.
| liblua5.4-dev | | Lua додатак.
@@ -675,26 +702,26 @@ WeeChat подразумевано користи XDG директоријуме
[width="100%", cols="1m,3", options="header"]
|===
| Путања ^(1)^ | Опис
| Путања ^(1)^ | Опис
| ~/.config/weechat/ | WeeChat конфигурациони фајлови: `*.conf`, сертификати, итд.
| ~/.local/share/weechat/ | WeeChat фајлови података: логови, скрипте, подаци скрипти, xfer фајлови, итд.
|    logs/ | Лог фајлови (по један за сваки бафер).
|    python/ | Python скрипте.
|       autoload/ | Python скрипте које аутоматски учитавају при покретању ^(2)^.
|       autoload/ | Python скрипте које аутоматски учитавају при покретању ^(2)^.
|    perl/ | Perl скрипте.
|       autoload/ | Perl скрипте које се аутоматски учитавају при покретању ^(2)^.
|       autoload/ | Perl скрипте које се аутоматски учитавају при покретању ^(2)^.
|    ruby/ | Ruby скрипте.
|       autoload/ | Ruby скрипте које се аутоматски учитавају при покретању ^(2)^.
|       autoload/ | Ruby скрипте које се аутоматски учитавају при покретању ^(2)^.
|    lua/ | Lua скрипте.
|       autoload/ | Lua скрипте које се аутоматски учитавају при покретању ^(2)^.
|       autoload/ | Lua скрипте које се аутоматски учитавају при покретању ^(2)^.
|    tcl/ | Tcl скрипте.
|       autoload/ | Tcl скрипте које се аутоматски учитавају при покретању ^(2)^.
|       autoload/ | Tcl скрипте које се аутоматски учитавају при покретању ^(2)^.
|    guile/ | Guile скрипте.
|       autoload/ | Guile скрипте које се аутоматски учитавају при покретању ^(2)^.
|       autoload/ | Guile скрипте које се аутоматски учитавају при покретању ^(2)^.
|    javascript/ | JavaScript скрипте.
|       autoload/ | JavaScript скрипте које се аутоматски учитавају при покретању ^(2)^.
|       autoload/ | JavaScript скрипте које се аутоматски учитавају при покретању ^(2)^.
|    php/ | PHP скрипте.
|       autoload/ | PHP скрипте које се аутоматски учитавају при покретању ^(2)^.
|       autoload/ | PHP скрипте које се аутоматски учитавају при покретању ^(2)^.
| ~/.cache/weechat/ | WeeChat кеш фајлови: кеш скрипти.
| /run/user/1000/weechat/ | WeeChat фајлови за време извршавања: FIFO пајп, Relay UNIX сокети.
|===
@@ -1188,10 +1215,10 @@ _прозор_ је површина екрана која приказује б
| no_highlight | У линији није могуће истицање.
| no_log | Линија се не уписује у лог фајл.
| log0 … log9 | Ниво лога за линију (погледајте `/help logger`).
| notify_none | Линија не сме да се дода у врућу листу. ^(1)^
| notify_message | Линија је корисничка порука. ^(1)^
| notify_private | Линија је приватна порука. ^(1)^
| notify_highlight | Линија је порука са истицањем. ^(1)^
| notify_none | Линија не сме да се дода у врућу листу. ^(1)^
| notify_message | Линија је корисничка порука. ^(1)^
| notify_private | Линија је приватна порука. ^(1)^
| notify_highlight | Линија је порука са истицањем. ^(1)^
| self_msg | Порука од вас.
| nick_xxx | Порука је од надимка „xxx”.
| prefix_nick_ccc | Префикс је надимак у боји „ccc”.
@@ -1404,27 +1431,29 @@ WeeChat нуди доста подразумеваних тастерских п
[width="100%", cols="^.^3,.^8,.^5", options="header"]
|===
| Тастер | Опис | Команда
| Тастер | Опис | Команда
| kbd:[Del] +
kbd:[Ctrl+d] | Брисање наредног карактера у командној линији. | `+/input delete_next_char+`
kbd:[Ctrl+d] | Брисање наредног карактера у командној линији. | `+/input delete_next_char+`
| kbd:[Backspace] +
kbd:[Ctrl+h] | Брисање претходног карактера у командној линији. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | Брисање од курсора до краја командне линије (обрисани стринг се копира у интерни клипборд). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Транспозиција карактера. | `/input transpose_chars`
| kbd:[Ctrl+u] | Брисање од курсора до почетка командне линије (обрисани стринг се копира у интерни клипборд). | `+/input delete_beginning_of_line+`
| kbd:[Ctrl+w] | Брисање претходне речи командне линије (обрисани стринг се копира у интерни клипборд). | `+/input delete_previous_word+`
| kbd:[Ctrl+y] | Налепљивање садржаја интерног клипборда. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Поништавање последње акције у командној линији. | `+/input undo+`
| kbd:[Alt+_] | Враћање последње поништене акције у командној линији. | `+/input redo+`
| kbd:[Tab] | Довршавање команде или надимка (kbd:[Tab] поново: проналажење наредног довршавања). | `+/input complete_next+`
| kbd:[Shift+Tab] | Без довршавања: обављање парцијалног довршавања, са довршавањем на чекању: довршавање са претходно пронађеним појмом. | `+/input complete_previous+`
kbd:[Ctrl+h] | Брисање претходног карактера у командној линији. | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | Брисање од курсора до краја командне линије (обрисани стринг се копира у интерни клипборд). | `+/input delete_end_of_line+`
| kbd:[Ctrl+t] | Транспозиција карактера. | `/input transpose_chars`
| kbd:[Ctrl+u] | Брисање од курсора до почетка командне линије (обрисани стринг се копира у интерни клипборд). | `+/input delete_beginning_of_line+`
| kbd:[Alt+Backspace] | Брисање претходне речи командне линије (обрисани стринг се копира у интерни клипборд). | `+/input delete_previous_word+`
// TRANSLATION MISSING
| kbd:[Ctrl+w] | Delete previous word of command line until whitespace (deleted string is copied to the internal clipboard). | `+/input delete_previous_word_whitespace+`
| kbd:[Ctrl+y] | Налепљивање садржаја интерног клипборда. | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | Поништавање последње акције у командној линији. | `+/input undo+`
| kbd:[Alt+_] | Враћање последње поништене акције у командној линији. | `+/input redo+`
| kbd:[Tab] | Довршавање команде или надимка (kbd:[Tab] поново: проналажење наредног довршавања). | `+/input complete_next+`
| kbd:[Shift+Tab] | Без довршавања: обављање парцијалног довршавања, са довршавањем на чекању: довршавање са претходно пронађеним појмом. | `+/input complete_previous+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | Извршавање команде или слање поруке (у режиму претраге: заустављање претраге). | `+/input return+`
| kbd:[Alt+Enter] | Умеће прелом реда. | `+/input insert \n+`
| kbd:[Alt+d] | Брисање наредне речи у командној линији (обрисани стринг се копира у интерни клипборд). | `+/input delete_next_word+`
| kbd:[Alt+k] | Хвата тастер и умеће његов кôд (и комадну везану за њега, ако постоји таква пречица) у командну линију. | `+/input grab_key_command+`
| kbd:[Alt+r] | Брише комплетну командну линију. | `+/input delete_line+`
kbd:[Ctrl+m] | Извршавање команде или слање поруке (у режиму претраге: заустављање претраге). | `+/input return+`
| kbd:[Alt+Enter] | Умеће прелом реда. | `+/input insert \n+`
| kbd:[Alt+d] | Брисање наредне речи у командној линији (обрисани стринг се копира у интерни клипборд). | `+/input delete_next_word+`
| kbd:[Alt+k] | Хвата тастер и умеће његов кôд (и комадну везану за њега, ако постоји таква пречица) у командну линију. | `+/input grab_key_command+`
| kbd:[Alt+r] | Брише комплетну командну линију. | `+/input delete_line+`
|===
[[key_bindings_cmdline_color_codes]]
@@ -1615,7 +1644,7 @@ WeeChat нуди доста подразумеваних тастерских п
[width="100%", cols="^.^3,^.^3,^.^3,.^8,.^8", options="header"]
|===
| Тастер/Точкић ^(1)^ | Гестикулација | Површина | Опис | Команда
| Тастер/Точкић ^(1)^ | Гестикулација | Површина | Опис | Команда
| ◾◽◽ | - | чет | Пребацивање на прозор. | `+/window ${_window_number}+`
| ◾◽◽ | лево | чет | Пребацивање на претходни бафер. | `+/window ${_window_number};/buffer +1+`
| ◾◽◽ | десно | чет | Пребацивање на наредни бафер. | `+/window ${_window_number};/buffer +1+`
@@ -1667,7 +1696,7 @@ WeeChat нуди доста подразумеваних тастерских п
[width="100%", cols="^.^3,^.^2,.^8,.^5", options="header"]
|===
| Тастер | Акција ^(1)^ | Опис | Команда
| Тастер | Акција ^(1)^ | Опис | Команда
| kbd:[↑] | | Помера једну линију навише. | `+/fset -up+`
| kbd:[↓] | | Помера једну линију наниже. | `+/fset -down+`
| kbd:[PgUp] | | Помера једну страну навише. | `+/window page_up+`
@@ -1713,7 +1742,7 @@ WeeChat нуди доста подразумеваних тастерских п
[width="100%", cols="^.^3,^.^2,.^8,.^5", options="header"]
|===
| Тастер | Акција ^(1)^ | Опис | Команда
| Тастер | Акција ^(1)^ | Опис | Команда
| kbd:[↑] | | Помера једну линију навише. | `+/script up+`
| kbd:[↓] | | Помера једну линију наниже. | `+/script down+`
| kbd:[PgUp] | | Помера једну страну навише. | `+/window page_up+`
@@ -2061,6 +2090,33 @@ include::includes/autogen_user_options.sr.adoc[tag=charset_options]
[[highlights]]
=== Истицања
[[highlights_disable]]
==== Искључивање истицања
Истицања можете искључити опцијом
<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
(регуларни израз). +
Када се овом опцијом искључи истицање, остале опције истицања се игноришу.
На пример, ако желите да искључите било какво истицање у порукама које садрже реч која
почиње на „flash” унутар угластих заграда:
----
/set weechat.look.highlight_regex "<flash.*>"
----
Ово такође може да се постави и са особином бафера „highlight_disable_regex”.
Исти пример, који функционише само на текућем баферу:
----
/buffer set highlight_disable_regex <flash.*>
----
[NOTE]
Особина бафера „highlight_disable_regex” се не чува у конфигурацији. +
Лако можете да је сачувате скриптом _buffer_autoset.py_: инсталирате је командом `+/script install buffer_autoset.py+`, а помоћ добијате са `+/help buffer_autoset+`.
[[highlights_words]]
==== Додавање речи које се истичу
@@ -2069,13 +2125,13 @@ include::includes/autogen_user_options.sr.adoc[tag=charset_options]
Остале речи моожете да додате опцијом <<option_weechat.look.highlight,weechat.look.highlight>>, на пример ако желите да се истиче ваш надимак и „реч1”, „реч2”, као и све речи које почињу са „test”:
----
/set weechat.look.highlight реч1,реч2,test*
/set weechat.look.highlight "реч1,реч2,test*"
----
Ако вам је потребно одређеније правило за реч, можете да употребите регуларне изразе опцијом <<option_weechat.look.highlight_regex,weechat.look.highlight_regex>>, на пример да истакнете речи „flashcode”, „flashcöde” и „flashy”:
----
/set weechat.look.highlight_regex flashc[oö]de|flashy
/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----
Граничници око речи које се истичу могу да се прилагоде опцијом <<option_weechat.look.word_chars_highlight,weechat.look.word_chars_highlight>>.
@@ -2233,6 +2289,49 @@ logger.file.mask
...
....
// TRANSLATION MISSING
[[logger_rotation_compression]]
==== Rotation and compression
It is possible to define a max size for log files, and when it is reached,
there is automatic rotation of log file.
The rotated log files can be compressed with gzip or
https://facebook.github.io/zstd/[zstd ^↗^,window=_blank].
[NOTE]
As the compression of a file can take some time, it is performed in background.
Example with a max size of 2GB and compression with gzip, using good compression
level (slower than default one):
----
/set logger.file.rotation_compression_type gzip
/set logger.file.rotation_compression_level 80
/set logger.file.rotation_size_max "2g"
----
If you want to use a decimal number, you can use the unit below and multiply
by 1000, for example to set max size to 2.5GB:
----
/set logger.file.rotation_size_max "2500m"
----
With these settings, you'll end with files like these ones (in this example
there is rotation only for the log of #weechat channel):
....
~/.local/share/weechat
└── logs
├── core.weechat.weechatlog
├── irc.server.libera.weechatlog
├── irc.libera.#weechat.weechatlog
├── irc.libera.#weechat.weechatlog.1.gz
├── irc.libera.#weechat.weechatlog.2.gz
└── irc.libera.#weechat.weechatlog.3.gz
....
[[logger_commands]]
==== Команде
@@ -3655,8 +3754,8 @@ CTCP може да се прилагоди само за један сервер
| Кôд | Опис | Вредност/пример
| $clientinfo | Листа подржаних CTCP | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| $version | Верзија програма WeeChat | `+0.4.0-dev+`
| $versiongit | WeeChat верзија + Git верзија ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git верзија ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $versiongit | WeeChat верзија + Git верзија ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | Git верзија ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $compilation | Датум компајлирања програма WeeChat | `+Dec 16 2012+`
| $osinfo | Инфо о ОС | `+Linux 2.6.32-5-amd64 / x86_64+`
| $site | WeeChat вебсајт | `+https://weechat.org/+`
@@ -4477,7 +4576,7 @@ ${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})
[width="100%", cols="2,3,7", options="header"]
|===
| Кука | Подраз. променљива | Дозвољено ажурирање ^(1)^
| Кука | Подраз. променљива | Дозвољено ажурирање ^(1)^
| signal | tg_signal_data |
| hsignal | |
| modifier | tg_string | tg_string
@@ -4556,6 +4655,8 @@ ${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})
|===
| Променљива | Тип | Опис
| tg_trigger_name | стринг | Име окидача.
// TRANSLATION MISSING
| tg_hook_type | стринг | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
@@ -4676,7 +4777,7 @@ ${buffer[${tg_signal_data}].full_name}
| tg_tag_prefix_nick | стринг | Боја надимка у префиксу (из ознаке „prefix_nick_ccc”).
| tg_tag_host | стринг | Корисничко име и хост, формат: корисничкоиме@хост (из ознаке „host_xxx”).
| tg_tag_notify | стринг | Ниво обавештавања (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | стринг | Ознака IRC поруке (кључ „xxx”). ^(1)^
| tg_tag_irc_xxx | стринг | Ознака IRC поруке (кључ „xxx”). ^(1)^
| tg_notify | стринг | Ниво обавештавања, ако се разликује од _none_.
| tg_msg_pv | стринг | „1” за приватну поруку, у супротном „0”.
|===
@@ -4718,7 +4819,7 @@ ${buffer[${tg_signal_data}].full_name}
| tg_tag_prefix_nick | стринг | Боја надимка у префиксу (из ознаке „prefix_nick_ccc”).
| tg_tag_host | стринг | Корисничко име и хост, формат: корисничкоиме@хост (из ознаке „host_xxx”).
| tg_tag_notify | стринг | Ниво обавештавања (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | стринг | Ознака IRC поруке (кључ „xxx”). ^(1)^
| tg_tag_irc_xxx | стринг | Ознака IRC поруке (кључ „xxx”). ^(1)^
| tg_notify | стринг | Ниво обавештавања, ако се разликује од _none_.
| tg_msg_pv | стринг | „1” за приватну поруку, у супротном „0”.
|===
+210 -48
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-06-18 16:11+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -992,6 +992,14 @@ msgstr "%sReset všech nastavení není povolen"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d volba/volby resetovány, %d volba/volby smazány"
#, fuzzy, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sChyba: nemohu uložit sezení do souboru"
#, fuzzy
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%sChyba: nemohu uložit sezení do souboru"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1018,10 +1026,6 @@ msgstr "%sNení specifikována binárka"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Aktualizuji WeeChat s použitím binárního souboru: \"%s\"..."
#, fuzzy, c-format
msgid "%sUnable to save session in file"
msgstr "%sChyba: nemohu uložit sezení do souboru"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr "***** Chyba: exec selhal (program: \"%s\"), ukončuji WeeChat"
@@ -1816,6 +1820,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -2585,10 +2590,14 @@ msgstr ""
" /unset weechat.color.*"
#, fuzzy
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "aktualizovat WeeChat bez odpojení od serveru"
msgid "[-yes] [<path_to_binary>|-quit]"
#, fuzzy
#| msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[-yes][<cesta_k_binárce>|-quit]"
#, fuzzy
@@ -2598,6 +2607,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -2605,9 +2617,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -2615,15 +2632,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3344,6 +3368,29 @@ msgstr ""
"čárkou oddělený seznam slov pro zvýraznění (neporovnává se velikost písmen, "
"slova mohou začínat nebo končit \"*\" pro částečnou schodu)"
#, fuzzy
#| msgid ""
#| "POSIX extended regular expression used to check if a message has "
#| "highlight or not, at least one match in string must be surrounded by "
#| "delimiters (chars different from: alphanumeric, \"-\", \"_\" and \"|\"), "
#| "regular expression is case insensitive (use \"(?-i)\" at beginning to "
#| "make it case sensitive), examples: \"flashcode|flashy\", \"(?-i)FlashCode|"
#| "flashy\""
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"POSIX rozšířené regulární výrazy používané k kontrole jestli má být zpráva "
"zvýrazněna nebo ne, alespoň jedno nalezení v řetězci musí být obklopeno "
"oddělovači (jiné znaky než: alfanumerické, \"-\", \"_\" a \"|\"), regulární "
"výraz není citlivý na velikost znaků (zkus \"(?-i)\" na začátku k přepnutí "
"na rozeznávání dle velikosti), například: \"flashcode|flashy\", \"(?-"
"i)FlashCode|flashy\""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -5150,6 +5197,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -5182,7 +5231,11 @@ msgid ""
"=core.weechat) || ${buffer.active}==1)\""
msgstr ""
msgid "enable buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
@@ -6474,6 +6527,16 @@ msgstr "%s%s: \"%s\" příkaz nemůže být spuštěn v bufferu serveru"
msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr "%s%s: nemohu nastavit \"neblokovaci\" volbu na soket"
#, fuzzy, c-format
#| msgid "%s%s: unable to create socket"
msgid "%s%s: unable to create DCC"
msgstr "%s%s: nemohu vytvořit soket"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s: nepřipojen k serveru \"%s\"!"
@@ -6958,7 +7021,8 @@ msgstr "ls || list || req|ack [<schopnost> [<schopnost>...]] || clear || end"
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -6973,8 +7037,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
msgid "connect to IRC server(s)"
@@ -8620,6 +8690,11 @@ msgstr ""
"zobrazit v soukromém okně zprávu po tom co se uživatel vráti (po odpojení od "
"serveru)"
#, fuzzy
#| msgid "use same nick color for channel and private"
msgid "display nick change in private"
msgstr "použít stejnou barvu přezdívky pro kanál a soukromý rozhovor"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -8874,6 +8949,12 @@ msgstr "povolit chytrý filtr pro \"nick\" zprávy (změny přezdívek)"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr "povolit chytrý filter pro \"part\" a \"quit\" zprávy"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "enable smart filter for \"join\" messages"
msgid "enable smart filter for \"setname\" messages"
msgstr "povolit chytrý filter pro \"join\" zprávy"
#, fuzzy
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
@@ -8921,8 +9002,9 @@ msgstr "barva přípony přezdívky (přípona je uživatelský řetězec za př
msgid "color for text in account messages"
msgstr "barva textu vezprávách připojení"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "barva textu vezprávách připojení"
msgid "color for text in join messages"
@@ -8935,6 +9017,12 @@ msgstr "barva textu vezprávách připojení"
msgid "color for text in part/quit messages"
msgstr "barva textu ve zprávách odchodu/ukončení"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "color for text in join messages"
msgid "color for text in \"setname\" messages"
msgstr "barva textu vezprávách připojení"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -9488,11 +9576,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s skončil"
#, fuzzy, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sSelhalo odnastavení volby \"%s\""
#| msgid "%s%s%s%s has changed topic for %s%s%s to \"%s%s%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s změnil téma pro %s%s%s na \"%s%s%s\""
#, fuzzy, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%sSelhalo odnastavení volby \"%s\""
#, c-format
@@ -9920,7 +10009,7 @@ msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: vypršel čas pro sasl autentizaci"
#, fuzzy, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s: znovupřipojení k serveru v %d %s, %d %s"
#, c-format
@@ -10127,18 +10216,6 @@ msgstr "%s%s: odpojen od serveru"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s========== konec backlogu (%d řádků) =========="
#, fuzzy
msgid "Log buffers to files"
msgstr "konfigurační soubory"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: nemohu najít jméno souboru masky pro buffer \"%s\", logování pro tento "
"buffer je vypnuto"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: nedostatek paměti"
@@ -10171,6 +10248,18 @@ msgstr "%s\t**** Začátek logu ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Konec logu ****"
#, fuzzy
msgid "Log buffers to files"
msgstr "konfigurační soubory"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: nemohu najít jméno souboru masky pro buffer \"%s\", logování pro tento "
"buffer je vypnuto"
msgid "Logging on buffers:"
msgstr "Loguji buffery:"
@@ -10286,8 +10375,13 @@ msgid ""
"off"
msgstr ""
#, fuzzy
#| msgid ""
#| "automatically save content of buffers to files (unless a buffer disables "
#| "log)"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"automaticky ukládat obsah bufferu do souboru (pokud je zapnuto logování "
"bufferu)"
@@ -10349,6 +10443,34 @@ msgstr ""
"nahrazovací znak pro speciální znaky ve jménu souboru vytvářeného pomocí "
"masky (například dělič adresářů)"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"časová známka použita v logovacích souborech (použijte manuálovou stránku "
@@ -10659,6 +10781,13 @@ msgstr "WeeChat uptime (formát: \"dny:hh:mm:ss\")"
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
#, fuzzy
#| msgid "WeeChat uptime (format: \"days:hh:mm:ss\")"
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr "WeeChat uptime (formát: \"dny:hh:mm:ss\")"
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr ""
@@ -12357,6 +12486,11 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "seznam slovníků %s:"
#, fuzzy
#| msgid "Spell checking is disabled"
msgid "spell checking disabled"
msgstr "Kontrola pravopisu je vypnuta"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s: \"%s\" odebrán"
@@ -12420,7 +12554,7 @@ msgstr "konfigurace pluginu aspell"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr "dictlist || enable <jazyk> || disable || addword [<jazyk>] <slovo>"
@@ -12431,7 +12565,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -12462,7 +12597,11 @@ msgstr "seznam všech podporovaných jazyků aspellem"
msgid "list of installed dictionaries"
msgstr "seznam instalovaných slovníků aspellu"
msgid "comma separated list of dictionaries to use on this buffer"
#, fuzzy
#| msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr "čárkami oddělený seznam slovníků, které použít pro tento buffer"
#, fuzzy, c-format
@@ -12607,10 +12746,17 @@ msgstr "není proměnná"
msgid "creating variable"
msgstr "čtení - proměnná"
#, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
#, fuzzy, c-format
#| msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s běžící povel %s\"%s%s%s\"%s na bufferu %s%s%s"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
#, fuzzy
msgid "Triggers enabled"
msgstr "Seznam trigerů:"
@@ -12860,6 +13006,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -12999,6 +13148,10 @@ msgstr "barva textu pro skupiny v seznamu přezdívek"
msgid "text color for post action flag (in /trigger list)"
msgstr "barva textu pro akce ve vstupní řádce"
#, fuzzy
msgid "text color for trigger context identifier in monitor buffer"
msgstr "barva textu řádku vybraného klienta"
#, fuzzy
msgid "text color for regular expressions"
msgstr "barva textu pro nahrazující text (pro regulární výraz)"
@@ -13159,14 +13312,6 @@ msgstr "%s%s: chyba posílání dat k \"%s\" přes xfer chat"
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr "%s: soubor %s (lokální jméno souboru: %s) bude obnoven na pozici %llu"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: nevalidní bind adresa \"%s\" pro %s"
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: chybí argumenty (%s)"
@@ -13427,6 +13572,14 @@ msgstr "seznam xfer"
msgid "xfer pointer (optional)"
msgstr "ukazatel xfer (volitelné)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: nevalidní bind adresa \"%s\" pro %s"
#, fuzzy, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)"
@@ -13494,3 +13647,12 @@ msgstr "%s%s: vypršel časový limit \"%s\" pro %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)"
#, fuzzy, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sSelhalo odnastavení volby \"%s\""
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "verze WeeChat"
+291 -94
View File
@@ -25,8 +25,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"PO-Revision-Date: 2022-06-20 13:39+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-09-29 10:38+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
"Language: de\n"
@@ -1027,6 +1027,13 @@ msgstr "%sDas Zurücksetzen aller Einstellungen ist nicht zulässig"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d Einstellung(en) wieder hergestellt, %d Einstellung(en) entfernt"
#, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sWeechat-Sitzung kann nicht gespeichert werden (Dateien *.upgrade)"
msgid "WeeChat session saved (files *.upgrade)"
msgstr "WeeChat Sitzung gesichert (Dateien *.upgrade)"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1054,10 +1061,6 @@ msgstr "%skeine Binärdatei angegeben"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Aktualisiere WeeChat mit Binärdatei \"%s\"...."
#, c-format
msgid "%sUnable to save session in file"
msgstr "%sSitzung kann nicht in eine Datei gespeichert werden"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr ""
@@ -2197,6 +2200,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -2264,6 +2268,8 @@ msgstr ""
" delete_previous_char: entfernt vorheriges Zeichen\n"
" delete_next_char: entfernt nächstes Zeichen\n"
" delete_previous_word: entfernt vorheriges Wort\n"
" delete_previous_word_whitespace: vorheriges Wort löschen (bis zum "
"Leerzeichen)\n"
" delete_next_word: entfernt nächstes Wort\n"
" delete_beginning_of_line: entfernt alle Zeichen ab Zeilenanfang bis zum "
"Cursor\n"
@@ -3342,12 +3348,15 @@ msgstr ""
" Alle Farbeinstellungen zurücksetzen:\n"
" /unset -mask weechat.color.*"
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr ""
"WeeChat Binärdatei neu laden, ohne die Verbindung zum Server zu trennen"
"Speichern der WeeChat-Sitzung und laden der WeeChat-Binärdatei, ohne die "
"Verbindung zu Servern zu trennen"
msgid "[-yes] [<path_to_binary>|-quit]"
msgstr "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[-yes] [<path_to_binary>|-save|-quit]"
msgid ""
" -yes: required if option \"weechat.look.confirm_upgrade\" is "
@@ -3355,6 +3364,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -3362,9 +3374,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -3372,15 +3389,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3390,6 +3414,9 @@ msgstr ""
"(Standardeinstellung ist die aktuell ausführbare Datei)\n"
" -dummy: ohne Funktion (dient lediglich dazu, um nicht versehentlich "
"die \"-quit\" Funktion auszuführen)\n"
" -save: speichert nur die aktuelle Sitzung, WeeChat wird nicht "
"beendet oder neu gestartet. DieKonfigurationsdateien werden hierbei nicht "
"gespeichert (falls dies gewünscht wird, nutze vorher /save)\n"
" -quit: trennt *ALLE* Verbindungen, speichert die aktuelle Sitzung "
"und beendet WeeChat, um den aktuellen Zustand später wiederherstellen (siehe "
"unten)\n"
@@ -3404,6 +3431,12 @@ msgstr ""
"einem erfolgten Upgrade findet eine automatische Verbindung zu diesen "
"Servern statt.\n"
"\n"
"Wichtig: Die Verwendung der Option -save kann gefährlich sein. Für ein "
"Standard-Upgrade oder einen Neustart wird empfohlen, nur den /upgrade (oder "
"mit -quit) Befehl zu nutzen.Mit der Option -save kann eine Sitzung "
"regelmäßig gespeichert und dann wiederhergestellt werden,falls Weechat "
"abnormal beendet wird (Stromausfall, Absturz etc.)\n"
"\n"
"Der Upgrade Vorgang besteht aus vier Schritten:\n"
" 1. Sicherung der Sitzung, in Dateien für Core und Erweiterungen (buffers, "
"history, ..)\n"
@@ -3419,13 +3452,20 @@ msgstr ""
" 3. alle Erweiterungen werden ausgeschaltet\n"
" 4. die WeeChat Konfiguration wird gesichert\n"
" 5. WeeChat wird beendet\n"
"Die Sitzung kann zu einem späteren Zeitpunkt wiederhergestellt werden: "
"weechat --upgrade\n"
"\n"
"Mit der Option \"-save\" ist der Ablauf:\n"
" 1. Die Sitzung wird in Dateien (*.upgrade) gesichert, allerdings mit dem "
"Status das IRC und Client Verbindungen unterbrochen sind (es findet aber "
"keine Trennung der Verbindung statt!)\n"
"\n"
"Durch nutzen von -quit oder -save kann eine Sitzung zu einem späteren "
"Zeitpunkt wiederhergestellt werden:weechat --upgrade\n"
"WICHTIG: Die Sitzung muss mit exakt den selben Konfigurationsdateien "
"wiederhergestellt werden (*.conf)\n"
"wiederhergestellt werden (*.conf) und wenn möglich mit der selben Version "
"von WeeChat (oder einer neueren Version).\n"
"Es ist möglich, die WeeChat-Sitzung auf einem anderen Computer "
"wiederherzustellen, wenn Sie den Inhalt der WeeChat Verzeichnisse kopieren "
"(siehe / debug dirs)."
"(siehe /debug dirs)."
msgid "show WeeChat uptime"
msgstr "Zeigt die Uptime von WeeChat an"
@@ -4245,6 +4285,23 @@ msgstr ""
"werden). Schlagwörter können mit \"*\", als Joker, beginnen oder enden; "
"Beispiel: \"test,(?-i)*toto*,flash*\""
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"Erweiterter regulärer POSIX-Ausdruck, der verwendet wird, um jede "
"Hervorhebung von einer Nachricht zu verhindern: Diese Option hat eine höhere "
"Priorität als andere Hervorhebungsoptionen (sofern die Zeichenkette in der "
"Nachricht gefunden wird, die Hervorhebung deaktiviert ist und die "
"andereOptionen ignoriert werden), bei regulären Ausdrücken wird die Groß-/"
"Kleinschreibung nicht beachtet (verwenden Sie \"(?-i)\" am Anfang, um Groß- "
"und Kleinschreibung zu beachten), Beispiele: \"<flash.*>\", \"(?-i)<Flash."
"*>\""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -6336,6 +6393,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -6418,6 +6477,8 @@ msgstr ""
" - ${hotlist}: die Hotlist in der Rohform\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" oder "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = keine, 0 = niedrig, 1 = Nachricht, 2 "
"= private, 3 = Hervorhebungen\n"
" - ${format_lag}: die Verzögerung für einen IRC Server-Buffer, ist leer "
"falls es keine Verzögerung gibt (evaluiert aus Option buflist.format.lag)\n"
" - ${format_tls_version}: Indikator der TLS Version für den Serverbuffer, "
@@ -6465,8 +6526,17 @@ msgstr ""
"\"${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core."
"weechat) || ${buffer.active}==1)\""
msgid "enable buflist"
msgstr "buflist aktivieren"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
"Buflist aktivieren; Es wird empfohlen, diese Option zu verwenden, anstatt "
"nur die Bar zu verstecken, da hiermit auch interne Hooks entfernt werden, "
"die nicht benötigt werden, falls die Leiste ausgeblendet wird; Sie können "
"auch den Befehl \"/buflist toggle\" verwenden oder die "
"Standardtastenbelegung alt+shift+b"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
@@ -8194,6 +8264,17 @@ msgstr ""
"%s%s: lokale Adresse des Server Socket kann nicht aufgelöst werden: Fehler "
"%d %s"
#, c-format
msgid "%s%s: unable to create DCC"
msgstr "%s%s: DCC kann nicht erstellt werden"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
"%s%s: DCC kann nicht erstellt werden, bitte überprüfen Sie, ob das \"xfer\"-"
"Erweiterung geladen ist"
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s: Keine Verbindung zum Server \"%s\"!"
@@ -8684,9 +8765,6 @@ msgstr ""
msgid "configure the \"autojoin\" server option"
msgstr "Konfigurieren der Serveroption \"autojoin\""
#| msgid ""
#| "add [<channel1> [<channel2>...]] || addraw <channel1>[,<channel2>...] "
#| "[<key1>[,<key2>...]] || del [<channel1> [<channel2>...]] || save || sort"
msgid ""
"add [<channel1> [<channel2>...]] || addraw <channel1>[,<channel2>...] "
"[<key1>[,<key2>...]] || del [<channel1> [<channel2>...]] || apply || sort"
@@ -8694,28 +8772,6 @@ msgstr ""
"add [<channel1> [<channel2>...]] || addraw <channel1>[,<channel2>...] "
"[<key1>[,<key2>...]] || del [<channel1> [<channel2>...]] || apply || sort"
#| msgid ""
#| " add: add current channel or a list of channels (with optional keys) "
#| "to the autojoin option; if you are on the channel and the key is not "
#| "provided, the key is read in the channel\n"
#| " addraw: use the IRC raw format (same as /join command): all channels "
#| "separated by commas, optional keys separated by commas\n"
#| " del: delete current channel or a list of channels from the autojoin "
#| "option\n"
#| "channel: channel name\n"
#| " key: key for the channel\n"
#| " save: save currently joined channels in the autojoin option\n"
#| " sort: sort alphabetically channels in the autojoin option\n"
#| "\n"
#| "Examples:\n"
#| " /autojoin add\n"
#| " /autojoin add #test\n"
#| " /autojoin add #chan1 #chan2\n"
#| " /autojoin addraw #chan1,#chan2,#chan3 key1,key2\n"
#| " /autojoin del\n"
#| " /autojoin del #chan1\n"
#| " /autojoin save\n"
#| " /autojoin sort"
msgid ""
" add: add current channel or a list of channels (with optional keys) to "
"the autojoin option; if you are on the channel and the key is not provided, "
@@ -8792,7 +8848,8 @@ msgstr "ls || list || req|ack [<capability> [<capability>...]] || end"
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -8807,8 +8864,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
" ls: führt alle Fähigkeiten auf die vom Server unterstützt werden\n"
" list: führt alle Fähigkeiten auf die aktuell genutzt werden\n"
@@ -8828,8 +8891,14 @@ msgstr ""
"Server mit der Option irc.server.xxx.capabilities).\n"
"\n"
"Beispiele:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" zeigt unterstützte und aktivierte Funktionen an:\n"
" /cap\n"
" Fähigkeiten multi-prefix und away-notify anfordern:\n"
" /cap req multi-prefix away-notify\n"
" Fähigkeit extended-join anfordern, Fähigkeit multi-prefix entfernen:\n"
" /cap req extended-join -multi-prefix\n"
" Fähigkeit away-notify entfernen\n"
" /cap req -away-notify"
msgid "connect to IRC server(s)"
msgstr "Mit IRC-Server(n) verbinden"
@@ -10742,6 +10811,9 @@ msgstr ""
"es wird bei einer privaten Unterhaltung eine Mitteilung ausgegeben falls der "
"User wieder zurück ist (falls der User sich beim Server abgemeldet hat)"
msgid "display nick change in private"
msgstr "Nickänderung im privaten Buffer anzeigen"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -11080,6 +11152,10 @@ msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
"aktiviert einen intelligenten Filter für \"part\" und \"quit\" Nachrichten"
#. TRANSLATORS: please do not translate "setname"
msgid "enable smart filter for \"setname\" messages"
msgstr "aktiviert einen intelligenten Filter für \"setname\" Nachrichten"
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
"aktiviert die Erstellung von temporären Servern mit dem Befehl /connect"
@@ -11132,8 +11208,9 @@ msgstr ""
msgid "color for text in account messages"
msgstr "Textfarbe für \"account\" Nachrichten"
msgid "color for text in chghost messages"
msgstr "Textfarbe in der chghost Nachrichten dargestellt werden"
#. TRANSLATORS: please do not translate "chghost"
msgid "color for text in \"chghost\" messages"
msgstr "Textfarbe in der \"chghost\" Nachrichten dargestellt werden"
msgid "color for text in join messages"
msgstr ""
@@ -11150,6 +11227,10 @@ msgstr ""
"Textfarbe in der die Meldungen für das Verlassen/Beenden eines Kanals "
"angezeigt werden soll"
#. TRANSLATORS: please do not translate "setname"
msgid "color for text in \"setname\" messages"
msgstr "Textfarbe in der \"setname\" Nachrichten dargestellt werden"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -11757,12 +11838,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s hat den IRC verlassen"
#, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sRealname wurde gesetzt auf: %s"
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s hat den Realnamen auf %s\"%s%s%s\"%s geändert"
#, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgstr "%sRealname von %s%s%s wurde auf \"%s\" gesetzt"
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%s%sIhr richtiger Name wurde auf %s\"%s%s%s\"%s gesetzt"
#, c-format
msgid "%s%s: \"%s\" command received without channel"
@@ -12192,10 +12273,9 @@ msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: Zeitüberschreitung bei SASL Authentifizierung"
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr ""
"%s%s: Verzögerung ist zu hoch. Es wird eine neue Verbindung zum Server "
"%s%s%s hergestellt"
"%s%s: Verzögerung ist hoch. Die Verbindung zum Server %s%s%s wird abgebrochen"
#, c-format
msgid "%s%s: reconnecting to server in %d %s, %d %s"
@@ -12409,17 +12489,6 @@ msgstr "%s%s: vom Server getrennt"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s========== Ende des Verlaufspeichers (%d Zeilen) =========="
msgid "Log buffers to files"
msgstr "Speichert Buffer in eine Datei"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: Es existiert keine Dateinamen-Maske für den Buffer \"%s\", "
"Protokollierung ist für diesen Buffer ausgeschaltet"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: nicht genügend Speicher"
@@ -12455,6 +12524,17 @@ msgstr "%s\t**** Beginn der Protokoll-Datei ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Ende der Protokoll-Datei ****"
msgid "Log buffers to files"
msgstr "Speichert Buffer in eine Datei"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: Es existiert keine Dateinamen-Maske für den Buffer \"%s\", "
"Protokollierung ist für diesen Buffer ausgeschaltet"
msgid "Logging on buffers:"
msgstr "Protokollieren der Buffer:"
@@ -12586,10 +12666,12 @@ msgstr ""
"Option logger.file.color_lines = off ist"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"speichert automatisch den Inhalt eines Buffers in eine Datei (sofern das "
"Protokollieren für den Buffer nicht deaktiviert sein sollte)"
"Protokollieren für den Buffer nicht deaktiviert sein sollte); Falls "
"deaktiviert, wird die Protokollierung für alle Buffer deaktiviert"
msgid ""
"use ANSI color codes in lines written in log files and display backlog lines "
@@ -12662,6 +12744,76 @@ msgstr ""
"Ersatzzeichen für Dateinamen, falls der Dateiname Sonderzeichen beinhaltet "
"(z.B. das Trennzeichen bei Verzeichnissen \"/\")"
#| msgid ""
#| "compression of messages sent to clients with \"weechat\" protocol: 0 = "
#| "disable compression, 1 = low compression / fast ... 100 = best "
#| "compression / slow; the value is a percentage converted to 1-9 for zlib "
#| "and 1-19 for zstd; the default value is recommended, it offers a good "
#| "compromise between compression and speed"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
"Komprimierungsstufe für rotierende Protokolldateien (mit Dateierweiterung"
" „.1“, „.2“,"
"etc.), falls die Option logger.file.rotation_compression_type aktiviert ist:"
" 1 = niedrige"
"Komprimierung / schnell ... 100 = beste Komprimierung / langsam; Der Wert des"
" Prozentsatzes "
"wird umgewandelt in 1-9 für gzip und 1-19 für zstd; der Standardwert wird"
" hierbei"
"empfohlen, denn er bietet einen guten Kompromiss zwischen Komprimierung und"
" Geschwindigkeit"
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
"Komprimierungstyp für rotierende Protokolldateien; wenn \"none\" genutzt"
" wird, findet "
"keine Komprimierung der Protokolldateien statt; WARNUNG: wenn die Rotation"
" mit einer "
"anderen Stufe der Komprimierung (oder gar keiner Komprimierung) aktiviert"
" wurde, "
"muss zuerst die Logger-Erweiterung beendet werden., dann de-komprimieren Sie"
" die Dateien "
"mit dem neuen Typ, danach muss die Option in der Datei logger.conf angepasst"
" werden, "
"bevor die Logger-Erweiterung neu geladen wird"
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
"Wenn diese Größe erreicht ist, wird eine Rotation der Protokolldateien"
" durchgeführt: die"
"vorhandene rotierte Protokolldateien werden umbenannt (.1 wird zu .2, .2 wird"
" zu .3 usw.)."
"Die aktuelle Datei erhält wird umbenannt und erhält .1 als Erweiterung; eine"
" ganze Zahl mit"
"Suffix ist erlaubt: b = Bytes (Standard, wenn keine Einheit angegeben ist), k"
" = Kilobytes, m ="
"Megabyte, g = Gigabyte, t = Terabyte; Beispiel: \"2g\" bewirkt eine Rotation"
"sobald die Dateigröße > 2.000.000.000 Byte ist; wenn auf „0“ gesetzt, erfolgt"
" keine Rotation"
"der Dateien (unbegrenzte Protokollgröße); WARNUNG: Bevor Sie diese Option"
" ändern,"
"sollte sie zuerst den Komprimierungstyp über die Option logger.file festlegen."
"rotation_compression_type"
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"Zeitstempel in Protokoll-Datei nutzen (siehe man strftime, welche "
@@ -12966,6 +13118,13 @@ msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
"\"days\" (Anzahl der Tage) oder \"seconds\" (Anzahl der Sekunden) (optional)"
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
"WeeChat-Betriebszeit für den aktuellen Prozess (Upgrades mit /upgrade "
"Befehlwerden ignoriert) (Format: \"Tage:hh:mm:ss\")"
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr "generiert ein Time-based One-Time Passwort (TOTP)"
@@ -14904,6 +15063,9 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "%s Wörterbücher:"
msgid "spell checking disabled"
msgstr "Rechtschreibprüfung deaktiviert"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s: \"%s\" entfernt"
@@ -14966,10 +15128,10 @@ msgid "spell plugin configuration"
msgstr "Konfiguration für spell-Erweiterung"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgid ""
@@ -14978,7 +15140,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -15000,7 +15163,8 @@ msgstr ""
"listdict: die, auf dem System, installierten Wörterbücher werden "
"aufgelistet\n"
" setdict: Wörterbuch für den aktuellen Buffer einstellen (mehrere "
"Wörterbücher müssen durch Kommata getrennt werden)\n"
"Wörterbücher müssen durch Kommata getrennt werden (spezieller Wert \"-\" "
"deaktiviert die Rechtschreibprüfung für den aktuellen Buffer))\n"
" deldict: Wörterbuch für den aktuellen Buffer entfernen\n"
" addword: fügt ein Wort in das persönliche Wörterbuch hinzu\n"
"\n"
@@ -15025,10 +15189,13 @@ msgstr "Liste aller Sprachen die unterstützt werden"
msgid "list of installed dictionaries"
msgstr "Auflistung der installierten Wörterbücher"
msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr ""
"durch Kommata getrennte Liste von Wörterbüchern, welche in diesem Buffer "
"genutzt werden sollen"
"durch Komma getrennte Liste von Wörterbüchern, die in diesem Buffer "
"verwendet werden sollen (spezieller Wert \"-\" deaktiviert die "
"Rechtschreibprüfung für diesen Buffer)"
#, c-format
msgid "%s%s: error creating spell dictionary \"%s\" => \"%s\""
@@ -15194,8 +15361,16 @@ msgid "creating variable"
msgstr "erstelle Variable"
#, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s auszuführender Befehl %s\"%s%s%s\"%s in Buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s%lu%s führe Befehl %s\"%s%s%s\"%s für Buffer %s%s%s aus"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
"%s%lu%s verstrichen: init=%.6fs, Bedingungen=%.6fs, regex=%.6fs, "
"Befehl=%.6fs, Total=%.6fs"
msgid "Triggers enabled"
msgstr "Trigger aktiviert"
@@ -15454,6 +15629,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -15521,7 +15699,7 @@ msgstr ""
" show: zeigt detaillierte Informationen zu einem Trigger (inklusive "
"einer kleinen Statistik)\n"
" del: entfernt einen Trigger\n"
" -all: führt eine Aktion aus, die alle Trigger beinhaltet\n"
" -all: führt eine Aktion aus, die alle Trigger betrifft\n"
" restore: stellt Trigger mit Standardwerten wieder her (funktioniert nur "
"bei vorgegebenen Triggern)\n"
" default: stellt die standardmäßigen Trigger wieder her\n"
@@ -15546,7 +15724,7 @@ msgstr ""
"Beispiele (die standardmäßig verfügbaren Trigger kann man sich mit \"/"
"trigger listdefault\" anzeigen lassen):\n"
" fügt einer Nachricht die Textattribute *fett*, _unterstrichen_ und /"
"kursiv/ hinzu:\n"
"kursiv/ hinzu (nur in User-Nachrichten):\n"
" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" "
"\"==\\*([^ ]+)\\*==*${color:bold}${re:1}${color:-bold}*== "
"==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/"
@@ -15558,6 +15736,10 @@ msgstr ""
"100\" \"\" \"/bar show nicklist\"\n"
" speichert die Konfiguration jede Stunde ab:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" speichert, ohne Ausgabe von Text, eine Weechat-Sitzung um Mitternach "
"(siehe /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" öffnet den Trigger Monitor und zeigt ausschließlich modifier und Trigger "
"an, die mit \"resize\" im Namen beginnen:\n"
" /trigger monitor @modifier,resize*"
@@ -15711,6 +15893,9 @@ msgstr ""
"Textfarbe für das Flag welches anzeigt welche nachfolgende Aktion ausgeführt "
"werden soll (in /trigger list)"
msgid "text color for trigger context identifier in monitor buffer"
msgstr "Textfarbe für Trigger-Kontextkennung im Monitorbuffer"
msgid "text color for regular expressions"
msgstr "Textfarbe für reguläre Ausdrücke"
@@ -15884,15 +16069,6 @@ msgstr "%s: sende Chatanforderung an: %s (%s.%s)"
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr "%s: Datei %s (lokaler Dateiname: %s) wird an Position %llu fortgesetzt"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
"%s%s: Adresse \"%s\" aufgelöst aufgrund einer größeren sockaddr als erwartet"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: ungültige Adresse \"%s\": Fehler %d %s"
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: fehlende Argumente (%s)"
@@ -16175,6 +16351,15 @@ msgstr "Transferliste"
msgid "xfer pointer (optional)"
msgstr "Transferpointer (optional)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
"%s%s: Adresse \"%s\" aufgelöst aufgrund einer größeren sockaddr als erwartet"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: ungültige Adresse \"%s\": Fehler %d %s"
#, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: Pipe kann nicht erstellt werden: Fehler %d %s"
@@ -16246,3 +16431,15 @@ msgstr "%s%s: Zeitüberschreitung für \"%s\" mit %s"
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr ""
"%s%s: Verbindung konnte nicht hergestellt werden: unerwarteter Fehler (%d)"
#~ msgid "enable buflist"
#~ msgstr "buflist aktivieren"
#, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sRealname von %s%s%s wurde auf \"%s\" gesetzt"
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "WeeChat-Version"
+201 -46
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-06-18 16:11+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1042,6 +1042,16 @@ msgstr "%sNo esta permitido reiniciar todas las opciones"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d opción(es) reiniciada(s), %d opción(es) removida(s)"
#, fuzzy, c-format
#| msgid "%sUnable to save session in file"
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sError: no se pudo guardar la sesión"
#, fuzzy
#| msgid "%sUnable to save session in file"
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%sError: no se pudo guardar la sesión"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1069,10 +1079,6 @@ msgstr "%sNingún ejecutable especificado"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Actualizando WeeChat con el archivo binario: \"%s\"..."
#, c-format
msgid "%sUnable to save session in file"
msgstr "%sError: no se pudo guardar la sesión"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr "***** Error: el ejecutable falló (programa: \"%s\"), cerrando WeeChat"
@@ -2218,6 +2224,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -3067,10 +3074,16 @@ msgstr ""
" reiniciar todas las opciones de colores:\n"
" /unset weechat.color.*"
msgid "reload the WeeChat binary without disconnecting from servers"
#, fuzzy
#| msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "reiniciar WeeChat sin desconectarse de los servidores"
msgid "[-yes] [<path_to_binary>|-quit]"
#, fuzzy
#| msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[-yes] [<ruta_al_ejecutable>|-quit]"
#, fuzzy
@@ -3080,6 +3093,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -3087,9 +3103,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -3097,15 +3118,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3846,6 +3874,21 @@ msgstr ""
"sensible), las palabras pueden empezar o terminar con \"*\" para una "
"concordancia parcial; ejemplo: \"prueba,(?-i)*toto*,flash*\""
#, fuzzy
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"expresión regular usada para ver si un mensaje tiene un resalte o no, al "
"menos una coincidencia en el texto debe estar rodeado por letras "
"(alfanumérico, \"-\", \"_\" o \"|\"), la expresión regular es insensible a "
"las mayúsculas (usa \"(?-i)\" al principio para cambiarlo), ejemplos: "
"\"FlashCode|flashy\", \"(?-i)Flascode|flashy\""
#, fuzzy
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
@@ -5709,6 +5752,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -5741,7 +5786,11 @@ msgid ""
"=core.weechat) || ${buffer.active}==1)\""
msgstr ""
msgid "enable buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
@@ -7049,6 +7098,16 @@ msgstr "%s%s: el comando \"%s\" no puede ejecutarse en el buffer del servidor"
msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr "%s%s: no es posible configurar la opción \"nonblock\" para el socket"
#, fuzzy, c-format
#| msgid "%s%s: unable to create socket"
msgid "%s%s: unable to create DCC"
msgstr "%s%s: no es posible crear el socket"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s: ¡no conectado al servidor \"%s\"!"
@@ -7534,7 +7593,8 @@ msgstr ""
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -7549,8 +7609,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
msgid "connect to IRC server(s)"
@@ -9229,6 +9295,11 @@ msgstr ""
"mostrar un mensaje en privado cuando el usuario esta de vuelta (después de "
"salir del servidor)"
#, fuzzy
#| msgid "use same nick color for channel and private"
msgid "display nick change in private"
msgstr "usar el mismo color de apodo en el canal y conversaciones privadas"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -9511,6 +9582,12 @@ msgstr "habilitar el filtro inteligente para mensajes \"nick\""
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr "habilitar el filtro inteligente para mensajes \"part\" y \"quit\""
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "enable smart filter for \"join\" messages"
msgid "enable smart filter for \"setname\" messages"
msgstr "habilitar el filtro inteligente para mensajes \"join\""
#, fuzzy
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
@@ -9562,8 +9639,9 @@ msgstr ""
msgid "color for text in account messages"
msgstr "color para el texto en mensajes de unión"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "color para el texto en mensajes de unión"
msgid "color for text in join messages"
@@ -9576,6 +9654,12 @@ msgstr "color para el texto en mensajes de unión"
msgid "color for text in part/quit messages"
msgstr "color para el texto en mensajes de salida/abandono"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "color for text in join messages"
msgid "color for text in \"setname\" messages"
msgstr "color para el texto en mensajes de unión"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
#, fuzzy
msgid ""
@@ -10154,11 +10238,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s ha salido"
#, fuzzy, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sNo se pudo deshacer la opción \"%s\""
#| msgid "%s%s%s%s has changed topic for %s%s%s to \"%s%s%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s ha cambiado el tema para %s%s%s a \"%s%s%s\""
#, fuzzy, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%sNo se pudo deshacer la opción \"%s\""
#, c-format
@@ -10581,7 +10666,7 @@ msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: la autenticación SASL agotó el tiempo de espera"
#, fuzzy, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s: el retraso es alto, desconectando del servidor..."
#, c-format
@@ -10794,17 +10879,6 @@ msgstr "%s%s: desconectado del servidor"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s========== Fin del último registro (%d líneas) =========="
msgid "Log buffers to files"
msgstr "Guardar registro de buffers"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: imposible encontrar la máscara del nombre del archivo para el buffer "
"\"%s\", registro desactivado para este buffer"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: no hay suficiente memoria"
@@ -10837,6 +10911,17 @@ msgstr "%s\t**** Comienzo del registro ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Fin del registro ****"
msgid "Log buffers to files"
msgstr "Guardar registro de buffers"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: imposible encontrar la máscara del nombre del archivo para el buffer "
"\"%s\", registro desactivado para este buffer"
msgid "Logging on buffers:"
msgstr "Guardando registro en los buffers:"
@@ -10956,8 +11041,13 @@ msgid ""
"off"
msgstr ""
#, fuzzy
#| msgid ""
#| "automatically save content of buffers to files (unless a buffer disables "
#| "log)"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"automáticamente guardar el contenido del buffer a los archivos (al menos que "
"el buffer desactive el registro)"
@@ -11022,6 +11112,34 @@ msgstr ""
"carácter de reemplazo para caracteres especiales en el nombre de archivo "
"construido desde una máscara (como el delimitador de directorios)"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"formato de hora en el registro (ver el manual de strftime para los "
@@ -11328,6 +11446,11 @@ msgstr ""
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr ""
@@ -12962,6 +13085,10 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "Lista de diccionarios %s:"
#, fuzzy
msgid "spell checking disabled"
msgstr "Aspell desactivado"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s: \"%s\" eliminado"
@@ -13027,7 +13154,7 @@ msgstr "configuración del plugin aspell"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <idioma> || deldict || addword "
@@ -13040,7 +13167,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -13076,7 +13204,11 @@ msgstr "lista de lenguajes soportados para aspell"
msgid "list of installed dictionaries"
msgstr "lista de scripts instalados (desde el repositorio)"
msgid "comma separated list of dictionaries to use on this buffer"
#, fuzzy
#| msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr "lista separada por comas de diccionarios para usar en este buffer"
#, fuzzy, c-format
@@ -13228,9 +13360,15 @@ msgid "creating variable"
msgstr "lectura - variable"
#, fuzzy, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "Ejecutando el comando: \"%s\""
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
#, fuzzy
msgid "Triggers enabled"
msgstr "Filtro \"%s\" activado"
@@ -13481,6 +13619,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -13619,6 +13760,11 @@ msgstr "color para grupos en la lista de apodos"
msgid "text color for post action flag (in /trigger list)"
msgstr "color para acciones en la línea de entrada"
#, fuzzy
#| msgid "text color for selected line in script buffer"
msgid "text color for trigger context identifier in monitor buffer"
msgstr "color del texto para la línea seleccionada en el buffer de scripts"
msgid "text color for regular expressions"
msgstr "color para expresiones regulares"
@@ -13781,14 +13927,6 @@ msgstr ""
"%s: archivo %s (nombre del archivo local: %s) será resumido desde la "
"posición %llu"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: dirección inválida \"%s\": error %d %s"
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: argumentos faltantes (%s)"
@@ -14048,6 +14186,14 @@ msgstr "lista de transferencias"
msgid "xfer pointer (optional)"
msgstr "puntero del xfer (opcional)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: dirección inválida \"%s\": error %d %s"
#, fuzzy, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: no es posible crear la tubería"
@@ -14118,3 +14264,12 @@ msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: no es posible conectarse: error (%d)"
#, fuzzy, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sNo se pudo deshacer la opción \"%s\""
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "versión de WeeChat"
+274 -69
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"PO-Revision-Date: 2022-06-18 16:12+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-09-28 20:51+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -1006,6 +1006,13 @@ msgstr "%sLa réinitialisation de toutes les options n'est pas autorisée"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d option(s) réinitialisée(s), %d option(s) supprimée(s)"
#, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sImpossible de sauvegarder la session WeeChat (fichiers *.upgrade)"
msgid "WeeChat session saved (files *.upgrade)"
msgstr "Session WeeChat sauvegardée (fichiers *.upgrade)"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1033,10 +1040,6 @@ msgstr "%sPas de binaire spécifié"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Mise à jour de WeeChat avec le fichier binaire : \"%s\"..."
#, c-format
msgid "%sUnable to save session in file"
msgstr "%sImpossible de sauvegarder la session dans le fichier"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr "***** Erreur : exec a échoué (programme : \"%s\"), sortie de WeeChat"
@@ -2152,6 +2155,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -2220,6 +2224,8 @@ msgstr ""
" delete_previous_char : effacer le caractère précédent\n"
" delete_next_char : effacer le caractère suivant\n"
" delete_previous_word : effacer le mot précédent\n"
" delete_previous_word_whitespace : effacer le mot précédent (jusqu'à un "
"espace)\n"
" delete_next_word : effacer le mot suivant\n"
" delete_beginning_of_line : effacer du début de la ligne jusqu'au curseur\n"
" delete_end_of_line : effacer du curseur jusqu'à la fin de la ligne\n"
@@ -3256,11 +3262,15 @@ msgstr ""
" réinitialiser toutes les options de couleur :\n"
" /unset -mask weechat.color.*"
msgid "reload the WeeChat binary without disconnecting from servers"
msgstr "relancer le binaire WeeChat sans se déconnecter des serveurs"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr ""
"sauvegarder la session WeeChat et relancer le binaire WeeChat sans se "
"déconnecter des serveurs"
msgid "[-yes] [<path_to_binary>|-quit]"
msgstr "[-yes] [<chemin_vers_binaire>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[-yes] [<chemin_vers_binaire>|-save|-quit]"
msgid ""
" -yes: required if option \"weechat.look.confirm_upgrade\" is "
@@ -3268,6 +3278,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -3275,9 +3288,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -3285,15 +3303,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3303,8 +3328,12 @@ msgstr ""
"courant)\n"
" -dummy : ne rien faire (option utilisée pour éviter une "
"complétion accidentelle avec \"-quit\")\n"
" -quit : fermer *TOUTES* les connexions, sauver la session et "
"quitter, ce qui rend possible une restauration différée (voir ci-dessous)\n"
" -save : sauvegarder seulement la session, ne pas quitter ni "
"relancer WeeChat ; les fichiers de configuration ne sont pas sauvegardés (si "
"besoin vous pouvez utiliser /save avant cette commande)\n"
" -quit : fermer *TOUTES* les connexions, sauvegarder la session "
"et quitter, ce qui rend possible une restauration différée (voir ci-"
"dessous)\n"
"\n"
"Cette commande met à jour et recharge une session de WeeChat qui tourne. Le "
"nouveau binaire WeeChat doit avoir été compilé ou installé via un "
@@ -3314,6 +3343,12 @@ msgstr ""
"rechargement de session SSL n'est pas possible actuellement avec GnuTLS. Il "
"y a une reconnexion automatique après la mise à jour.\n"
"\n"
"Important : l'utilisation de l'option -save peut être dangereuse, il est "
"recommandé d'utiliser seulement /upgrade (ou avec -quit) pour une mise à "
"jour standard et un redémarrage ; l'option -save peut être utilisée pour "
"sauvegarder régulièrement la session et la restaurer en cas de sortie "
"anormale (panne de courant, crash, etc.).\n"
"\n"
"Le processus de mise à jour comporte 4 étapes :\n"
" 1. sauvegarder la session pour le cœur et les extensions (tampons, "
"historique, ...)\n"
@@ -3322,16 +3357,23 @@ msgstr ""
" 3. sauvegarder la configuration WeeChat (weechat.conf)\n"
" 4. exécuter le nouveau binaire WeeChat et recharger la session.\n"
"\n"
"Avec l'option \"-quit\", le processus est légèrement différent :\n"
"Avec l'option \"-quit\", le processus est le suivant :\n"
" 1. fermer *TOUTES* les connexions\n"
" 2. sauvegarder la session (fichiers *.upgrade)\n"
" 3. décharger les extensions\n"
" 4. sauvegarder la configuration WeeChat\n"
" 5. quitter WeeChat\n"
"Et plus tard vous pouvez restaurer la session avec la commande : weechat --"
"upgrade\n"
"\n"
"Avec l'option \"-save\", le processus est le suivant :\n"
" 1. sauvegarder la session (fichiers *.upgrade) avec un état déconnecté "
"pour les serveurs IRC et les clients Relay (mais aucune déconnexion n'est "
"faite)\n"
"\n"
"Avec \"-quit\" ou \"-save\", vous pouvez restaurer la session plus tard avec "
"cette commande : weechat --upgrade\n"
"IMPORTANT : vous devez restaurer la session avec exactement la même "
"configuration (fichiers *.conf).\n"
"configuration (fichiers *.conf) et si possible la même version de WeeChat "
"(ou une plus récente).\n"
"Il est également possible de restaurer la session WeeChat sur une autre "
"machine si vous y copiez le contenu des répertoires personnels de WeeChat "
"(voir /debug dirs)."
@@ -4132,6 +4174,21 @@ msgstr ""
"terminer par \"*\" pour une comparaison partielle ; exemple : \"test,(?-"
"i)*toto*,flash*\""
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"expression régulière POSIX étendue utilisée pour empêcher un highlight sur "
"un message : cette option a une priorité plus élevée sur les autres options "
"de highlight (si la chaîne est trouvée dans le message, le highlight est "
"désactivé et les autres options sont ignorées), l'expression régulière est "
"insensible à la casse (utilisez \"(?-i)\" au début pour la rendre sensible à "
"la casse), exemples : \"<flash.*>\", \"(?-i)<Flash.*>\""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -6196,6 +6253,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -6275,6 +6334,8 @@ msgstr ""
" - ${hotlist} : la hotlist brute\n"
" - ${hotlist_priority} : \"none\", \"low\", \"message\", \"private\" ou "
"\"highlight\"\n"
" - ${hotlist_priority_number} : -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag} : le lag pour un tampon de serveur IRC, vide s'il n'y a "
"pas de lag (évaluation de l'option buflist.format.lag)\n"
" - ${format_tls_version}: indicateur de la version de TLS pour le serveur "
@@ -6322,8 +6383,17 @@ msgstr ""
"fusionnés avec le tampon \"core\" : \"${buffer.hidden}==0 && ((${type}!"
"=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)\""
msgid "enable buflist"
msgstr "activer buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
"activer buflist ; il est recommandé d'utiliser cette option plutôt que de "
"juste cacher la barre car cela supprime également des hooks internes qui ne "
"sont plus nécessaires lorsque la barre est cachée ; vous pouvez aussi "
"utiliser la commande \"/buflist toggle\" ou la touche par défaut key "
"alt+shift+b"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
@@ -8026,6 +8096,17 @@ msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr ""
"%s%s : impossible de résoudre l'adresse locale du socket : erreur %d %s"
#, c-format
msgid "%s%s: unable to create DCC"
msgstr "%s%s : impossible de créer le DCC"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
"%s%s : impossible de créer le DCC, merci de vérifier que l'extension "
"\"xfer\" est bien chargée"
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s : non connecté au serveur \"%s\" !"
@@ -8595,7 +8676,8 @@ msgstr "ls || list || req|ack [<capacité> [<capacité>...]] || end"
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -8610,12 +8692,19 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
" ls : lister les capacités supportées par le serveur\n"
" list : lister les capacités actuellement activées\n"
" req : demander une capacité\n"
" req : demander une nouvelle capacité ou supprimer une capacité (si elle "
"commence par \"-\", par exemple : \"-multi-prefix\")\n"
" ack : accuser réception de capacités qui nécessitent un accusé de "
"réception du client\n"
" end : terminer la négociation de capacité\n"
@@ -8631,8 +8720,14 @@ msgstr ""
"l'option irc.server.xxx.capabilities).\n"
"\n"
"Exemples :\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" afficher les capacités supportées et activées :\n"
" /cap\n"
" demander les capacités multi-prefix et away-notify :\n"
" /cap req multi-prefix away-notify\n"
" demander la capacité extended-join, supprimer la capacité multi-prefix :\n"
" /cap req extended-join -multi-prefix\n"
" supprimer la capacité away-notify :\n"
" /cap req -away-notify"
msgid "connect to IRC server(s)"
msgstr "se connecter à un/plusieurs serveur(s) IRC"
@@ -10504,6 +10599,9 @@ msgstr ""
"afficher un message en privé lorsque l'utilisateur est de retour (après "
"avoir quitté le serveur)"
msgid "display nick change in private"
msgstr "afficher le changement de pseudo en privé"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -10834,6 +10932,10 @@ msgstr ""
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr "activer le filtre intelligent pour les messages \"part\" et \"quit\""
#. TRANSLATORS: please do not translate "setname"
msgid "enable smart filter for \"setname\" messages"
msgstr "activer le filtre intelligent pour les messages \"setname\""
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
"activer l'ajout automatique des serveurs temporaires avec la commande /"
@@ -10883,8 +10985,9 @@ msgstr ""
msgid "color for text in account messages"
msgstr "couleur pour le texte dans les messages account"
msgid "color for text in chghost messages"
msgstr "couleur pour le texte dans les messages chghost"
#. TRANSLATORS: please do not translate "chghost"
msgid "color for text in \"chghost\" messages"
msgstr "couleur pour le texte dans les messages \"chghost\""
msgid "color for text in join messages"
msgstr "couleur pour le texte dans les messages join"
@@ -10895,6 +10998,10 @@ msgstr "couleur pour le texte dans les messages kick/kill"
msgid "color for text in part/quit messages"
msgstr "couleur pour le texte dans les messages part/quit"
#. TRANSLATORS: please do not translate "setname"
msgid "color for text in \"setname\" messages"
msgstr "couleur pour le texte dans les messages \"setname\""
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -11485,12 +11592,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s a quitté"
#, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sVotre nom réel a été défini à \"%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s a changé le nom réel en %s\"%s%s%s\"%s"
#, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgstr "%sLe nom réel de %s%s%s a été défini à \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%s%sVotre nom réel a été défini à %s\"%s%s%s\"%s"
#, c-format
msgid "%s%s: \"%s\" command received without channel"
@@ -11911,8 +12018,8 @@ msgid "%s%s: SASL authentication timeout"
msgstr "%s%s : délai d'authentification SASL dépassé"
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgstr "%s%s : le lag est élevé, reconnexion au serveur %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s : le lag est élevé, connexion du serveur %s%s%s"
#, c-format
msgid "%s%s: reconnecting to server in %d %s, %d %s"
@@ -12120,17 +12227,6 @@ msgstr "%s%s : déconnecté du serveur"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s========== Fin de l'historique (%d lignes) =========="
msgid "Log buffers to files"
msgstr "Enregistrement des tampons dans des fichiers"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s : impossible de trouver le masque de nom de fichier pour le tampon "
"\"%s\", l'enregistrement est désactivé pour ce tampon"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s : pas assez de mémoire"
@@ -12164,6 +12260,17 @@ msgstr "%s\t**** Début du log ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Fin du log ****"
msgid "Log buffers to files"
msgstr "Enregistrement des tampons dans des fichiers"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s : impossible de trouver le masque de nom de fichier pour le tampon "
"\"%s\", l'enregistrement est désactivé pour ce tampon"
msgid "Logging on buffers:"
msgstr "Enregistrement des tampons :"
@@ -12288,10 +12395,12 @@ msgstr ""
"logger.file.color_lines est désactivée"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"sauve automatiquement le contenu des tampons dans des fichiers (sauf si un "
"tampon désactive le log)"
"tampon désactive le log) ; si désactivé, l'enregistrement est désactivé sur "
"tous les tampons"
msgid ""
"use ANSI color codes in lines written in log files and display backlog lines "
@@ -12368,6 +12477,56 @@ msgstr ""
"caractère de remplacement dans le nom de fichier construit avec le masque "
"(comme le délimiteur de répertoire)"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
"niveau de compression pour les fichiers de log qui tournent (avec extension "
"\".1\", \".2\", etc.), si l'option logger.file.rotation_compression_type est "
"activée ; 1 = peu de compression / rapide ... 100 = meilleure compression / "
"lent ; la valeur est un pourcentage converti de 1 à 9 pour gzip et de 1 à 19 "
"pour zstd ; la valeur par défaut est recommandée, elle offre un bon "
"compromis compression/vitesse"
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
"type de compression pour les fichiers de log qui tournent ; si défini à "
"\"none\", les fichiers de logs qui tournent ne sont pas compressés ; "
"ATTENTION : si la rotation est activée avec un autre type de compression (ou "
"pas de compression), vous devez d'abord décharger l'extension logger, "
"compresser les fichiers avec le nouveau type (ou décompresser les fichiers), "
"puis changer l'option dans logger.conf, puis charger l'extension logger"
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
"lorsque cette taille est atteinte, une rotation des fichiers est effectuée : "
"les fichiers de log existants sont renommés (.1 devient .2, .2 devient .3, "
"etc.) et le fichier courant est renommé avec l'extension .1 ; un nombre "
"entier avec un suffixe est accepté : b = octets (par défaut si pas d'unité "
"spécifiée), k = kilo-octets, m = méga-octets, g = giga-octets, t = téra-"
"octets ; exemple : \"2g\" provoque une rotation si la taille du fichier est "
"> 2 000 000 000 octets ; si défini à \"0\", aucune rotation n'est effectuée "
"(taille de log illimitée) ; ATTENTION : avant de changer cette option, vous "
"devriez d'abord définir le type de compression via l'option logger.file."
"rotation_compression_type"
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"format de date/heure utilisé dans les fichiers log (voir man strftime pour "
@@ -12668,6 +12827,14 @@ msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
"\"days\" (nombre de jours) ou \"seconds\" (nombre de secondes) (optionnel)"
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
"Durée de fonctionnement de WeeChat pour le processus actuel seulement (les "
"mises à jour par la commande /upgrade sont ignorées) (format : \"jours:hh:mm:"
"ss\")"
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr "générer un mot de passe à usage unique basé sur le temps (TOTP)"
@@ -14577,6 +14744,9 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "Liste des dictionnaires %s :"
msgid "spell checking disabled"
msgstr "vérification orthographique désactivée"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s : \"%s\" supprimé"
@@ -14637,10 +14807,10 @@ msgid "spell plugin configuration"
msgstr "configuration de l'extension spell"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <mot>"
msgid ""
@@ -14649,7 +14819,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -14670,7 +14841,8 @@ msgstr ""
" toggle : activer/désactiver le vérificateur d'orthographe\n"
"listdict : afficher les dictionnaires installés\n"
" setdict : définir le dictionnaire pour le tampon courant (plusieurs "
"dictionnaires peuvent être séparés par une virgule)\n"
"dictionnaires peuvent être séparés par une virgule, la valeur spéciale \"-\" "
"désactive la vérification orthographique sur le tampon courant)\n"
" deldict : supprimer le dictionnaire utilisé sur le tampon courant\n"
" addword : ajouter un mot dans le dictionnaire personnel\n"
"\n"
@@ -14694,9 +14866,13 @@ msgstr "liste de toutes les langues supportées"
msgid "list of installed dictionaries"
msgstr "liste des dictionnaires installés"
msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr ""
"liste de dictionnaires (séparés par des virgules) à utiliser sur ce tampon"
"liste de dictionnaires (séparés par des virgules) à utiliser sur ce tampon "
"(la valeur spéciale \"-\" désactive la vérification orthographique sur ce "
"tampon)"
#, c-format
msgid "%s%s: error creating spell dictionary \"%s\" => \"%s\""
@@ -14855,8 +15031,16 @@ msgid "creating variable"
msgstr "création de la variable"
#, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s lancement de la commande %s\"%s%s%s\"%s sur le tampon %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s%lu%s lancement de la commande %s\"%s%s%s\"%s sur le tampon %s%s%s"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
"%s%lu%s écoulé : init=%.6fs, conditions=%.6fs, regex=%.6fs, commande=%.6fs, "
"total=%.6fs"
msgid "Triggers enabled"
msgstr "Triggers activés"
@@ -15113,6 +15297,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -15214,8 +15401,11 @@ msgstr ""
"100\" \"\" \"/bar hide nicklist\"\n"
" /trigger add resize_big signal signal_sigwinch \"${info:term_width} >= "
"100\" \"\" \"/bar show nicklist\"\n"
" sauver la configuration chaque heure (de manière silencieuse) :\n"
" sauver silencieusement la configuration chaque heure :\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" sauver silencieusement la session WeeChat à minuit (voir /help upgrade) :\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" ouvrir le tampon moniteur des triggers et afficher seulement les "
"modificateurs et les triggers dont le nom commence par \"resize\" :\n"
" /trigger monitor @modifier,resize*"
@@ -15369,6 +15559,11 @@ msgid "text color for post action flag (in /trigger list)"
msgstr ""
"couleur du texte pour le drapeau de l'action \"post\" (dans /trigger list)"
msgid "text color for trigger context identifier in monitor buffer"
msgstr ""
"couleur du texte pour l'identifiant de contexte du trigger dans le tampon "
"moniteur"
msgid "text color for regular expressions"
msgstr "couleur du texte pour les expressions régulières"
@@ -15545,15 +15740,6 @@ msgstr "%s : envoi d'une demande de discussion à %s (%s.%s)"
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr "%s : fichier %s (nom local : %s) sera recommencé en position %llu"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
"%s%s: l'adresse \"%s\" a été résolue en un sockaddr plus grand que prévu"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s : adresse \"%s\" invalide : erreur %d %s"
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s : paramètres manquants (%s)"
@@ -15836,6 +16022,15 @@ msgstr "liste des xfer"
msgid "xfer pointer (optional)"
msgstr "pointeur vers le xfer (optionnel)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
"%s%s: l'adresse \"%s\" a été résolue en un sockaddr plus grand que prévu"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s : adresse \"%s\" invalide : erreur %d %s"
#, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s : impossible de créer le tuyau : erreur %d %s"
@@ -15906,3 +16101,13 @@ msgstr "%s%s : délai d'attente dépassé pour \"%s\" avec %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s : impossible de se connecter : erreur inattendue (%d)"
#~ msgid "enable buflist"
#~ msgstr "activer buflist"
#, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sLe nom réel de %s%s%s a été défini à \"%s\""
#~ msgid "WeeChat session saved"
#~ msgstr "Session WeeChat sauvegardée"
+175 -45
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-04-24 10:20+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -988,6 +988,14 @@ msgstr ""
msgid "%d option(s) reset, %d option(s) removed"
msgstr ""
#, fuzzy, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%s nem sikerült a folyamatot menteni\n"
#, fuzzy
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%s nem sikerült a folyamatot menteni\n"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1011,10 +1019,6 @@ msgstr "Nincs aliasz definiálva.\n"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "WeeChat frissítése...\n"
#, fuzzy, c-format
msgid "%sUnable to save session in file"
msgstr "%s nem sikerült a folyamatot menteni\n"
#, fuzzy, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr "%s futtatási hiba (program: \"%s\"), a WeeChat kilép\n"
@@ -1700,6 +1704,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -2332,11 +2337,13 @@ msgid ""
msgstr ""
#, fuzzy
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "WeeChat frissítése a szerverekről való lecsatlakozás nélkül"
#, fuzzy
msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[path_to_binary]"
#, fuzzy
@@ -2346,6 +2353,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -2353,9 +2363,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -2363,15 +2378,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -2986,6 +3008,15 @@ msgstr ""
"kiemelendő szavak vesszővel elválasztott listája (kis/nagybetűtől független "
"összehasonlítás, a szavak végére/elejére \"*\"-ot illesztve részleges keresés"
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -4727,6 +4758,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -4759,7 +4792,11 @@ msgid ""
"=core.weechat) || ${buffer.active}==1)\""
msgstr ""
msgid "enable buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
@@ -6028,6 +6065,15 @@ msgstr "%s \"%s\" parancs nem futtatható a szerverablakban\n"
msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr "%s DCC: nem sikerült 'nonblock' opciót beállítani a csatornán\n"
#, fuzzy, c-format
msgid "%s%s: unable to create DCC"
msgstr "%s nem sikerült a szervert létrehozni\n"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s nincs csatlakozva a \"%s\" szerverhez!\n"
@@ -6472,7 +6518,8 @@ msgstr ""
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -6487,8 +6534,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
#, fuzzy
@@ -8174,6 +8227,10 @@ msgstr "privát beszélgetésben a másik fél távollétét csak egyszer jelezz
msgid "display a message in private when user is back (after quit on server)"
msgstr ""
#, fuzzy
msgid "display nick change in private"
msgstr "másik fél nevének színe privát beszélgetésben"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -8398,6 +8455,11 @@ msgstr "új üzenetet tartalmazó ablak színe"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
msgid "enable smart filter for \"setname\" messages"
msgstr "új üzenetet tartalmazó ablak színe"
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
@@ -8440,8 +8502,9 @@ msgstr "névkiegészítés után beszúrt szöveg"
msgid "color for text in account messages"
msgstr "új üzenetet tartalmazó ablak színe"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "új üzenetet tartalmazó ablak színe"
#, fuzzy
@@ -8456,6 +8519,11 @@ msgstr "új üzenetet tartalmazó ablak színe"
msgid "color for text in part/quit messages"
msgstr "alapértelmezett kilépő üzenet"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
msgid "color for text in \"setname\" messages"
msgstr "új üzenetet tartalmazó ablak színe"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -9021,11 +9089,11 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s %s(%s%s%s)%s kilépett"
#, fuzzy, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%s nem sikerült a modul opciókat elmenteni\n"
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s megváltoztatta a %s%s%s szoba témáját:"
#, fuzzy, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%s nem sikerült a modul opciókat elmenteni\n"
#, fuzzy, c-format
@@ -9428,7 +9496,7 @@ msgid "%s%s: SASL authentication timeout"
msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
#, fuzzy, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s túl nagy a késés(lag), lecsatlakozás a szerverről...\n"
#, fuzzy, c-format
@@ -9633,16 +9701,6 @@ msgstr "Lekapcsolódott a szerverről!\n"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr ""
#, fuzzy
msgid "Log buffers to files"
msgstr "szerver konfigurációs fájljának újraolvastatása"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: not enough memory"
msgstr "Nincs elég memória az új sorhoz\n"
@@ -9673,6 +9731,16 @@ msgstr "**** Naplófájl kezdete "
msgid "%s\t**** End of log ****"
msgstr "**** Naplófájl vége "
#, fuzzy
msgid "Log buffers to files"
msgstr "szerver konfigurációs fájljának újraolvastatása"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
#, fuzzy
msgid "Logging on buffers:"
msgstr "Aliaszok listája:\n"
@@ -9760,7 +9828,8 @@ msgid ""
msgstr ""
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
msgid ""
@@ -9811,6 +9880,34 @@ msgid ""
"directory delimiter)"
msgstr ""
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
@@ -10138,6 +10235,11 @@ msgstr ""
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr ""
@@ -11762,6 +11864,10 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "a /who lista vége"
#, fuzzy
msgid "spell checking disabled"
msgstr "Nincs aliasz definiálva.\n"
#, fuzzy, c-format
msgid "%s: \"%s\" removed"
msgstr "A \"%s\" aliasz eltávolítva\n"
@@ -11824,7 +11930,7 @@ msgid "spell plugin configuration"
msgstr "Beállítások mentése a lemezre\n"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
@@ -11834,7 +11940,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -11859,7 +11966,9 @@ msgstr "Aliaszok listája:\n"
msgid "list of installed dictionaries"
msgstr "konfigurációs paraméterek beállítása"
msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr ""
#, fuzzy, c-format
@@ -11994,9 +12103,15 @@ msgid "creating variable"
msgstr " . típus: szám\n"
#, fuzzy, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s belső parancsok:\n"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
#, fuzzy
msgid "Triggers enabled"
msgstr "a felhasználók le lettek tiltva"
@@ -12247,6 +12362,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -12381,6 +12499,10 @@ msgstr "név színe"
msgid "text color for post action flag (in /trigger list)"
msgstr "kilépési nyíl színe"
#, fuzzy
msgid "text color for trigger context identifier in monitor buffer"
msgstr "szerver nevének színe"
#, fuzzy
msgid "text color for regular expressions"
msgstr "belépési nyíl színe"
@@ -12552,14 +12674,6 @@ msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr ""
"DCC: a %s%s%s fájl (helyi fájlnév: %s%s%s) a(z) %u pozíción fog visszatérni\n"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
#, fuzzy, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
@@ -12816,6 +12930,14 @@ msgstr "Aliaszok listája:\n"
msgid "xfer pointer (optional)"
msgstr ""
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
#, fuzzy, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s DCC: nem sikerült a csövet létrehozni\n"
@@ -12883,3 +13005,11 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: nem sikerült kapcsolódni a küldőhöz\n"
#, fuzzy, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%s nem sikerült a modul opciókat elmenteni\n"
#, fuzzy
#~ msgid "WeeChat session saved"
#~ msgstr "WeeChat szlogen"
+202 -47
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-04-24 10:20+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -969,6 +969,14 @@ msgstr "%sIl ripristino di tutte le opzioni non è consentito"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d opzione(i) ripristinata(e), %d opzione(i) rimossa(e)"
#, fuzzy, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sErrore: impossibile salvare la sessione su file"
#, fuzzy
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%sErrore: impossibile salvare la sessione su file"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -996,10 +1004,6 @@ msgstr "Nessuna barra definita"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Aggiornamento di WeeChat con il file binario: \"%s\"..."
#, fuzzy, c-format
msgid "%sUnable to save session in file"
msgstr "%sErrore: impossibile salvare la sessione su file"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr "***** Errore: exec fallito (programma: \"%s\"), chiusura di WeeChat"
@@ -1886,6 +1890,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -2742,11 +2747,13 @@ msgstr ""
" /unset weechat.color.*"
#, fuzzy
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "aggiorna WeeChat senza disconnettere dai server"
#, fuzzy
msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[<path_del_binario>|-quit]"
#, fuzzy
@@ -2756,6 +2763,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -2763,9 +2773,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -2773,15 +2788,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3539,6 +3561,22 @@ msgstr ""
"sensibili alle maiuscole), le parole possono iniziare o terminare con \"*\" "
"per la corrispondenza parziale; ad esempio: \"test,(?-i)*tizio*,flash*\""
#, fuzzy
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"espressione regolare usata per verificare se un messaggio contiene una "
"notifica oppure no, almeno una corrispondenza nella stringa deve essere "
"racchiusa da caratteri :(alfanumerici, \"-\", \"_\" or \"|\"), l'espressione "
"regolare non è sensibile alle maiuscole (usare \"(?-i)\" all'inizio per "
"renderla sensibile alle maiuscole), ad esempio: \"flashcode|flashy\", \"(?-"
"i)Flashcode|flashy\""
#, fuzzy
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
@@ -5445,6 +5483,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -5477,7 +5517,11 @@ msgid ""
"=core.weechat) || ${buffer.active}==1)\""
msgstr ""
msgid "enable buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
@@ -6822,6 +6866,16 @@ msgstr ""
"%s%s: impossibile impostare l'opzione \"nonblock\" per il socket: errore %d "
"%s"
#, fuzzy, c-format
#| msgid "%s%s: unable to create socket"
msgid "%s%s: unable to create DCC"
msgstr "%s%s: impossibile creare il socket"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s: non connesso al server \"%s\"!"
@@ -7307,7 +7361,8 @@ msgstr ""
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -7322,8 +7377,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
msgid "connect to IRC server(s)"
@@ -9016,6 +9077,11 @@ msgstr ""
"mostra un messaggio in privato quando l'utente è tornato (dopo l'uscita dal "
"server)"
#, fuzzy
#| msgid "use same nick color for channel and private"
msgid "display nick change in private"
msgstr "usa lo stesso colore del nick per canale e privato"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -9307,6 +9373,12 @@ msgstr ""
"abilita filtro smart per i messaggi \"part\" (uscita) e \"quit "
"(disconnessione)"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "enable smart filter for \"join\" messages"
msgid "enable smart filter for \"setname\" messages"
msgstr "abilita filtro smart per i messaggi \"join\" (entrata)"
#, fuzzy
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
@@ -9363,8 +9435,9 @@ msgstr ""
msgid "color for text in account messages"
msgstr "colore per il testo nei messaggi di entrata"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "colore per il testo nei messaggi di entrata"
msgid "color for text in join messages"
@@ -9377,6 +9450,12 @@ msgstr "colore per il testo nei messaggi di entrata"
msgid "color for text in part/quit messages"
msgstr "colore per il testo nei messaggi di uscita/abbandono"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "color for text in join messages"
msgid "color for text in \"setname\" messages"
msgstr "colore per il testo nei messaggi di entrata"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
#, fuzzy
msgid ""
@@ -9956,11 +10035,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s si è disconnesso"
#, fuzzy, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sImpossibile disabilitare l'opzione \"%s\""
#| msgid "%s%s%s%s has changed topic for %s%s%s to \"%s%s%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s ha cambiato argomento per %s%s%s in \"%s%s%s\""
#, fuzzy, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%sImpossibile disabilitare l'opzione \"%s\""
#, c-format
@@ -10381,8 +10461,9 @@ msgstr "%s%s: timeout della connessione (messaggio 001 non ricevuto)"
msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: timeout dell'autenticazione sasl"
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
#, fuzzy, c-format
#| msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s: ritardo eccessivo, riconnessione dal server %s%s%s"
#, c-format
@@ -10588,17 +10669,6 @@ msgstr "%s%s: disconnesso dal server"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s========== Fine della cronologia (%d righe) =========="
msgid "Log buffers to files"
msgstr "Registra i buffer su file"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: impossibile trovare la mask del nome del file per il buffer \"%s\", "
"logging disabilitato per questo buffer"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: memoria non sufficiente"
@@ -10631,6 +10701,17 @@ msgstr "%s\t**** Inizio del log ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Fine del log ****"
msgid "Log buffers to files"
msgstr "Registra i buffer su file"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: impossibile trovare la mask del nome del file per il buffer \"%s\", "
"logging disabilitato per questo buffer"
msgid "Logging on buffers:"
msgstr "Logging sui buffer:"
@@ -10749,8 +10830,13 @@ msgid ""
"off"
msgstr ""
#, fuzzy
#| msgid ""
#| "automatically save content of buffers to files (unless a buffer disables "
#| "log)"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"salva automaticamente il contenuto dei buffer su file (a meno che un buffer "
"disabiliti il log)"
@@ -10817,6 +10903,34 @@ msgstr ""
"carattere di sostituzione per i caratteri speciali nei nomi dei file salvati "
"con la mask (come il delimitatore di directory)"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"data e ora usati nei file di log (consultare man strftime per gli "
@@ -11122,6 +11236,11 @@ msgstr ""
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr ""
@@ -12785,6 +12904,10 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "elenco dizionari %s:"
#, fuzzy
msgid "spell checking disabled"
msgstr "Aspell è disabilitato"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s; \"%s\" eliminato"
@@ -12848,8 +12971,12 @@ msgstr "Aspell è disabilitato"
msgid "spell plugin configuration"
msgstr "configurazione del plugin aspell"
#, fuzzy
#| msgid ""
#| "enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || "
#| "deldict || addword [<dict>] <word>"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <dizionario>[,<dizionario>...] "
@@ -12862,7 +12989,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -12905,7 +13033,11 @@ msgstr "elenco di tutte lingue supportate da aspell"
msgid "list of installed dictionaries"
msgstr "elenco dei dizionari aspell installati"
msgid "comma separated list of dictionaries to use on this buffer"
#, fuzzy
#| msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr "elenco separato da virgole di dizionari da usare su questo buffer"
#, fuzzy, c-format
@@ -13056,9 +13188,15 @@ msgid "creating variable"
msgstr "lettura - variabile"
#, fuzzy, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "Esecuzione comando: \"%s\""
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
#, fuzzy
msgid "Triggers enabled"
msgstr "Filtro \"%s\" abilitato"
@@ -13309,6 +13447,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -13447,6 +13588,11 @@ msgstr "colore del testo per i gruppi nella lista nick"
msgid "text color for post action flag (in /trigger list)"
msgstr "colore del testo per le azioni sulla riga di input"
#, fuzzy
#| msgid "text color for selected line in script buffer"
msgid "text color for trigger context identifier in monitor buffer"
msgstr "colore del testo della riga selezionata nel buffer degli script"
#, fuzzy
msgid "text color for regular expressions"
msgstr "colore del testo per il prefisso di errore"
@@ -13609,14 +13755,6 @@ msgstr "%s: invio richiesta di chat a %s (%s.%s)"
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr "%s: file %s (nome file locale: %s) verrà ripreso dalla posizione %llu"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: set di caratter invalido: \"%s\""
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: argomenti mancanti (%s)"
@@ -13872,6 +14010,14 @@ msgstr "elenco di xfer"
msgid "xfer pointer (optional)"
msgstr "puntatore a xfer (opzionale)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: set di caratter invalido: \"%s\""
#, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: impossibile creare la pipe: errore %d %s"
@@ -13941,3 +14087,12 @@ msgstr "%s%s: timeout per \"%s\" con %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: impossibile connettersi al mittente"
#, fuzzy, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sImpossibile disabilitare l'opzione \"%s\""
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "versione di WeeChat"
+244 -49
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-06-18 16:12+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -1001,6 +1001,14 @@ msgstr "%s全てのオプションをリセットすることは出来ません"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d 個のオプションがリセットされ、%d 個のオプションが削除されました"
#, fuzzy, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sエラー: ファイルにセッションを保存できません"
#, fuzzy
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%sエラー: ファイルにセッションを保存できません"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1027,10 +1035,6 @@ msgstr "%sバイナリが指定されていません"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "バイナリファイル: \"%s\" で WeeChat のアップグレード中..."
#, fuzzy, c-format
msgid "%sUnable to save session in file"
msgstr "%sエラー: ファイルにセッションを保存できません"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr "***** エラー: 実行失敗 (プログラム: \"%s\")、WeeChat を終了しています"
@@ -2138,6 +2142,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -3136,10 +3141,16 @@ msgstr ""
" 全ての色関連オプションをリセット:\n"
" /unset -mask weechat.color.*"
msgid "reload the WeeChat binary without disconnecting from servers"
#, fuzzy
#| msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "サーバとの接続を維持して WeeChat 実行バイナリを再読込"
msgid "[-yes] [<path_to_binary>|-quit]"
#, fuzzy
#| msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[-yes] [<path_to_binary>|-quit]"
#, fuzzy
@@ -3149,6 +3160,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -3156,9 +3170,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -3166,15 +3185,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3976,6 +4002,27 @@ msgstr ""
"に \"(?-i)\" をつければ区別有り)、部分マッチさせるには単語の最初か最後に "
"\"*\" をつける; 例: \"test,(?-i)*toto*,flash*\""
#, fuzzy
#| msgid ""
#| "POSIX extended regular expression used to check if a message has "
#| "highlight or not, at least one match in string must be surrounded by "
#| "delimiters (chars different from: alphanumeric, \"-\", \"_\" and \"|\"), "
#| "regular expression is case insensitive (use \"(?-i)\" at beginning to "
#| "make it case sensitive), examples: \"flashcode|flashy\", \"(?-i)FlashCode|"
#| "flashy\""
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"メッセージ中のハイライトの有無を判断する POSIX 拡張正規表現、マッチ部分は必ず"
"区切り文字 (アルファベット、\"-\"、\"_\"、\"|\" 以外の文字) で囲まれていなけ"
"ればいけない、正規表現は大文字小文字を区別しない (最初に \"(?-i)\" がある場合"
"は区別する)、例: \"flashcode|flashy\"、\"(?-i)FlashCode|flashy\""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -5894,6 +5941,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -6004,8 +6053,12 @@ msgstr ""
"\"${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core."
"weechat) || ${buffer.active}==1)\""
msgid "enable buflist"
msgstr "buflist を有効化します"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
@@ -7640,6 +7693,16 @@ msgstr "%s%s: \"%s\" コマンドはサーババッファでは実行できま
msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr "%s%s: サーバソケットのローカルアドレスを解決できません: エラー %d %s"
#, fuzzy, c-format
#| msgid "%s%s: unable to create socket"
msgid "%s%s: unable to create DCC"
msgstr "%s%s: ソケットの作成に失敗"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s: サーバ \"%s\" に接続されていません!"
@@ -8141,7 +8204,8 @@ msgstr "ls || list || req|ack [<capability> [<capability>...]] || end"
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -8156,8 +8220,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
" ls: サーバがサポートする機能をリスト\n"
" list: 現在有効化されている機能をリスト\n"
@@ -9987,6 +10057,11 @@ msgstr ""
"ユーザが戻ったら、プライベートウィンドウにメッセージを表示 (サーバとの切断を"
"挟んで)"
#, fuzzy
#| msgid "use same nick color for channel and private"
msgid "display nick change in private"
msgstr "チャンネルとプライベートバッファで同じニックネーム色を利用"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -10296,6 +10371,12 @@ msgstr ""
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr "\"part\" と \"quit\" メッセージのスマートフィルタを有効化"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "enable smart filter for \"join\" messages"
msgid "enable smart filter for \"setname\" messages"
msgstr "\"join\" メッセージのスマートフィルタを有効化"
msgid "enable automatic addition of temporary servers with command /connect"
msgstr "/connect コマンドによる一時的なサーバの自動追加を有効化する"
@@ -10338,7 +10419,10 @@ msgstr "\"input_prompt\" バー要素内のニックネームモードに付け
msgid "color for text in account messages"
msgstr "参加メッセージの色"
msgid "color for text in chghost messages"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
#| msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "chghost メッセージの色"
msgid "color for text in join messages"
@@ -10351,6 +10435,12 @@ msgstr "参加メッセージの色"
msgid "color for text in part/quit messages"
msgstr "退出/終了 メッセージの色"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "color for text in join messages"
msgid "color for text in \"setname\" messages"
msgstr "参加メッセージの色"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -10930,11 +11020,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s が終了"
#, fuzzy, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sオプション \"%s\" の無効化に失敗しました"
#| msgid "%s%s%s%s has changed topic for %s%s%s to \"%s%s%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s が %s%s%s のトピックを変更、\"%s%s%s\" になりました"
#, fuzzy, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%sオプション \"%s\" の無効化に失敗しました"
#, c-format
@@ -11367,8 +11458,9 @@ msgstr "%s%s: 接続タイムアウト (メッセージ 001 が受信されま
msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: SASL 認証タイムアウト"
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
#, fuzzy, c-format
#| msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s: 遅延が長いので、サーバ %s%s%s に再接続します"
#, c-format
@@ -11577,17 +11669,6 @@ msgstr "%s%s: サーバから切断"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s========== バックログの最後 (%d 行) =========="
msgid "Log buffers to files"
msgstr "ファイルにバッファログを保存"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: バッファ \"%s\" のファイル名マスクが見つかりません、ログ保存を無効化し"
"ています"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: メモリが足りません"
@@ -11620,6 +11701,17 @@ msgstr "%s\t**** ログの最初 ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** ログの最後 ****"
msgid "Log buffers to files"
msgstr "ファイルにバッファログを保存"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: バッファ \"%s\" のファイル名マスクが見つかりません、ログ保存を無効化し"
"ています"
msgid "Logging on buffers:"
msgstr "バッファのログ保存:"
@@ -11736,8 +11828,13 @@ msgid ""
"off"
msgstr ""
#, fuzzy
#| msgid ""
#| "automatically save content of buffers to files (unless a buffer disables "
#| "log)"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"バッファの内容をファイルに自動的に保存 (バッファのログ保存が無効化されていな"
"い限り)"
@@ -11803,6 +11900,34 @@ msgstr ""
"マスクと一緒に使われたときのファイル名に含まれる特殊文字に対応する置換文字 "
"(ディレクトリ区切りのようなもの)"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"ログファイルで使用するタイムスタンプ (日付/時間指定子は strftime の man 参照)"
@@ -12103,6 +12228,13 @@ msgstr "WeeChat 連続稼働時間 (書式: \"days:hh:mm:ss\")"
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr "\"days\" (日数) または \"seconds\" (秒数) (任意)"
#, fuzzy
#| msgid "WeeChat uptime (format: \"days:hh:mm:ss\")"
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr "WeeChat 連続稼働時間 (書式: \"days:hh:mm:ss\")"
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr "時間ベースのワンタイムパスワード (TOTP) を生成"
@@ -13905,6 +14037,11 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "%s プラグインの辞書リスト:"
#, fuzzy
#| msgid "Spell checking is disabled"
msgid "spell checking disabled"
msgstr "スペルチェックが無効化されています"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s: \"%s\" 削除しました"
@@ -13962,20 +14099,47 @@ msgstr "スペルチェックが無効化されています"
msgid "spell plugin configuration"
msgstr "スペルチェックプラグイン設定"
#, fuzzy
#| msgid ""
#| "enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || "
#| "deldict || addword [<dict>] <word>"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
#, fuzzy
#| msgid ""
#| " enable: enable spell checker\n"
#| " disable: disable spell checker\n"
#| " toggle: toggle spell checker\n"
#| "listdict: show installed dictionaries\n"
#| " setdict: set dictionary for current buffer (multiple dictionaries can be "
#| "separated by a comma)\n"
#| " deldict: delete dictionary used on current buffer\n"
#| " addword: add a word in personal dictionary\n"
#| "\n"
#| "Input line beginning with a '/' is not checked, except for some commands "
#| "(see /set spell.check.commands).\n"
#| "\n"
#| "To enable spell checker on all buffers, use option \"default_dict\", then "
#| "enable spell checker, for example:\n"
#| " /set spell.check.default_dict \"en\"\n"
#| " /spell enable\n"
#| "\n"
#| "To display a list of suggestions in a bar, use item \"spell_suggest\".\n"
#| "\n"
#| "Default key to toggle spell checker is alt-s."
msgid ""
" enable: enable spell checker\n"
" disable: disable spell checker\n"
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -14019,7 +14183,11 @@ msgstr "サポートされる全ての言語のリスト"
msgid "list of installed dictionaries"
msgstr "インストール済み辞書のリスト"
msgid "comma separated list of dictionaries to use on this buffer"
#, fuzzy
#| msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr "このバッファで使用中の辞書のコンマ区切りリスト"
#, c-format
@@ -14160,11 +14328,18 @@ msgstr "変数がありません"
msgid "creating variable"
msgstr "変数を作成中"
#, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
#, fuzzy, c-format
#| msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr ""
"%1$s バッファ %7$s%8$s%9$s でコマンド %2$s\"%3$s%4$s%5$s\"%6$s を実行中"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
msgid "Triggers enabled"
msgstr "トリガが有効化されました"
@@ -14421,6 +14596,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -14645,6 +14823,11 @@ msgstr "リターンコードに対するテキスト色 (/trigger list 用)"
msgid "text color for post action flag (in /trigger list)"
msgstr "実行後処遇フラグに対するテキスト色 (/trigger list 用)"
#, fuzzy
#| msgid "hooks for triggers (for filter in monitor buffer)"
msgid "text color for trigger context identifier in monitor buffer"
msgstr "トリガに対するフック (モニタバッファのフィルタ用)"
msgid "text color for regular expressions"
msgstr "正規表現に対するテキスト色"
@@ -14802,14 +14985,6 @@ msgstr "%s: %s (%s.%s) にチャット要求を送信"
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr "%s: ファイル %s (ローカルファイル名: %s) を位置 %llu から再開します"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr "%s%s: アドレス \"%s\" は予想以上に大きな sockaddr に解決されました"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: \"%s\" は無効なアドレスです: エラー %d %s"
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: 引数がありません (%s)"
@@ -15068,6 +15243,14 @@ msgstr "xfer のリスト"
msgid "xfer pointer (optional)"
msgstr "xfer ポインタ (任意)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr "%s%s: アドレス \"%s\" は予想以上に大きな sockaddr に解決されました"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: \"%s\" は無効なアドレスです: エラー %d %s"
#, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: パイプを作成できません: エラー %d %s"
@@ -15135,3 +15318,15 @@ msgstr "%s%s: \"%s\" のタイムアウト %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: 接続できません: 未定義のエラー (%d)"
#~ msgid "enable buflist"
#~ msgstr "buflist を有効化します"
#, fuzzy, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sオプション \"%s\" の無効化に失敗しました"
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "WeeChat のバージョン"
+553 -52
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-06-18 16:12+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -1020,6 +1020,16 @@ msgstr "%sResetowanie wszystkich opcji jest niedozwolone"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "zresetowano %d opcje, usunięto %d opcje"
#, fuzzy, c-format
#| msgid "%sUnable to save session in file"
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sNie można zapisać sesji w pliku"
#, fuzzy
#| msgid "%sUnable to save session in file"
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%sNie można zapisać sesji w pliku"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1047,10 +1057,6 @@ msgstr "%sNie określono binarki"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Uaktualniam WeeChat z użyciem pliku: \"%s\"..."
#, c-format
msgid "%sUnable to save session in file"
msgstr "%sNie można zapisać sesji w pliku"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr ""
@@ -2282,6 +2288,73 @@ msgstr "funkcje linii komend"
msgid "<action> [<arguments>]"
msgstr "<akcja> [<argumenty>]"
#, fuzzy
#| msgid ""
#| "list of actions:\n"
#| " return: simulate key \"enter\"\n"
#| " complete_next: complete word with next completion\n"
#| " complete_previous: complete word with previous completion\n"
#| " search_text_here: search text in buffer at current position\n"
#| " search_text: search text in buffer\n"
#| " search_switch_case: switch exact case for search\n"
#| " search_switch_regex: switch search type: string/regular expression\n"
#| " search_switch_where: switch search in messages/prefixes\n"
#| " search_previous: search previous line\n"
#| " search_next: search next line\n"
#| " search_stop_here: stop search at current position\n"
#| " search_stop: stop search\n"
#| " delete_previous_char: delete previous char\n"
#| " delete_next_char: delete next char\n"
#| " delete_previous_word: delete previous word\n"
#| " delete_next_word: delete next word\n"
#| " delete_beginning_of_line: delete from beginning of line until cursor\n"
#| " delete_end_of_line: delete from cursor until end of line\n"
#| " delete_line: delete entire line\n"
#| " clipboard_paste: paste from the internal clipboard\n"
#| " transpose_chars: transpose two chars\n"
#| " undo: undo last command line action\n"
#| " redo: redo last command line action\n"
#| " move_beginning_of_line: move cursor to beginning of line\n"
#| " move_end_of_line: move cursor to end of line\n"
#| " move_previous_char: move cursor to previous char\n"
#| " move_next_char: move cursor to next char\n"
#| " move_previous_word: move cursor to previous word\n"
#| " move_next_word: move cursor to next word\n"
#| " history_previous: recall previous command in current buffer history\n"
#| " history_next: recall next command in current buffer history\n"
#| " history_global_previous: recall previous command in global history\n"
#| " history_global_next: recall next command in global history\n"
#| " jump_smart: jump to next buffer with activity\n"
#| " jump_last_buffer_displayed: jump to last buffer displayed (before last "
#| "jump to a buffer)\n"
#| " jump_previously_visited_buffer: jump to previously visited buffer\n"
#| " jump_next_visited_buffer: jump to next visited buffer\n"
#| " hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear "
#| "only lowest level in hotlist, \"highest\" to clear only highest level in "
#| "hotlist, or level mask: integer which is a combination of 1=join/part, "
#| "2=message, 4=private, 8=highlight)\n"
#| " hotlist_remove_buffer: remove current buffer from hotlist\n"
#| " hotlist_restore_buffer: restore latest hotlist removed in the current "
#| "buffer\n"
#| " hotlist_restore_all: restore latest hotlist removed in all buffers\n"
#| " grab_key: grab a key (optional argument: delay for end of grab, default "
#| "is 500 milliseconds)\n"
#| " grab_key_command: grab a key with its associated command (optional "
#| "argument: delay for end of grab, default is 500 milliseconds)\n"
#| " grab_mouse: grab mouse event code\n"
#| " grab_mouse_area: grab mouse event code with area\n"
#| " set_unread: set unread marker for all buffers\n"
#| " set_unread_current_buffer: set unread marker for current buffer\n"
#| " switch_active_buffer: switch to next merged buffer\n"
#| " switch_active_buffer_previous: switch to previous merged buffer\n"
#| " zoom_merged_buffer: zoom on merged buffer\n"
#| " insert: insert text in command line (escaped chars are allowed, see /"
#| "help print)\n"
#| " send: send text to the buffer\n"
#| " paste_start: start paste (bracketed paste mode)\n"
#| " paste_stop: stop paste (bracketed paste mode)\n"
#| "\n"
#| "This command is used by key bindings or plugins."
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@@ -2299,6 +2372,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -3350,18 +3424,63 @@ msgstr ""
" resetowanie wszystkich opcji dotyczących kolorów:\n"
" /unset weechat.color.*"
msgid "reload the WeeChat binary without disconnecting from servers"
#, fuzzy
#| msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "przeładowanie pliku binarnego WeeChat bez rozłączania z serwerami"
msgid "[-yes] [<path_to_binary>|-quit]"
#, fuzzy
#| msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[-yes] [<ścieżka_do_binarki>|-quit]"
#, fuzzy
#| msgid ""
#| " -yes: required if option \"weechat.look.confirm_upgrade\" is "
#| "enabled\n"
#| "path_to_binary: path to WeeChat binary (default is current binary)\n"
#| " -dummy: do nothing (option used to prevent accidental completion "
#| "with \"-quit\")\n"
#| " -quit: close *ALL* connections, save session and quit WeeChat, "
#| "which makes possible a delayed restoration (see below)\n"
#| "\n"
#| "This command upgrades and reloads a running WeeChat session. The new "
#| "WeeChat binary must have been compiled or installed with a package "
#| "manager before running this command.\n"
#| "\n"
#| "Note: SSL connections are lost during upgrade, because reload of SSL "
#| "sessions is currently not possible with GnuTLS. There is automatic "
#| "reconnection after upgrade.\n"
#| "\n"
#| "Upgrade process has 4 steps:\n"
#| " 1. save session into files for core and plugins (buffers, history, ..)\n"
#| " 2. unload all plugins (configuration files (*.conf) are written on "
#| "disk)\n"
#| " 3. save WeeChat configuration (weechat.conf)\n"
#| " 4. execute new WeeChat binary and reload session.\n"
#| "\n"
#| "With option \"-quit\", the process is slightly different:\n"
#| " 1. close *ALL* connections (irc, xfer, relay, ...)\n"
#| " 2. save session into files (*.upgrade)\n"
#| " 3. unload all plugins\n"
#| " 4. save WeeChat configuration\n"
#| " 5. quit WeeChat\n"
#| "Then later you can restore session with command: weechat --upgrade\n"
#| "IMPORTANT: you must restore the session with exactly same configuration "
#| "(files *.conf).\n"
#| "It is possible to restore WeeChat session on another machine if you copy "
#| "the content of WeeChat home directories (see /debug dirs)."
msgid ""
" -yes: required if option \"weechat.look.confirm_upgrade\" is "
"enabled\n"
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -3369,9 +3488,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -3379,15 +3503,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -4200,6 +4331,29 @@ msgstr ""
"znaków miała znaczenie), słowa mogą zaczynać się od \"*\" dla częściowego "
"dopasowania; przykład: \"test,(?-i)*toto*,flash*\""
#, fuzzy
#| msgid ""
#| "POSIX extended regular expression used to check if a message has "
#| "highlight or not, at least one match in string must be surrounded by "
#| "delimiters (chars different from: alphanumeric, \"-\", \"_\" and \"|\"), "
#| "regular expression is case insensitive (use \"(?-i)\" at beginning to "
#| "make it case sensitive), examples: \"flashcode|flashy\", \"(?-i)FlashCode|"
#| "flashy\""
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"Rozszerzone wyrażenie regularne POSIX używane do sprawdzenia, czy wiadomość "
"posiada podświetlenie czy nie, przynajmniej jedno dopasowanie w ciąg musi "
"być otoczone separatorami (znaki inne niż: alfanumeryczne, \"-\", \"_\" lub "
"\"|\"), wielkość znaków nie ma wpływu na wyrażenie (użyj \"(?-i)\" na "
"początku, aby wielkość znaków miała znaczenie), przykłady: \"flashcode|"
"flashy\", \"(?-i)FlashCode|flashy\""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -6125,6 +6279,86 @@ msgstr ""
msgid "bar item with list of buffers"
msgstr "element paska z listą buforów"
#, fuzzy
#| msgid ""
#| " enable: enable buflist\n"
#| "disable: disable buflist\n"
#| " toggle: toggle buflist\n"
#| " bar: add the \"buflist\" bar\n"
#| "refresh: force the refresh of the bar items (buflist, buflist2 and "
#| "buflist3)\n"
#| "\n"
#| "The lines with buffers are displayed using string evaluation (see /help "
#| "eval for the format), with these options:\n"
#| " - buflist.look.display_conditions: conditions to display a buffer in "
#| "the list\n"
#| " - buflist.format.buffer: format for a buffer which is not current "
#| "buffer\n"
#| " - buflist.format.buffer_current: format for the current buffer\n"
#| "\n"
#| "The following variables can be used in these options:\n"
#| " - bar item data (see hdata \"bar_item\" in API doc for a complete "
#| "list), for example:\n"
#| " - ${bar_item.name}\n"
#| " - window data, where the bar item is displayed (there's no window in "
#| "root bars, see hdata \"window\" in API doc for a complete list), for "
#| "example:\n"
#| " - ${window.number}\n"
#| " - ${window.buffer.full_name}\n"
#| " - buffer data (see hdata \"buffer\" in API doc for a complete list), "
#| "for example:\n"
#| " - ${buffer.number}\n"
#| " - ${buffer.name}\n"
#| " - ${buffer.full_name}\n"
#| " - ${buffer.short_name}\n"
#| " - ${buffer.nicklist_nicks_count}\n"
#| " - irc_server: IRC server data, defined only on an IRC buffer (see hdata "
#| "\"irc_server\" in API doc)\n"
#| " - irc_channel: IRC channel data, defined only on an IRC channel buffer "
#| "(see hdata \"irc_channel\" in API doc)\n"
#| " - extra variables added by buflist for convenience:\n"
#| " - ${format_buffer}: the evaluated value of option buflist.format."
#| "buffer; this can be used in option buflist.format.buffer_current to just "
#| "change the background color for example\n"
#| " - ${current_buffer}: a boolean (\"0\" or \"1\"), \"1\" if this is the "
#| "current buffer; it can be used in a condition: ${if:"
#| "${current_buffer}?...:...}\n"
#| " - ${merged}: a boolean (\"0\" or \"1\"), \"1\" if the buffer is "
#| "merged with at least another buffer; it can be used in a condition: ${if:"
#| "${merged}?...:...}\n"
#| " - ${format_number}: indented number with separator (evaluation of "
#| "option buflist.format.number)\n"
#| " - ${number}: indented number, for example \" 1\" if there are between "
#| "10 and 99 buffers; for merged buffers, this variable is set with number "
#| "for the first buffer and spaces for the next buffers with same number\n"
#| " - ${number2}: indented number, for example \" 1\" if there are "
#| "between 10 and 99 buffers\n"
#| " - ${number_displayed}: \"1\" if the number is displayed, otherwise "
#| "\"0\"\n"
#| " - ${indent}: indentation for name (channel and private buffers are "
#| "indented) (evaluation of option buflist.format.indent)\n"
#| " - ${format_nick_prefix}: colored nick prefix for a channel "
#| "(evaluation of option buflist.format.nick_prefix)\n"
#| " - ${color_nick_prefix}: color of nick prefix for a channel (set only "
#| "if the option buflist.look.nick_prefix is enabled)\n"
#| " - ${nick_prefix}: nick prefix for a channel (set only if the option "
#| "buflist.look.nick_prefix is enabled)\n"
#| " - ${format_name}: formatted name (evaluation of option buflist.format."
#| "name)\n"
#| " - ${name}: the short name (if set), with a fallback on the name\n"
#| " - ${color_hotlist}: the color depending on the highest hotlist level "
#| "for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx "
#| "is the level)\n"
#| " - ${format_hotlist}: the formatted hotlist (evaluation of option "
#| "buflist.format.hotlist)\n"
#| " - ${hotlist}: the raw hotlist\n"
#| " - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
#| "\"highlight\"\n"
#| " - ${format_lag}: the lag for an IRC server buffer, empty if there's "
#| "no lag (evaluation of option buflist.format.lag)\n"
#| " - ${format_tls_version}: indicator of TLS version for a server "
#| "buffer, empty for channels (evaluation of option buflist.format."
#| "tls_version)"
msgid ""
" enable: enable buflist\n"
"disable: disable buflist\n"
@@ -6197,6 +6431,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -6316,8 +6552,12 @@ msgstr ""
"połączone z głównym buforem: \"${buffer.hidden}==0 && ((${type}!=server && "
"${buffer.full_name}!=core.weechat) || ${buffer.active}==1)\""
msgid "enable buflist"
msgstr "włącz liste buforów"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
@@ -7968,6 +8208,16 @@ msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr ""
"%s%s: nie można odczytać lokalnego adresu serwera dla gniazda: błąd %d %s"
#, fuzzy, c-format
#| msgid "%s%s: unable to create socket"
msgid "%s%s: unable to create DCC"
msgstr "%s%s: nie można utworzyć gniazda"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s: nie połączony z serwerem \"%s\"!"
@@ -8501,10 +8751,33 @@ msgstr "negocjacja możliwości klienta"
msgid "ls || list || req|ack [<capability> [<capability>...]] || end"
msgstr "ls || list || req|ack [<opcja> [<opcja>...]] || end"
#, fuzzy
#| msgid ""
#| " ls: list the capabilities supported by the server\n"
#| " list: list the capabilities currently enabled\n"
#| " req: request a capability\n"
#| " ack: acknowledge capabilities which require client-side "
#| "acknowledgement\n"
#| " end: end the capability negotiation\n"
#| "\n"
#| "Without argument, \"ls\" and \"list\" are sent.\n"
#| "\n"
#| "Capabilities supported by WeeChat are: account-notify, away-notify, cap-"
#| "notify, chghost, extended-join, invite-notify, message-tags, multi-"
#| "prefix, server-time, setname, userhost-in-names.\n"
#| "\n"
#| "The capabilities to automatically enable on servers can be set in option "
#| "irc.server_default.capabilities (or by server in option irc.server.xxx."
#| "capabilities).\n"
#| "\n"
#| "Examples:\n"
#| " /cap\n"
#| " /cap req multi-prefix away-notify"
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -8519,8 +8792,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
" ls: wyświetla opcje wspierane przez serwer\n"
" list: wyświetla obecnie włączone opcje\n"
@@ -10390,6 +10669,11 @@ msgstr ""
msgid "display a message in private when user is back (after quit on server)"
msgstr "pokaż prywatną wiadomość, kiedy użytkownik wróci na serwer"
#, fuzzy
#| msgid "use same nick color for channel and private"
msgid "display nick change in private"
msgstr "użyj takiego samego koloru nicka na kanałach i prywatnych rozmowach"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -10708,6 +10992,12 @@ msgstr "włącza mądre filtrowanie dla wiadomości \"nick\" (zmiana nicka)"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr "włącza inteligentne filtrowanie dla wiadomości \"part\" oraz \"quit\""
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "enable smart filter for \"join\" messages"
msgid "enable smart filter for \"setname\" messages"
msgstr "włącza mądre filtrowanie dla wiadomości \"join\""
msgid "enable automatic addition of temporary servers with command /connect"
msgstr "włącza tworzenie tymczasowych serwerów za pomocą komendy /connect"
@@ -10746,7 +11036,10 @@ msgstr ""
msgid "color for text in account messages"
msgstr "kolor tekstu w wiadomościach konta"
msgid "color for text in chghost messages"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
#| msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "kolor tekstu w wiadomościach o zmianie hosta"
msgid "color for text in join messages"
@@ -10758,6 +11051,12 @@ msgstr "kolor tekstu w wiadomości kick/kill"
msgid "color for text in part/quit messages"
msgstr "kolor tekstu w wiadomościach o opuszczeniu kanału/wyjściu z IRC"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "color for text in join messages"
msgid "color for text in \"setname\" messages"
msgstr "kolor tekstu w wiadomościach o wejściu na kanał"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -11344,13 +11643,15 @@ msgstr "%s%s%s%s%s%s%s%s%s%s wyszedł z IRC %s(%s%s%s)"
msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s wyszedł z IRC"
#, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sUstawiono twój real name na \"%s\""
#, fuzzy, c-format
#| msgid "%s%s%s%s has changed topic for %s%s%s to \"%s%s%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s zmienił temat kanału %s%s%s na \"%s%s%s\""
#, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgstr "%sReal name dla %s%s%s zostało zmienione na \"%s\""
#, fuzzy, c-format
#| msgid "%sYour real name has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%sUstawiono twój real name na \"%s\""
#, c-format
msgid "%s%s: \"%s\" command received without channel"
@@ -11767,8 +12068,9 @@ msgstr "%s%s: przekroczono czas połączenia (nie otrzymano wiadomości 001)"
msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: przekroczono czas uwierzytelniania SASL"
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
#, fuzzy, c-format
#| msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s: za duże opóźnienie, łączę ponownie z serwerem %s%s%s"
#, c-format
@@ -11976,17 +12278,6 @@ msgstr "%s%s: rozłączono z serwerem"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s========== Koniec backloga (%d linii) =========="
msgid "Log buffers to files"
msgstr "Zapisuj bufory do plików"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: nie można odnaleźć maski pliku dla bufora \"%s\", logowanie dla tego "
"bufora zostaje wyłączone"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: za mało pamięci"
@@ -12019,6 +12310,17 @@ msgstr "%s\t**** Początek logu ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Koniec logu ****"
msgid "Log buffers to files"
msgstr "Zapisuj bufory do plików"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: nie można odnaleźć maski pliku dla bufora \"%s\", logowanie dla tego "
"bufora zostaje wyłączone"
msgid "Logging on buffers:"
msgstr "Loguje w buforach:"
@@ -12140,8 +12442,13 @@ msgstr ""
"kolor linii backloga, używany tylko jeśli opcja logger.file.color_lines jest "
"wyłączona"
#, fuzzy
#| msgid ""
#| "automatically save content of buffers to files (unless a buffer disables "
#| "log)"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"automatycznie zapisuj zawartość buforów do plików (chyba, że bufor ma "
"wyłączone logowanie)"
@@ -12215,6 +12522,34 @@ msgstr ""
"znak zastępczy dla znaków specjalnych w plikach stworzonych przy użyciu "
"maski (jak separator katalogów)"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"format czasu użyty w plikach z logami (zobacz man strftime dla "
@@ -12514,6 +12849,13 @@ msgstr "Uptime WeeChat (format: \"dni:hh:mm:ss\")"
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr "\"dni\" (ilość dni) lub \"sekundy\" (ilość sekund) (opcjonalne)"
#, fuzzy
#| msgid "WeeChat uptime (format: \"days:hh:mm:ss\")"
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr "Uptime WeeChat (format: \"dni:hh:mm:ss\")"
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr "generuje Time-based One-Time Password (TOTP)"
@@ -14381,6 +14723,11 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "%s lista słowników:"
#, fuzzy
#| msgid "Spell checking is disabled"
msgid "spell checking disabled"
msgstr "Sprawdzanie pisowni jest wyłączone"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s: \"%s\" usunięty"
@@ -14438,20 +14785,47 @@ msgstr "Sprawdzanie pisowni jest wyłączone"
msgid "spell plugin configuration"
msgstr "konfiguracja wtyczki spell"
#, fuzzy
#| msgid ""
#| "enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || "
#| "deldict || addword [<dict>] <word>"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <język>[,<język>...] || deldict "
"|| addword [<język>] <słowo>"
#, fuzzy
#| msgid ""
#| " enable: enable spell checker\n"
#| " disable: disable spell checker\n"
#| " toggle: toggle spell checker\n"
#| "listdict: show installed dictionaries\n"
#| " setdict: set dictionary for current buffer (multiple dictionaries can be "
#| "separated by a comma)\n"
#| " deldict: delete dictionary used on current buffer\n"
#| " addword: add a word in personal dictionary\n"
#| "\n"
#| "Input line beginning with a '/' is not checked, except for some commands "
#| "(see /set spell.check.commands).\n"
#| "\n"
#| "To enable spell checker on all buffers, use option \"default_dict\", then "
#| "enable spell checker, for example:\n"
#| " /set spell.check.default_dict \"en\"\n"
#| " /spell enable\n"
#| "\n"
#| "To display a list of suggestions in a bar, use item \"spell_suggest\".\n"
#| "\n"
#| "Default key to toggle spell checker is alt-s."
msgid ""
" enable: enable spell checker\n"
" disable: disable spell checker\n"
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -14495,7 +14869,11 @@ msgstr "lista wszystkich wspieranych języków"
msgid "list of installed dictionaries"
msgstr "lista zainstalowanych słowników"
msgid "comma separated list of dictionaries to use on this buffer"
#, fuzzy
#| msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr "oddzielona przecinkami lista słowników do użycia w tym buforze"
#, c-format
@@ -14646,10 +15024,17 @@ msgstr "brak zmiennej"
msgid "creating variable"
msgstr "tworzenie zmiennej"
#, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
#, fuzzy, c-format
#| msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s wykonuje komendę %s\"%s%s%s\"%s na buforze %s%s%s"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
msgid "Triggers enabled"
msgstr "Triggery włączone"
@@ -14815,6 +15200,102 @@ msgstr ""
"<nazwa> || del <nazwa>|-all [<nazwa>...] || restore <nazwa> [<nazwa>...] || "
"default -yes || monitor [<filtr>]"
#, fuzzy
#| msgid ""
#| " list: list triggers (without argument, this list is displayed)\n"
#| " listfull: list triggers with detailed info for each trigger\n"
#| "listdefault: list default triggers\n"
#| " add: add a trigger\n"
#| " addoff: add a trigger (disabled)\n"
#| " addreplace: add or replace an existing trigger\n"
#| " name: name of trigger\n"
#| " hook: signal, hsignal, modifier, line, print, command, "
#| "command_run, timer, config, focus, info, info_hashtable\n"
#| " arguments: arguments for the hook, depending on hook (separated by "
#| "semicolons):\n"
#| " signal: name(s) of signal (required)\n"
#| " hsignal: name(s) of hsignal (required)\n"
#| " modifier: name(s) of modifier (required)\n"
#| " line: buffer type (\"formatted\", \"free\" or \"*\"), list "
#| "of buffer masks, tags\n"
#| " print: buffer, tags, message, strip colors\n"
#| " command: command (required), description, arguments, "
#| "description of arguments, completion (all arguments except command are "
#| "evaluated, \"${tg_trigger_name}\" is replaced by the trigger name, see /"
#| "help eval)\n"
#| " command_run: command(s) (required)\n"
#| " timer: interval (required), align on second, max calls\n"
#| " config: name(s) of option (required)\n"
#| " focus: name(s) of area (required)\n"
#| " info: name(s) of info (required)\n"
#| " info_hashtable: name(s) of info (required)\n"
#| " conditions: evaluated conditions for the trigger\n"
#| " regex: one or more regular expressions to replace strings in "
#| "variables\n"
#| " command: command to execute (many commands can be separated by \";"
#| "\")\n"
#| "return_code: return code in callback (ok (default), ok_eat, error)\n"
#| "post_action: action to take after execution (none (default), disable, "
#| "delete)\n"
#| " addinput: set input with default arguments to create a trigger\n"
#| " input: set input with the command used to create the trigger\n"
#| " output: send the command to create the trigger on the buffer\n"
#| " recreate: same as \"input\", with option \"addreplace\" instead of "
#| "\"add\"\n"
#| " set: set an option in a trigger\n"
#| " option: name of option: name, hook, arguments, conditions, regex, "
#| "command, return_code\n"
#| " (for help on option, you can type: /help trigger.trigger."
#| "<name>.<option>)\n"
#| " value: new value for the option\n"
#| " rename: rename a trigger\n"
#| " copy: copy a trigger\n"
#| " enable: enable trigger(s) (without arguments: enable triggers "
#| "globally)\n"
#| " disable: disable trigger(s) (without arguments: disable triggers "
#| "globally)\n"
#| " toggle: toggle trigger(s) (without arguments: toggle triggers "
#| "globally)\n"
#| " restart: restart trigger(s) (recreate the hooks)\n"
#| " show: show detailed info on a trigger (with some stats)\n"
#| " del: delete a trigger\n"
#| " -all: do action on all triggers\n"
#| " restore: restore trigger(s) with the default values (works only for "
#| "default triggers)\n"
#| " default: delete all triggers and restore default ones\n"
#| " monitor: open the trigger monitor buffer, with optional filter:\n"
#| " filter: filter hooks/triggers to display (a hook must start with "
#| "\"@\", for example \"@signal\"), many filters can be separated by commas; "
#| "wildcard \"*\" is allowed in each trigger name\n"
#| "\n"
#| "When a trigger callback is called, following actions are performed, in "
#| "this order:\n"
#| " 1. check conditions; if false, exit\n"
#| " 2. replace text using POSIX extended regular expression(s) (if defined "
#| "in trigger)\n"
#| " 3. execute command(s) (if defined in trigger)\n"
#| " 4. exit with a return code (except for modifier, line, focus, info and "
#| "info_hashtable)\n"
#| " 5. perform post action\n"
#| "\n"
#| "Examples (you can also look at default triggers with /trigger "
#| "listdefault):\n"
#| " add text attributes *bold*, _underline_ and /italic/ (only in user "
#| "messages):\n"
#| " /trigger add effects modifier weechat_print \"${tg_tag_nick}\" "
#| "\"==\\*([^ ]+)\\*==*${color:bold}${re:1}${color:-bold}*== "
#| "==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/"
#| "==/${color:italic}${re:1}${color:-italic}/\"\n"
#| " hide nicklist bar on small terminals:\n"
#| " /trigger add resize_small signal signal_sigwinch \"${info:term_width} "
#| "< 100\" \"\" \"/bar hide nicklist\"\n"
#| " /trigger add resize_big signal signal_sigwinch \"${info:term_width} "
#| ">= 100\" \"\" \"/bar show nicklist\"\n"
#| " silently save config each hour:\n"
#| " /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
#| " open trigger monitor and show only modifiers and triggers whose name "
#| "starts with \"resize\":\n"
#| " /trigger monitor @modifier,resize*"
msgid ""
" list: list triggers (without argument, this list is displayed)\n"
" listfull: list triggers with detailed info for each trigger\n"
@@ -14905,6 +15386,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -15145,6 +15629,11 @@ msgstr "kolor tekstu dla flagi zwracanego kodu (w /trigger list)"
msgid "text color for post action flag (in /trigger list)"
msgstr "kolor tekstu dla flagi końca akcji (w /trigger list)"
#, fuzzy
#| msgid "hooks for triggers (for filter in monitor buffer)"
msgid "text color for trigger context identifier in monitor buffer"
msgstr "uchwyty dla triggerów (dla filtrowania w buforze monitora)"
msgid "text color for regular expressions"
msgstr "kolor tekstu dla wyrażeń regularnych"
@@ -15317,14 +15806,6 @@ msgstr "%s: wysyłam żądanie rozmowy do %s (%s.%s)"
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr "%s: plik %s (lokalna nazwa: %s) zostanie wznowiony od pozycji%llu"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr "%s%s: adres \"%s\" wskazuje na większy sockaddr niż przypuszczano"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: niewłaściwy adres \"%s\": błąd %d %s"
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: brakujące argumenty (%s)"
@@ -15593,6 +16074,14 @@ msgstr "lista xfer"
msgid "xfer pointer (optional)"
msgstr "wskaźnik xfer (opcjonalny)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr "%s%s: adres \"%s\" wskazuje na większy sockaddr niż przypuszczano"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: niewłaściwy adres \"%s\": błąd %d %s"
#, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: nie można utworzyć strumienia: błąd %d %s"
@@ -15660,3 +16149,15 @@ msgstr "%s%s: przekroczono czas na \"%s\" z %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nie można połączyć: niespodziewany błąd (%d)"
#~ msgid "enable buflist"
#~ msgstr "włącz liste buforów"
#, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sReal name dla %s%s%s zostało zmienione na \"%s\""
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "Wersja WeeChat"
+217 -49
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-06-18 16:12+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -992,6 +992,14 @@ msgstr "%sNão é permitido repor todas as opções"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d opções repostas, %d opções removidas"
#, fuzzy, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sErro: não foi possível guardar a sessão no ficheiro"
#, fuzzy
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%sErro: não foi possível guardar a sessão no ficheiro"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1019,10 +1027,6 @@ msgstr "%sNenhum binário especificado"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "A atualizar o WeeChat com o ficheiro binário: \"%s\"..."
#, fuzzy, c-format
msgid "%sUnable to save session in file"
msgstr "%sErro: não foi possível guardar a sessão no ficheiro"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr ""
@@ -2130,6 +2134,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -3129,10 +3134,14 @@ msgstr ""
" /unset -mask weechat.color.*"
#, fuzzy
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "atualizar o WeeChat sem desconectar dos servidores"
msgid "[-yes] [<path_to_binary>|-quit]"
#, fuzzy
#| msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[-yes] [<binário>|-quit]"
#, fuzzy
@@ -3142,6 +3151,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -3149,9 +3161,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -3159,15 +3176,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3980,6 +4004,29 @@ msgstr ""
"distinguir), as palavras podem começar ou terminar por \"*\" para "
"corresponder parcialmente; exemplo: \"teste,(?-i)*toto*,flash*\""
#, fuzzy
#| msgid ""
#| "POSIX extended regular expression used to check if a message has "
#| "highlight or not, at least one match in string must be surrounded by "
#| "delimiters (chars different from: alphanumeric, \"-\", \"_\" and \"|\"), "
#| "regular expression is case insensitive (use \"(?-i)\" at beginning to "
#| "make it case sensitive), examples: \"flashcode|flashy\", \"(?-i)FlashCode|"
#| "flashy\""
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"expressão regular POSIX estendida utilizada para verificar se a mensagem tem "
"um realce ou não, pelo menos uma correspondência deve estar entre "
"delimitadores (carateres diferentes de: alfanumérico, \"-\", \"_\" e \"|\"), "
"a expressão regular distingue maiúsculas e minúsculas (use \"(?-i)\" no "
"início para distinguir), exemplos: \"flashcode|flashy\", \"(?-i)FlashCode|"
"flash\""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -5941,6 +5988,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -5973,7 +6022,11 @@ msgid ""
"=core.weechat) || ${buffer.active}==1)\""
msgstr ""
msgid "enable buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
@@ -7417,6 +7470,16 @@ msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr ""
"%s%s: não foi possível resolver o endereço do socket do servidor: erro %d %s"
#, fuzzy, c-format
#| msgid "%s%s: unable to create socket"
msgid "%s%s: unable to create DCC"
msgstr "%s%s: não foi possível criar socket"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s: não está conectado ao servidor \"%s\"!"
@@ -7906,7 +7969,8 @@ msgstr "ls || list || req|ack [<capacidade> [<capacidade>...]] || end"
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -7921,8 +7985,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
" ls: lista de capacidades suportadas pelo servidor\n"
" list: lista de capacidades ativadas atualmente\n"
@@ -9785,6 +9855,11 @@ msgstr ""
"mostrar um mensagem em privado quando o utilizador voltar (depois de sair do "
"servidor)"
#, fuzzy
#| msgid "use same nick color for channel and private"
msgid "display nick change in private"
msgstr "usar a mesma cor para o nick no canal e em privado"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -10097,6 +10172,12 @@ msgstr "ativar filtro inteligente para mensagens \"nick\" (mudanças de nick)"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr "ativar filtro inteligente para mensagens \"part\" e \"quit\""
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "enable smart filter for \"join\" messages"
msgid "enable smart filter for \"setname\" messages"
msgstr "ativar filtro inteligente de mensagens de \"join\""
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
"ativar adição automática de servidores temporários pelo comando /connect"
@@ -10140,8 +10221,9 @@ msgstr "cor dos modos de nick no item de barra \"input_prompt\""
msgid "color for text in account messages"
msgstr "cor do texto das mensagens de join"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "cor do texto das mensagens de join"
msgid "color for text in join messages"
@@ -10154,6 +10236,12 @@ msgstr "cor do texto das mensagens de join"
msgid "color for text in part/quit messages"
msgstr "cor do texto das mensagens de part/quit"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
#| msgid "color for text in join messages"
msgid "color for text in \"setname\" messages"
msgstr "cor do texto das mensagens de join"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
#, fuzzy
msgid ""
@@ -10749,11 +10837,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s saiu"
#, fuzzy, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sFalha ao reinicializar a opção \"%s\""
#| msgid "%s%s%s%s has changed topic for %s%s%s to \"%s%s%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s mudou o tópico de %s%s%s para \"%s%s%s\""
#, fuzzy, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%sFalha ao reinicializar a opção \"%s\""
#, c-format
@@ -11179,8 +11268,9 @@ msgstr "%s%s: tempo de conexão excedido (mensagem 001 não recebida)"
msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: tempo de autenticação SASL excedido"
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
#, fuzzy, c-format
#| msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s: a lag está elevada, a reconectar ao servidor %s%s%s"
# "%d %s, %d %s" at the end is n minutes, m seconds
@@ -11392,17 +11482,6 @@ msgstr "%s%s: desconectado do servidor"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s====== Fim do registo recente (%d linhas) ====="
msgid "Log buffers to files"
msgstr "Registar buffers em ficheiros"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: não foi possível encontrar máscara de ficheiro do buffer \"%s\", o "
"registo deste buffer está desativado"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: memória insuficiente"
@@ -11435,6 +11514,17 @@ msgstr "%s\t**** Início do registo ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Fim do registo ****"
msgid "Log buffers to files"
msgstr "Registar buffers em ficheiros"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: não foi possível encontrar máscara de ficheiro do buffer \"%s\", o "
"registo deste buffer está desativado"
msgid "Logging on buffers:"
msgstr "A registar os buffers:"
@@ -11550,8 +11640,13 @@ msgid ""
"off"
msgstr ""
#, fuzzy
#| msgid ""
#| "automatically save content of buffers to files (unless a buffer disables "
#| "log)"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"guardar conteúdo dos buffers automaticamente em ficheiros (exceto se o "
"buffer tenha registo desativado)"
@@ -11616,6 +11711,34 @@ msgstr ""
"caráter para substituir carateres especiais no nome do ficheiro construído "
"com a máscara (tais como delimitadores de diretório)"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"carimbo de data/hora usado nos ficheiros de registo (ver man strftime para "
@@ -11920,6 +12043,13 @@ msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
"\"dias\" (número de dias) ou \"segundos\" (número de segundos) (opcional)"
#, fuzzy
#| msgid "WeeChat uptime (format: \"days:hh:mm:ss\")"
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr "WeeChat uptime (formato: \"dias:hh:mm:ss\")"
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr ""
@@ -13709,6 +13839,11 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "lista de dicionários do %s:"
#, fuzzy
#| msgid "Spell checking is disabled"
msgid "spell checking disabled"
msgstr "A verificação ortográfica está desativada"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s: \"%s\" removido"
@@ -13770,8 +13905,12 @@ msgstr "A verificação ortográfica está desativada"
msgid "spell plugin configuration"
msgstr "configuração do plugin aspell"
#, fuzzy
#| msgid ""
#| "enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || "
#| "deldict || addword [<dict>] <word>"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <dic>[,<dic>...] || deldict || "
@@ -13784,7 +13923,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -13830,7 +13970,11 @@ msgstr "lista de todas as línguas suportadas pelo aspell"
msgid "list of installed dictionaries"
msgstr "lista de dicionários aspell instalados"
msgid "comma separated list of dictionaries to use on this buffer"
#, fuzzy
#| msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr "lista de dicionários separados por vírgula para usar neste buffer"
#, fuzzy, c-format
@@ -13987,10 +14131,17 @@ msgstr "nenhum variável"
msgid "creating variable"
msgstr "leitura - variável"
#, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
#, fuzzy, c-format
#| msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s a executar o comando %s\"%s%s%s\"%s no buffer %s%s%s"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
msgid "Triggers enabled"
msgstr "Acionadores ativado"
@@ -14247,6 +14398,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -14479,6 +14633,11 @@ msgstr "cor do texto para o indicador de código de retorno (em /trigger list)"
msgid "text color for post action flag (in /trigger list)"
msgstr "cor do texto para o indicador de ação posterior (em /trigger list)"
#, fuzzy
#| msgid "hooks for triggers (for filter in monitor buffer)"
msgid "text color for trigger context identifier in monitor buffer"
msgstr "hooks de acionadores (de filtros no buffer monitor)"
msgid "text color for regular expressions"
msgstr "cor do texto para expressões regulares"
@@ -14636,15 +14795,6 @@ msgstr "%s: pedido de chat enviado a %s (%s.%s)"
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr "%s: o ficheiro %s (nome local: %s) será retomado da posição %llu"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
"%s%s: o endereço \"%s\" foi resolvido como um sockaddr maior do que esperado"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: endereço inválido \"%s\": erro %d %s"
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: argumentos em falta (%s)"
@@ -14911,6 +15061,15 @@ msgstr "lista de xfer"
msgid "xfer pointer (optional)"
msgstr "ponteiro xfer (opcional)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
"%s%s: o endereço \"%s\" foi resolvido como um sockaddr maior do que esperado"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: endereço inválido \"%s\": erro %d %s"
#, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: não foi possível criar pipe: erro %d %s"
@@ -14979,3 +15138,12 @@ msgstr "%s%s: tempo limite de \"%s\" com %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: não foi possível conectar: erro inesperado (%d)"
#, fuzzy, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sFalha ao reinicializar a opção \"%s\""
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "versão do WeeChat"
+193 -48
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-04-24 10:20+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1002,6 +1002,14 @@ msgstr "%sRestauração de todas as opções não é permitida"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d opção(ões) restaurada(s), %d opção(ões) removidas"
#, fuzzy, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sErro: incapaz de salvar a sessão em arquivo"
#, fuzzy
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%sErro: incapaz de salvar a sessão em arquivo"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1029,10 +1037,6 @@ msgstr "Nenhuma barra definida"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Atualizando WeeChat com o arquivo binário: \"%s\"..."
#, fuzzy, c-format
msgid "%sUnable to save session in file"
msgstr "%sErro: incapaz de salvar a sessão em arquivo"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr "***** Erro: exec falhou (programa: \"%s\"), saindo do WeeChat"
@@ -1952,6 +1956,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -2801,11 +2806,13 @@ msgstr ""
" /unset weechat.color.*"
#, fuzzy
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "atualiza o WeeChat sem desconectar dos servidores"
#, fuzzy
msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[<caminho_para_o_binário>|-quit]"
#, fuzzy
@@ -2815,6 +2822,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -2822,9 +2832,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -2832,15 +2847,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3584,6 +3606,20 @@ msgstr ""
"levar em conta maiúscula/minúscula, palavras podem começar ou terminar com "
"\"*\" para coincidências parciais)"
#, fuzzy
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"expressão regular usada para verificar se a mensagem tem destaque ou não, "
"pelo menos uma correspondência na string precisa ser envolta por caracteres "
"de palavra (alfanumérico, \"-\", \"_\" ou \"|\"), expressões regulares levam "
"em conta maiúscula/minúscula, exemplo: \"FlashCode|flashy\""
#, fuzzy
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
@@ -5370,6 +5406,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -5402,7 +5440,11 @@ msgid ""
"=core.weechat) || ${buffer.active}==1)\""
msgstr ""
msgid "enable buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
@@ -6715,6 +6757,15 @@ msgstr ""
msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr "%s%s: não foi possível setar opção \"nonblock\" para o socket"
#, fuzzy, c-format
msgid "%s%s: unable to create DCC"
msgstr "%s%s: não foi possível criar pipe"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr ""
@@ -7142,7 +7193,8 @@ msgstr ""
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -7157,8 +7209,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
msgid "connect to IRC server(s)"
@@ -8643,6 +8701,11 @@ msgstr ""
msgid "display a message in private when user is back (after quit on server)"
msgstr ""
#, fuzzy
#| msgid "use same nick color for channel and private"
msgid "display nick change in private"
msgstr "utilizar a mesma cor de apelido para canal e privado"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -8867,6 +8930,10 @@ msgstr ""
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
#. TRANSLATORS: please do not translate "setname"
msgid "enable smart filter for \"setname\" messages"
msgstr ""
#, fuzzy
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
@@ -8914,8 +8981,9 @@ msgstr ""
msgid "color for text in account messages"
msgstr "cor de texto para valores"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "cor de texto para valores"
msgid "color for text in join messages"
@@ -8928,6 +8996,11 @@ msgstr "cor de texto para valores"
msgid "color for text in part/quit messages"
msgstr ""
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
msgid "color for text in \"setname\" messages"
msgstr "cor de texto para valores"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -9487,11 +9560,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr ""
#, fuzzy, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sFalhou ao desabilitar a opção \"%s\""
#| msgid "%s%s%s%s has changed topic for %s%s%s to \"%s%s%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s mudou o tópico do canal %s%s%s para \"%s%s%s\""
#, fuzzy, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%sFalhou ao desabilitar a opção \"%s\""
#, c-format
@@ -9903,8 +9977,9 @@ msgstr "%s%s: tempo de conexão esgotado (mensagem 001 não recebida)"
msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: tempo de autenticação SASL esgotado"
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
#, fuzzy, c-format
#| msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s: lag está alto, reconectando ao servidor %s%s%s"
#, c-format
@@ -10114,18 +10189,6 @@ msgstr "%s%s: desconectado do servidor"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "===\t========== Fim do backlog (%d linhas) =========="
#, fuzzy
msgid "Log buffers to files"
msgstr "arquivos de configuração"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: não foi possível encontrar máscara de nome de arquigo para o buffer "
"\"%s\", o registro está desabilitado para este buffer"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: memória insuficiente"
@@ -10159,6 +10222,18 @@ msgstr "%s\t*** Início do registro ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Final do registro ****"
#, fuzzy
msgid "Log buffers to files"
msgstr "arquivos de configuração"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: não foi possível encontrar máscara de nome de arquigo para o buffer "
"\"%s\", o registro está desabilitado para este buffer"
msgid "Logging on buffers:"
msgstr "Registrando buffers:"
@@ -10246,8 +10321,13 @@ msgid ""
"off"
msgstr ""
#, fuzzy
#| msgid ""
#| "automatically save content of buffers to files (unless a buffer disables "
#| "log)"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"salvar automaticamente o conteúdo dos buffers em arquivos (exceto quando o "
"buffer desabilitar o registro)"
@@ -10311,6 +10391,34 @@ msgstr ""
"caractere de substituição para caracteres especiais em nome de arquivo feito "
"com máscara (como delimitador de diretório)"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"marca de tempo utilizada nos arquivos de registro (veja \"man strftime\" "
@@ -10619,6 +10727,11 @@ msgstr ""
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr ""
@@ -12263,6 +12376,10 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "lista de dicionários do %s:"
#, fuzzy
msgid "spell checking disabled"
msgstr "Corretor ortográfico está desabilitado"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s: \"%s\" removido"
@@ -12328,7 +12445,7 @@ msgstr "configuração do plugin aspell"
#, fuzzy
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr "dictlist || enable <idioma> || disable || addword [<idioma>] <palavra>"
@@ -12338,7 +12455,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -12363,7 +12481,11 @@ msgstr "lista de idiomas suportados para aspell"
msgid "list of installed dictionaries"
msgstr "lista de opções"
msgid "comma separated list of dictionaries to use on this buffer"
#, fuzzy
#| msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr "lista de dicionários (separados por vírgula) para uso neste buffer"
#, fuzzy, c-format
@@ -12513,9 +12635,15 @@ msgid "creating variable"
msgstr "Variáveis"
#, fuzzy, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "Executando comando: \"%s\""
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
#, fuzzy
msgid "Triggers enabled"
msgstr "Filtro \"%s\" habilitado"
@@ -12766,6 +12894,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -12900,6 +13031,11 @@ msgstr "cor de texto para gropos na lista de apelidos"
msgid "text color for post action flag (in /trigger list)"
msgstr "cor de texto para ações de linha de entrada"
#, fuzzy
#| msgid "hooks for triggers (for filter in monitor buffer)"
msgid "text color for trigger context identifier in monitor buffer"
msgstr "hooks para gatilhos (para o filtro no monitor do buffer)"
#, fuzzy
msgid "text color for regular expressions"
msgstr "cor do texto para o prefixo de erro"
@@ -13062,14 +13198,6 @@ msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr ""
"%s arquivo %s (arquivo local: %s) vai ser retomado a partir da posição %llu"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: charset inválido: \"%s\""
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: faltando argumentos (%s)"
@@ -13328,6 +13456,14 @@ msgstr "lista de transferência"
msgid "xfer pointer (optional)"
msgstr "ponteiro de transferência (opcional)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: charset inválido: \"%s\""
#, fuzzy, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: não foi possível criar pipe"
@@ -13395,3 +13531,12 @@ msgstr "%s%s: tempo esgotado para \"%s\" com %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: não foi possível conectar ao remetente"
#, fuzzy, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sFalhou ao desabilitar a opção \"%s\""
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "versão do WeeChat"
+175 -45
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-04-24 10:20+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1008,6 +1008,14 @@ msgstr "%sСброс всех опций запрещён"
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d опция сброшено, %d опций удалено"
#, fuzzy, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%s не могу сохранить сессию в файл\n"
#, fuzzy
msgid "WeeChat session saved (files *.upgrade)"
msgstr "%s не могу сохранить сессию в файл\n"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1031,10 +1039,6 @@ msgstr "Сокращения не заданы.\n"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Обновляю WeeChat...\n"
#, fuzzy, c-format
msgid "%sUnable to save session in file"
msgstr "%s не могу сохранить сессию в файл\n"
#, fuzzy, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr "%s запуск не удался (программа: \"%s\"), выхожу из WeeChat\n"
@@ -1721,6 +1725,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -2354,11 +2359,13 @@ msgid ""
msgstr ""
#, fuzzy
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr "обновить WeeChat не отключаясь от серверов"
#, fuzzy
msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[путь_к_исполняемому_файлу]"
#, fuzzy
@@ -2368,6 +2375,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -2375,9 +2385,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -2385,15 +2400,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3011,6 +3033,15 @@ msgstr ""
"разделённый запятыми список подсвечиваемых слов (регистр учитывается, слова "
"могут начинаться или кончаться \"*\" для неполного соответствия)"
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -4764,6 +4795,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -4796,7 +4829,11 @@ msgid ""
"=core.weechat) || ${buffer.active}==1)\""
msgstr ""
msgid "enable buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
@@ -6066,6 +6103,15 @@ msgstr "%s \"%s\" команда может быть выполнена толь
msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr "%s DCC: не могу установить неблокирующий режим для сокета\n"
#, fuzzy, c-format
msgid "%s%s: unable to create DCC"
msgstr "%s не могу создать сервер\n"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s не подключен к серверу \"%s\"!\n"
@@ -6514,7 +6560,8 @@ msgstr ""
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -6529,8 +6576,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
#, fuzzy
@@ -8206,6 +8259,10 @@ msgstr "отображать уведомление об отсутствии е
msgid "display a message in private when user is back (after quit on server)"
msgstr ""
#, fuzzy
msgid "display nick change in private"
msgstr "цвет ника собеседника в окне привата"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -8430,6 +8487,11 @@ msgstr "цвет текущего окна с сообщениями"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
msgid "enable smart filter for \"setname\" messages"
msgstr "цвет текущего окна с сообщениями"
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
@@ -8472,8 +8534,9 @@ msgstr "строка, вставляемая после автодополнен
msgid "color for text in account messages"
msgstr "цвет текущего окна с сообщениями"
#. TRANSLATORS: please do not translate "chghost"
#, fuzzy
msgid "color for text in chghost messages"
msgid "color for text in \"chghost\" messages"
msgstr "цвет текущего окна с сообщениями"
#, fuzzy
@@ -8488,6 +8551,11 @@ msgstr "цвет текущего окна с сообщениями"
msgid "color for text in part/quit messages"
msgstr "сообщение о выходе по-умолчанию"
#. TRANSLATORS: please do not translate "setname"
#, fuzzy
msgid "color for text in \"setname\" messages"
msgstr "цвет текущего окна с сообщениями"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -9058,11 +9126,11 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s %s(%s%s%s)%s вышел"
#, fuzzy, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%s не могу сохранить конфигурационный файл pluginов\n"
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s сменил тему %s%s%s на:"
#, fuzzy, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%s не могу сохранить конфигурационный файл pluginов\n"
#, fuzzy, c-format
@@ -9470,7 +9538,7 @@ msgid "%s%s: SASL authentication timeout"
msgstr "Не могу записать лог-файл \"%s\"\n"
#, fuzzy, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s задержка слишком высокая, отключаюсь от сервера...\n"
#, fuzzy, c-format
@@ -9672,16 +9740,6 @@ msgstr "Отключен от сервера!\n"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr ""
#, fuzzy
msgid "Log buffers to files"
msgstr "перезагрузить конфигурационный файл сервера"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: not enough memory"
msgstr "Недостаточно памяти для новой строчки\n"
@@ -9712,6 +9770,16 @@ msgstr "**** Начало log-файла"
msgid "%s\t**** End of log ****"
msgstr "**** Конец log-файла"
#, fuzzy
msgid "Log buffers to files"
msgstr "перезагрузить конфигурационный файл сервера"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
#, fuzzy
msgid "Logging on buffers:"
msgstr "Список сокращений:\n"
@@ -9798,7 +9866,8 @@ msgid ""
msgstr ""
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
msgid ""
@@ -9849,6 +9918,34 @@ msgid ""
"directory delimiter)"
msgstr ""
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
@@ -10176,6 +10273,11 @@ msgstr ""
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr ""
@@ -11800,6 +11902,10 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "конец списка /who"
#, fuzzy
msgid "spell checking disabled"
msgstr "Сокращения не заданы.\n"
#, fuzzy, c-format
msgid "%s: \"%s\" removed"
msgstr "Сокращение \"%s\" удалено\n"
@@ -11862,7 +11968,7 @@ msgid "spell plugin configuration"
msgstr "Сохраняю конфигурацию\n"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
@@ -11872,7 +11978,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -11897,7 +12004,9 @@ msgstr "Список сокращений:\n"
msgid "list of installed dictionaries"
msgstr "настроить параметры конфигурации"
msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr ""
#, fuzzy, c-format
@@ -12032,9 +12141,15 @@ msgid "creating variable"
msgstr " . тип: целочисленный\n"
#, fuzzy, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "Внутренние команды %s:\n"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
#, fuzzy
msgid "Triggers enabled"
msgstr "команда users отключена"
@@ -12284,6 +12399,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -12418,6 +12536,10 @@ msgstr "цвет ника"
msgid "text color for post action flag (in /trigger list)"
msgstr "цвет действий в поле ввода"
#, fuzzy
msgid "text color for trigger context identifier in monitor buffer"
msgstr "цвет названия сервера"
#, fuzzy
msgid "text color for regular expressions"
msgstr "цвет стрелки захода на канал (префикс)"
@@ -12585,14 +12707,6 @@ msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr ""
"DCC: файл %s%s%s (локальное имя файла: %s%s%s) будет продолжен с позиции %u\n"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "Не могу записать лог-файл \"%s\"\n"
#, fuzzy, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s нет аргумента для параметра \"%s\"\n"
@@ -12852,6 +12966,14 @@ msgstr "Список сокращений:\n"
msgid "xfer pointer (optional)"
msgstr ""
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "Не могу записать лог-файл \"%s\"\n"
#, fuzzy, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s DCC: не могу создать pipe\n"
@@ -12917,3 +13039,11 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: не могу соединиться с отправителем\n"
#, fuzzy, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%s не могу сохранить конфигурационный файл pluginов\n"
#, fuzzy
#~ msgid "WeeChat session saved"
#~ msgstr "слоган WeeChat"
+346 -62
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+0200\n"
"PO-Revision-Date: 2022-07-06 08:29+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -999,6 +999,13 @@ msgstr "%sНије дозвољено ресетовање свих опција
msgid "%d option(s) reset, %d option(s) removed"
msgstr "%d опција је ресетовано, %d опција је уклоњено"
#, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr "%sНије могуће чување WeeChat сесије (*.upgrade фајлови)"
msgid "WeeChat session saved (files *.upgrade)"
msgstr "WeeChat сесија је сачувана (*.upgrade фајлови)"
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -1025,10 +1032,6 @@ msgstr "%sНије наведен бинарни фајл"
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "WeeChat се ажурира са бинарним фајлом: „%s”..."
#, c-format
msgid "%sUnable to save session in file"
msgstr "%sНије могуће чување сесије у фајл"
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr ""
@@ -2101,6 +2104,73 @@ msgstr "функције за командну линију"
msgid "<action> [<arguments>]"
msgstr "<акција> [<аргументи>]"
#, fuzzy
#| msgid ""
#| "list of actions:\n"
#| " return: simulate key \"enter\"\n"
#| " complete_next: complete word with next completion\n"
#| " complete_previous: complete word with previous completion\n"
#| " search_text_here: search text in buffer at current position\n"
#| " search_text: search text in buffer\n"
#| " search_switch_case: switch exact case for search\n"
#| " search_switch_regex: switch search type: string/regular expression\n"
#| " search_switch_where: switch search in messages/prefixes\n"
#| " search_previous: search previous line\n"
#| " search_next: search next line\n"
#| " search_stop_here: stop search at current position\n"
#| " search_stop: stop search\n"
#| " delete_previous_char: delete previous char\n"
#| " delete_next_char: delete next char\n"
#| " delete_previous_word: delete previous word\n"
#| " delete_next_word: delete next word\n"
#| " delete_beginning_of_line: delete from beginning of line until cursor\n"
#| " delete_end_of_line: delete from cursor until end of line\n"
#| " delete_line: delete entire line\n"
#| " clipboard_paste: paste from the internal clipboard\n"
#| " transpose_chars: transpose two chars\n"
#| " undo: undo last command line action\n"
#| " redo: redo last command line action\n"
#| " move_beginning_of_line: move cursor to beginning of line\n"
#| " move_end_of_line: move cursor to end of line\n"
#| " move_previous_char: move cursor to previous char\n"
#| " move_next_char: move cursor to next char\n"
#| " move_previous_word: move cursor to previous word\n"
#| " move_next_word: move cursor to next word\n"
#| " history_previous: recall previous command in current buffer history\n"
#| " history_next: recall next command in current buffer history\n"
#| " history_global_previous: recall previous command in global history\n"
#| " history_global_next: recall next command in global history\n"
#| " jump_smart: jump to next buffer with activity\n"
#| " jump_last_buffer_displayed: jump to last buffer displayed (before last "
#| "jump to a buffer)\n"
#| " jump_previously_visited_buffer: jump to previously visited buffer\n"
#| " jump_next_visited_buffer: jump to next visited buffer\n"
#| " hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear "
#| "only lowest level in hotlist, \"highest\" to clear only highest level in "
#| "hotlist, or level mask: integer which is a combination of 1=join/part, "
#| "2=message, 4=private, 8=highlight)\n"
#| " hotlist_remove_buffer: remove current buffer from hotlist\n"
#| " hotlist_restore_buffer: restore latest hotlist removed in the current "
#| "buffer\n"
#| " hotlist_restore_all: restore latest hotlist removed in all buffers\n"
#| " grab_key: grab a key (optional argument: delay for end of grab, default "
#| "is 500 milliseconds)\n"
#| " grab_key_command: grab a key with its associated command (optional "
#| "argument: delay for end of grab, default is 500 milliseconds)\n"
#| " grab_mouse: grab mouse event code\n"
#| " grab_mouse_area: grab mouse event code with area\n"
#| " set_unread: set unread marker for all buffers\n"
#| " set_unread_current_buffer: set unread marker for current buffer\n"
#| " switch_active_buffer: switch to next merged buffer\n"
#| " switch_active_buffer_previous: switch to previous merged buffer\n"
#| " zoom_merged_buffer: zoom on merged buffer\n"
#| " insert: insert text in command line (escaped chars are allowed, see /"
#| "help print)\n"
#| " send: send text to the buffer\n"
#| " paste_start: start paste (bracketed paste mode)\n"
#| " paste_stop: stop paste (bracketed paste mode)\n"
#| "\n"
#| "This command is used by key bindings or plugins."
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@@ -2118,6 +2188,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -3202,12 +3273,15 @@ msgstr ""
" ресетовање свих опција боја:\n"
" /unset -mask weechat.color.*"
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr ""
"поновно учитавање WeeChat бинарног фајла без прекидања конекције са серверима"
"чува WeeChat сесију и поновно учитава WeeChat бинарни фајл без прекидања "
"прекидања конекције са серверима"
msgid "[-yes] [<path_to_binary>|-quit]"
msgstr "[-yes] [<путања_до_бинарног>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr "[-yes] [<путања_до_бинарног>|-save|-quit]"
msgid ""
" -yes: required if option \"weechat.look.confirm_upgrade\" is "
@@ -3215,6 +3289,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -3222,9 +3299,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -3232,15 +3314,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -3252,14 +3341,23 @@ msgstr ""
"нехотичног довршавања са „-quit”)\n"
" -quit: затвара *СВЕ* конекције, чува сесију и напушта програм "
"WeeChat, чиме се омогућава закашњена рестаурација (погледајте испод)\n"
" -save: only save the session, do not quit nor reload WeeChat; "
"фајлови конфигурације се не чувају (ако је потребно, пре ове команде можете "
"да употребите команду /save)\n"
"\n"
"Ова команда ажурира и поновно учитава WeeChat сесију која се извршава. Нови "
"WeeChat бинарни фајл мора бити компајлиран или инсталиран менаџером пакета "
"пре покретања ове команде.\n"
"\n"
"Напомена: SSL конекције се губе током ажурирања, јер тренутно са GnuTLS није "
"могуће поновно учитавање SSL сесија. Постоји аутоматско поновно успостављање "
"конекције након ажурирања.\n"
"Напомена: SSL конекције се губе током ажурирања (осим када се употреби -"
"save), јер тренутно са GnuTLS није могуће поновно учитавање SSL сесија. "
"Постоји аутоматско поновно успостављање конекције након ажурирања.\n"
"\n"
"Важно: употреба опције -save може бити опасна, препоручује се да за "
"стандардно ажурирање и рестарт користите само /upgrade (или са -quit); "
"опција -save може да се користи за редовно чување сесије и опоравак у "
"случају да је дошло до неуобичајеног завршетка рада програма (нестанак "
"напајања, крах програма, итд.)\n"
"\n"
"Процес ажурирања има 4 корака:\n"
" 1. чување сесије у фајлове за језгро и додатке (бафери, историја, ..)\n"
@@ -3268,15 +3366,21 @@ msgstr ""
" 3. чување WeeChat конфигурације (weechat.conf)\n"
" 4. извршавање новог WeeChat бинарног фајла и поновно учитавање сесије.\n"
"\n"
"Са опцијом „-quit”, процес је малко другачији:\n"
"Процес са опцијом „-quit” је следећи:\n"
" 1. затварање *СВИХ* конекција (irc, xfer, relay, ...)\n"
" 2. чување сесије у фајлове (*.upgrade)\n"
" 3. уклањање свих додатака из меморије\n"
" 4. чување WeeChat конфигурације\n"
" 5. напуштање програма WeeChat\n"
"Затим касније можете да обновите сесију командом: weechat --upgrade\n"
"\n"
"За опцију „-save” процес је следећи:\n"
" 1. чување сесије у фајлове (*.upgrade) у стању прекинуте везе за IRC "
"сервере и Релеј клијенте (али се не прекида ниједна веза)\n"
"\n"
"У случају -quit или -save, сесију касније можете опоравити следећом "
"командом: weechat --upgrade\n"
"ВАЖНО: сесију морате да обновите са потпуно истом конфигурацијом (фајлови *."
"conf).\n"
"conf) и ако је то могуће, са истом (или новијом) верзијом програма WeeChat.\n"
"WeeChat сесија може да се обнови на другој машини ако копирате садржај "
"WeeChat почетних директоријума (погледајте /debug dirs)."
@@ -4051,6 +4155,21 @@ msgstr ""
"слова узима у обзир), речи могу да почну или да се заврше са „*” чиме се "
"добија делимично подударање; пример: „test,(?-i)*toto*,flash*”"
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
"POSIX проширени регуларни израз који се користи за спречавање било каквог "
"истицања у поруци: ова опција има виши приоритет у односу на све "
"осталеопције истицања (ако се стринг пронађе у поруци, истицање се исључује "
"и све остале опције се игноришу), регуларни израз не прави разлику у "
"величини слова (употребите „(?-i)” на почетку да се величина слова не узима "
"у обзир), примери: „<flash.*>”, „(?-i)<Flash.*>”"
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -6038,6 +6157,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -6113,6 +6234,8 @@ msgstr ""
" - ${hotlist}: сирова врућа листа\n"
" - ${hotlist_priority}: „none”, „low”, „message”, „private” или "
"„highlight”\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: кашњење за бафер IRC сервера, празна у случају да нема "
"кашњења (израчуната вредност опције buflist.format.lag)\n"
" - ${format_tls_version}: индикатор TLS верзије за серверски бафер, "
@@ -6158,8 +6281,16 @@ msgstr ""
"((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}"
"==1)”"
msgid "enable buflist"
msgstr "укључује buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
"enable buflist; препроручује се да се уместо простог скривања траке употреби "
"ова опција јер она уклања и неке интерне куке које више нису потребне када "
"трака сакрије; такође можете да употребите и команду „/buflist toggle” или "
"подразумевани тастер alt+shift+b"
msgid ""
"if enabled, clicks with left/right buttons on the line with current buffer "
@@ -7817,6 +7948,17 @@ msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr ""
"%s%s: локална адреса сервер сокета није могла да се разреши: грешка %d %s"
#, c-format
msgid "%s%s: unable to create DCC"
msgstr "%s%s: DCC није могао да се креира"
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
"%s%s: DCC не може да се креира, молимо вас проверите да ли је учитан додатак "
"„xfer”"
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr "%s%s: не постоји веза са сервером „%s”!"
@@ -8365,7 +8507,8 @@ msgstr "ls || list || req|ack [<могућност> [<могућност>...]] |
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -8380,12 +8523,19 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
" ls: исписује могућности које подржава сервер\n"
" list: исписује могућности које су тренутно укључене\n"
" req: захтева могућност\n"
" req: захтева нову могућност или уклања могућност (ако почиње са „-”, на "
"пример: „-multi-prefix”)\n"
" ack: прихвата могућности које захтевају потврду са клијентске стране\n"
" end: завршава преговарање о могућностима\n"
"\n"
@@ -8400,8 +8550,14 @@ msgstr ""
"irc.server.xxx.capabilities).\n"
"\n"
"Примери:\n"
" приказ подржаних и укључених могућности:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" захтев за могућности multi-prefix и away-notify:\n"
" /cap req multi-prefix away-notify\n"
" захтев за могућност extended-join, улањање могућности multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" уклањање могућности away-notify:\n"
" /cap req -away-notify"
msgid "connect to IRC server(s)"
msgstr "повезивање са IRC сервер(ом/има)"
@@ -10247,6 +10403,11 @@ msgstr ""
"приказ поруке када се саговорник врати у приватни разговор (након изласка са "
"сервера)"
#, fuzzy
#| msgid "use same nick color for channel and private"
msgid "display nick change in private"
msgstr "иста боја надимка се користи и за канал и за приватни разговор"
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -10560,6 +10721,10 @@ msgstr "укључивање паметног филтера за „nick” п
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr "укључивање паметног филтера за „part” и „quit” поруке"
#. TRANSLATORS: please do not translate "setname"
msgid "enable smart filter for \"setname\" messages"
msgstr "укључивање паметног филтера за „setname” поруке"
msgid "enable automatic addition of temporary servers with command /connect"
msgstr "укључивање аутоматског додавања привремених сервера командом /connect"
@@ -10598,8 +10763,9 @@ msgstr "боја за више подржане TLS верзије у ставк
msgid "color for text in account messages"
msgstr "боја за текст у account порукама"
msgid "color for text in chghost messages"
msgstr "боја за текст у chghost порукама"
#. TRANSLATORS: please do not translate "chghost"
msgid "color for text in \"chghost\" messages"
msgstr "боја за текст у „chghost” порукама"
msgid "color for text in join messages"
msgstr "боја за текст у join порукама"
@@ -10610,6 +10776,10 @@ msgstr "боја за текст у kick/kill порукама"
msgid "color for text in part/quit messages"
msgstr "боја за текст у part/quit порукама"
#. TRANSLATORS: please do not translate "setname"
msgid "color for text in \"setname\" messages"
msgstr "боја за текст у „setname” порукама"
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -11190,12 +11360,12 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr "%s%s%s%s%s%s%s%s%s%s је прекинуо"
#, c-format
msgid "%sYour real name has been set to \"%s\""
msgstr "%sВаше право име је постављено на „%s"
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr "%s%s%s%s је променио право име на %s„%s%s%s”%s"
#, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgstr "%sРеално име за %s%s%s је постављено на „%s"
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr "%s%sВаше право име је постављено на %s„%s%s%s”%s"
#, c-format
msgid "%s%s: \"%s\" command received without channel"
@@ -11615,8 +11785,9 @@ msgstr "%s%s: тајмаут везе (није примљена порука 00
msgid "%s%s: SASL authentication timeout"
msgstr "%s%s: тајмаут SASL аутентификације"
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
#, fuzzy, c-format
#| msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr "%s%s: кашњење је велико, поново се успоставља веза са сервером %s%s%s"
#, c-format
@@ -11827,17 +11998,6 @@ msgstr "%s%s: прекинута је веза са сервером"
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr "%s===\t%s========== Крај старијих уноса (%d линија) =========="
msgid "Log buffers to files"
msgstr "Логовање бафера у фајл"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: маска имена фајлова за бафер „%s” не може да се пронађе, логовање је "
"искључено за овај бафер"
#, c-format
msgid "%s%s: not enough memory"
msgstr "%s%s: нема довољно слободне меморије"
@@ -11870,6 +12030,17 @@ msgstr "%s\t**** Почетак лога ****"
msgid "%s\t**** End of log ****"
msgstr "%s\t**** Крај лога ****"
msgid "Log buffers to files"
msgstr "Логовање бафера у фајл"
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
"%s%s: маска имена фајлова за бафер „%s” не може да се пронађе, логовање је "
"искључено за овај бафер"
msgid "Logging on buffers:"
msgstr "Логовање бафера:"
@@ -11992,10 +12163,11 @@ msgstr ""
"искључена"
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
"аутоматско чување садржаја бафера у фајлове (осим у случају да бафер "
"искључује логовање)"
"искључује логовање); ако је искључена, логовање се искључује у свим баферима"
msgid ""
"use ANSI color codes in lines written in log files and display backlog lines "
@@ -12066,6 +12238,46 @@ msgstr ""
"карактер који замењује специјалне карактере у именима фајлова која се "
"изграђују помоћу маске (као што је граничник за директоријуме)"
#, fuzzy
#| msgid ""
#| "compression of messages sent to clients with \"weechat\" protocol: 0 = "
#| "disable compression, 1 = low compression / fast ... 100 = best "
#| "compression / slow; the value is a percentage converted to 1-9 for zlib "
#| "and 1-19 for zstd; the default value is recommended, it offers a good "
#| "compromise between compression and speed"
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
"компресија порука које се клијентима шаљу „weechat” протоколом: 0 = без "
"компресије, 1 = ниска компресија / брзо ... 100 = најбоља компресија / "
"споро; вредност је проценат који се конвертује у 1-9 за zlib и 1-19 за zstd; "
"препоручује се подразумевана вредност јер нуди добар компромис између "
"компресије и брзине"
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"временска ознака која се користи у лог фајловима (погледајте man strftime за "
@@ -12368,6 +12580,13 @@ msgstr "WeeChat време извршавања (формат: „дана:чч:
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr "„days” (број дана) или „seconds” (број секунди) (није обавезно)"
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
"WeeChat време извршавања само за текући процес (ажурирања помоћу команде /"
"upgrade се игноришу) (формат: „дана:чч:мм:сс”)"
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr "генерисање Time-based One-Time Password (TOTP)"
@@ -14224,6 +14443,11 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr "%s листа речника:"
#, fuzzy
#| msgid "Spell checking is disabled"
msgid "spell checking disabled"
msgstr "Провера правописа је искључена"
#, c-format
msgid "%s: \"%s\" removed"
msgstr "%s: „%s” је уклоњен"
@@ -14281,20 +14505,47 @@ msgstr "Искључен је програм за проверу правопи
msgid "spell plugin configuration"
msgstr "конфигурација додатка spell"
#, fuzzy
#| msgid ""
#| "enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || "
#| "deldict || addword [<dict>] <word>"
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
"enable|disable|toggle || listdict || setdict <речн>[,<речн>...] || deldict "
"|| addword [<речн>] <реч>"
#, fuzzy
#| msgid ""
#| " enable: enable spell checker\n"
#| " disable: disable spell checker\n"
#| " toggle: toggle spell checker\n"
#| "listdict: show installed dictionaries\n"
#| " setdict: set dictionary for current buffer (multiple dictionaries can be "
#| "separated by a comma)\n"
#| " deldict: delete dictionary used on current buffer\n"
#| " addword: add a word in personal dictionary\n"
#| "\n"
#| "Input line beginning with a '/' is not checked, except for some commands "
#| "(see /set spell.check.commands).\n"
#| "\n"
#| "To enable spell checker on all buffers, use option \"default_dict\", then "
#| "enable spell checker, for example:\n"
#| " /set spell.check.default_dict \"en\"\n"
#| " /spell enable\n"
#| "\n"
#| "To display a list of suggestions in a bar, use item \"spell_suggest\".\n"
#| "\n"
#| "Default key to toggle spell checker is alt-s."
msgid ""
" enable: enable spell checker\n"
" disable: disable spell checker\n"
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -14339,7 +14590,11 @@ msgstr "листа свих подржаних језика"
msgid "list of installed dictionaries"
msgstr "листа инсталираних речника"
msgid "comma separated list of dictionaries to use on this buffer"
#, fuzzy
#| msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr ""
"листа речника раздвојених запетама који треба да се користе у овом баферу"
@@ -14490,8 +14745,16 @@ msgid "creating variable"
msgstr "креира се променљива"
#, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s извршава се команда %s„%s%s%s”%s у баферу %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr "%s%lu%s извршава се команда %s„%s%s%s”%s у баферу %s%s%s"
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
"%s%lu%s протекло: иниц=%.6fs, услови=%.6fs, regex=%.6fs, команда=%.6fs, "
"укупно=%.6fs"
msgid "Triggers enabled"
msgstr "Окидачи су укључени"
@@ -14748,6 +15011,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -14844,6 +15110,9 @@ msgstr ""
"100\" \"\" \"/bar show nicklist\"\n"
" чување конфигурације на сваки сат, у тишини:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" у тишини чува WeeChat сесију у поноћ (погледајте /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" отварање монитора окидача и приказ само модификатора и окидача чије име "
"почиње са „resize”:\n"
" /trigger monitor @modifier,resize*"
@@ -14989,6 +15258,9 @@ msgstr "боја текста за заставицу повратног код
msgid "text color for post action flag (in /trigger list)"
msgstr "боја текста за заставицу пост акције (у /trigger list)"
msgid "text color for trigger context identifier in monitor buffer"
msgstr "боја текста за идентификатор контекста окидача у монитор баферу"
msgid "text color for regular expressions"
msgstr "боја текста за регуларне изразе"
@@ -15158,14 +15430,6 @@ msgstr "%s: слање захтева за разговор ка %s (%s.%s)"
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr "%s: фајл %s (локално име фајла: %s) ће се наставити са позиције %llu"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr "%s%s: адреса „%s” се разрешила у већи sockaddr од очекиваног"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: неважећа адреса „%s”: грешка %d %s"
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr "%s%s: недостају аргументи (%s)"
@@ -15435,6 +15699,14 @@ msgstr "листа xfer"
msgid "xfer pointer (optional)"
msgstr "показивач на xfer (није обавезан)"
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr "%s%s: адреса „%s” се разрешила у већи sockaddr од очекиваног"
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr "%s%s: неважећа адреса „%s”: грешка %d %s"
#, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr "%s%s: пајп није могао да се креира: грешка %d %s"
@@ -15502,3 +15774,15 @@ msgstr "%s%s: тајмаут за „%s” са %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: повезивање није успело: неочекивана грешка (%d)"
#~ msgid "enable buflist"
#~ msgstr "укључује buflist"
#, c-format
#~ msgid "%sReal name of %s%s%s has been set to \"%s\""
#~ msgstr "%sРеално име за %s%s%s је постављено на „%s”"
#, fuzzy
#~| msgid "WeeChat version"
#~ msgid "WeeChat session saved"
#~ msgstr "верзија програма WeeChat"
+677 -383
View File
File diff suppressed because it is too large Load Diff
+159 -43
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-06-18 16:05+0200\n"
"POT-Creation-Date: 2022-09-28 20:50+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"
@@ -908,6 +908,13 @@ msgstr ""
msgid "%d option(s) reset, %d option(s) removed"
msgstr ""
#, c-format
msgid "%sUnable to save WeeChat session (files *.upgrade)"
msgstr ""
msgid "WeeChat session saved (files *.upgrade)"
msgstr ""
#, c-format
msgid ""
"%sCan't upgrade: there is one or more background process (hook type "
@@ -931,10 +938,6 @@ msgstr ""
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr ""
#, c-format
msgid "%sUnable to save session in file"
msgstr ""
#, c-format
msgid "***** Error: exec failed (program: \"%s\"), exiting WeeChat"
msgstr ""
@@ -1561,6 +1564,7 @@ msgid ""
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word (until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until cursor\n"
" delete_end_of_line: delete from cursor until end of line\n"
@@ -2157,10 +2161,12 @@ msgid ""
" /unset -mask weechat.color.*"
msgstr ""
msgid "reload the WeeChat binary without disconnecting from servers"
msgid ""
"save WeeChat session and reload the WeeChat binary without disconnecting "
"from servers"
msgstr ""
msgid "[-yes] [<path_to_binary>|-quit]"
msgid "[-yes] [<path_to_binary>|-save|-quit]"
msgstr ""
msgid ""
@@ -2169,6 +2175,9 @@ msgid ""
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental completion "
"with \"-quit\")\n"
" -save: only save the session, do not quit nor reload WeeChat; the "
"configuration files are not saved (if needed you can use /save before this "
"command)\n"
" -quit: close *ALL* connections, save session and quit WeeChat, "
"which makes possible a delayed restoration (see below)\n"
"\n"
@@ -2176,9 +2185,14 @@ msgid ""
"binary must have been compiled or installed with a package manager before "
"running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of SSL "
"sessions is currently not possible with GnuTLS. There is automatic "
"reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), because "
"the reload of SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended to use "
"only /upgrade (or with -quit) for a standard upgrade and a restart; the "
"option -save can be used to save the session regularly and restore it in "
"case of after abnormal exit (power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, history, ..)\n"
@@ -2186,15 +2200,22 @@ msgid ""
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state for IRC "
"servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with this command: "
"weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same configuration "
"(files *.conf).\n"
"(files *.conf) and if possible the same WeeChat version (or a more recent "
"one).\n"
"It is possible to restore WeeChat session on another machine if you copy the "
"content of WeeChat home directories (see /debug dirs)."
msgstr ""
@@ -2735,6 +2756,15 @@ msgid ""
"flash*\""
msgstr ""
msgid ""
"POSIX extended regular expression used to prevent any highlight from a "
"message: this option has higher priority over other highlight options (if "
"the string is found in the message, the highlight is disabled and the other "
"options are ignored), regular expression is case insensitive (use \"(?-i)\" "
"at beginning to make it case sensitive), examples: \"<flash.*>\", \"(?-"
"i)<Flash.*>\""
msgstr ""
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
"or not, at least one match in string must be surrounded by delimiters (chars "
@@ -4327,6 +4357,8 @@ msgid ""
" - ${hotlist}: the raw hotlist\n"
" - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
"\"highlight\"\n"
" - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
"private, 3 = highlight\n"
" - ${format_lag}: the lag for an IRC server buffer, empty if there's no "
"lag (evaluation of option buflist.format.lag)\n"
" - ${format_tls_version}: indicator of TLS version for a server buffer, "
@@ -4359,7 +4391,11 @@ msgid ""
"=core.weechat) || ${buffer.active}==1)\""
msgstr ""
msgid "enable buflist"
msgid ""
"enable buflist; it is recommended to use this option instead of just hiding "
"the bar because it also removes some internal hooks that are not needed any "
"more when the bar is hidden; you can also use the command \"/buflist "
"toggle\" or use the default key alt+shift+b"
msgstr ""
msgid ""
@@ -5539,6 +5575,15 @@ msgstr ""
msgid "%s%s: unable to resolve local address of server socket: error %d %s"
msgstr ""
#, c-format
msgid "%s%s: unable to create DCC"
msgstr ""
#, c-format
msgid ""
"%s%s: unable to create DCC, please check that the \"xfer\" plugin is loaded"
msgstr ""
#, c-format
msgid "%s%s: not connected to server \"%s\"!"
msgstr ""
@@ -5959,7 +6004,8 @@ msgstr ""
msgid ""
" ls: list the capabilities supported by the server\n"
" list: list the capabilities currently enabled\n"
" req: request a capability\n"
" req: request a new capability or remove a capability (if starting with \"-"
"\", for example: \"-multi-prefix\")\n"
" ack: acknowledge capabilities which require client-side acknowledgement\n"
" end: end the capability negotiation\n"
"\n"
@@ -5974,8 +6020,14 @@ msgid ""
"capabilities).\n"
"\n"
"Examples:\n"
" /cap\n"
" /cap req multi-prefix away-notify"
" display supported and enabled capabilities:\n"
" /cap\n"
" request capabilities multi-prefix and away-notify:\n"
" /cap req multi-prefix away-notify\n"
" request capability extended-join, remove capability multi-prefix:\n"
" /cap req extended-join -multi-prefix\n"
" remove capability away-notify:\n"
" /cap req -away-notify"
msgstr ""
msgid "connect to IRC server(s)"
@@ -7305,6 +7357,9 @@ msgstr ""
msgid "display a message in private when user is back (after quit on server)"
msgstr ""
msgid "display nick change in private"
msgstr ""
msgid ""
"display a warning in private buffer if the address of remote nick has "
"changed; this option is disabled by default because servers like bitlbee are "
@@ -7520,6 +7575,10 @@ msgstr ""
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
#. TRANSLATORS: please do not translate "setname"
msgid "enable smart filter for \"setname\" messages"
msgstr ""
msgid "enable automatic addition of temporary servers with command /connect"
msgstr ""
@@ -7555,7 +7614,8 @@ msgstr ""
msgid "color for text in account messages"
msgstr ""
msgid "color for text in chghost messages"
#. TRANSLATORS: please do not translate "chghost"
msgid "color for text in \"chghost\" messages"
msgstr ""
msgid "color for text in join messages"
@@ -7567,6 +7627,10 @@ msgstr ""
msgid "color for text in part/quit messages"
msgstr ""
#. TRANSLATORS: please do not translate "setname"
msgid "color for text in \"setname\" messages"
msgstr ""
#. TRANSLATORS: please do not translate the list of WeeChat color names at the end of string
msgid ""
"remap mirc colors in messages using a hashtable: keys are \"fg,bg\" as "
@@ -8087,11 +8151,11 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit"
msgstr ""
#, c-format
msgid "%sYour real name has been set to \"%s\""
msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s"
msgstr ""
#, c-format
msgid "%sReal name of %s%s%s has been set to \"%s\""
msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s"
msgstr ""
#, c-format
@@ -8485,7 +8549,7 @@ msgid "%s%s: SASL authentication timeout"
msgstr ""
#, c-format
msgid "%s%s: lag is high, reconnecting to server %s%s%s"
msgid "%s%s: lag is high, disconnecting from server %s%s%s"
msgstr ""
#, c-format
@@ -8684,15 +8748,6 @@ msgstr ""
msgid "%s===\t%s========== End of backlog (%d lines) =========="
msgstr ""
msgid "Log buffers to files"
msgstr ""
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
#, c-format
msgid "%s%s: not enough memory"
msgstr ""
@@ -8723,6 +8778,15 @@ msgstr ""
msgid "%s\t**** End of log ****"
msgstr ""
msgid "Log buffers to files"
msgstr ""
#, c-format
msgid ""
"%s%s: unable to find filename mask for buffer \"%s\", logging is disabled "
"for this buffer"
msgstr ""
msgid "Logging on buffers:"
msgstr ""
@@ -8805,7 +8869,8 @@ msgid ""
msgstr ""
msgid ""
"automatically save content of buffers to files (unless a buffer disables log)"
"automatically save content of buffers to files (unless a buffer disables "
"log); if disabled, logging is disabled on all buffers"
msgstr ""
msgid ""
@@ -8856,6 +8921,34 @@ msgid ""
"directory delimiter)"
msgstr ""
msgid ""
"compression level for rotated log files (with extension \".1\", \".2\", "
"etc.), if option logger.file.rotation_compression_type is enabled: 1 = low "
"compression / fast ... 100 = best compression / slow; the value is a "
"percentage converted to 1-9 for gzip and 1-19 for zstd; the default value is "
"recommended, it offers a good compromise between compression and speed"
msgstr ""
msgid ""
"compression type for rotated log files; if set to \"none\", rotated log "
"files are not compressed; WARNING: if rotation was enabled with another type "
"of compression (or no compression), you must first unload the logger plugin, "
"compress files with the new type (or decompress files), then change the "
"option in logger.conf, then load the logger plugin"
msgstr ""
msgid ""
"when this size is reached, a rotation of log files is performed: the "
"existing rotated log files are renamed (.1 becomes .2, .2 becomes .3, etc.) "
"and the current file is renamed with extension .1; an integer number with a "
"suffix is allowed: b = bytes (default if no unit given), k = kilobytes, m = "
"megabytes, g = gigabytes, t = terabytes; example: \"2g\" causes a rotation "
"if the file size is > 2,000,000,000 bytes; if set to \"0\", no rotation is "
"performed (unlimited log size); WARNING: before changing this option, you "
"should first set the compression type via option logger.file."
"rotation_compression_type"
msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
@@ -9141,6 +9234,11 @@ msgstr ""
msgid "\"days\" (number of days) or \"seconds\" (number of seconds) (optional)"
msgstr ""
msgid ""
"WeeChat uptime for the current process only (upgrades with /upgrade command "
"are ignored) (format: \"days:hh:mm:ss\")"
msgstr ""
msgid "generate a Time-based One-Time Password (TOTP)"
msgstr ""
@@ -10639,6 +10737,9 @@ msgstr ""
msgid "%s dictionaries list:"
msgstr ""
msgid "spell checking disabled"
msgstr ""
#, c-format
msgid "%s: \"%s\" removed"
msgstr ""
@@ -10696,7 +10797,7 @@ msgid "spell plugin configuration"
msgstr ""
msgid ""
"enable|disable|toggle || listdict || setdict <dict>[,<dict>...] || deldict "
"enable|disable|toggle || listdict || setdict -|<dict>[,<dict>...] || deldict "
"|| addword [<dict>] <word>"
msgstr ""
@@ -10706,7 +10807,8 @@ msgid ""
" toggle: toggle spell checker\n"
"listdict: show installed dictionaries\n"
" setdict: set dictionary for current buffer (multiple dictionaries can be "
"separated by a comma)\n"
"separated by a comma, the special value \"-\" disables spell checking on "
"current buffer)\n"
" deldict: delete dictionary used on current buffer\n"
" addword: add a word in personal dictionary\n"
"\n"
@@ -10729,7 +10831,9 @@ msgstr ""
msgid "list of installed dictionaries"
msgstr ""
msgid "comma separated list of dictionaries to use on this buffer"
msgid ""
"comma separated list of dictionaries to use on this buffer (special value \"-"
"\" disables spell checking on this buffer)"
msgstr ""
#, c-format
@@ -10854,7 +10958,13 @@ msgid "creating variable"
msgstr ""
#, c-format
msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s"
msgstr ""
#, c-format
msgid ""
"%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, "
"total=%.6fs"
msgstr ""
msgid "Triggers enabled"
@@ -11099,6 +11209,9 @@ msgid ""
"100\" \"\" \"/bar show nicklist\"\n"
" silently save config each hour:\n"
" /trigger add cfgsave timer 3600000;0;0 \"\" \"\" \"/mute /save\"\n"
" silently save WeeChat session at midnight (see /help upgrade):\n"
" /trigger add session_save signal day_changed \"\" \"\" \"/mute /upgrade -"
"save\"\n"
" open trigger monitor and show only modifiers and triggers whose name "
"starts with \"resize\":\n"
" /trigger monitor @modifier,resize*"
@@ -11219,6 +11332,9 @@ msgstr ""
msgid "text color for post action flag (in /trigger list)"
msgstr ""
msgid "text color for trigger context identifier in monitor buffer"
msgstr ""
msgid "text color for regular expressions"
msgstr ""
@@ -11373,14 +11489,6 @@ msgstr ""
msgid "%s: file %s (local filename: %s) will be resumed at position %llu"
msgstr ""
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr ""
#, c-format
msgid "%s%s: missing arguments (%s)"
msgstr ""
@@ -11604,6 +11712,14 @@ msgstr ""
msgid "xfer pointer (optional)"
msgstr ""
#, c-format
msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected"
msgstr ""
#, c-format
msgid "%s%s: invalid address \"%s\": error %d %s"
msgstr ""
#, c-format
msgid "%s%s: unable to create pipe: error %d %s"
msgstr ""
+2
View File
@@ -88,6 +88,8 @@ include_directories(${GNUTLS_INCLUDE_PATH})
include_directories(${CURL_INCLUDE_DIRS})
include_directories(${ZSTD_INCLUDE_DIRS})
include_directories(${CMAKE_BINARY_DIR})
add_library(weechat_core STATIC ${LIB_CORE_SRC})
target_link_libraries(weechat_core coverage_config)
+1 -1
View File
@@ -17,7 +17,7 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS) $(CURL_CFLAGS)
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS) $(CURL_CFLAGS) $(ZLIB_CFLAGS) $(ZSTD_CFLAGS)
noinst_LIBRARIES = lib_weechat_core.a
+2 -3
View File
@@ -43,8 +43,8 @@
char *
hook_hsignal_get_description (struct t_hook *hook)
{
return string_build_with_split_string (
(const char **)(HOOK_HSIGNAL(hook, signals)), ";");
return string_rebuild_split_string (
(const char **)(HOOK_HSIGNAL(hook, signals)), ";", 0, -1);
}
/*
@@ -204,7 +204,6 @@ hook_hsignal_add_to_infolist (struct t_infolist_item *item,
if (!infolist_new_var_pointer (item, "callback", HOOK_HSIGNAL(hook, callback)))
return 0;
i = 0;
for (i = 0; i < HOOK_HSIGNAL(hook, num_signals); i++)
{
snprintf (option_name, sizeof (option_name), "signal_%05d", i);
+9 -6
View File
@@ -71,6 +71,8 @@ hook_line (struct t_weechat_plugin *plugin, const char *buffer_type,
{
struct t_hook *new_hook;
struct t_hook_line *new_hook_line;
int priority;
const char *ptr_buffer_type;
if (!callback)
return NULL;
@@ -85,17 +87,18 @@ hook_line (struct t_weechat_plugin *plugin, const char *buffer_type,
return NULL;
}
hook_init_data (new_hook, plugin, HOOK_TYPE_LINE, HOOK_PRIORITY_DEFAULT,
hook_get_priority_and_name (buffer_type, &priority, &ptr_buffer_type);
hook_init_data (new_hook, plugin, HOOK_TYPE_LINE, priority,
callback_pointer, callback_data);
new_hook->hook_data = new_hook_line;
new_hook_line->callback = callback;
if (!buffer_type || !buffer_type[0])
if (!ptr_buffer_type || !ptr_buffer_type[0])
new_hook_line->buffer_type = GUI_BUFFER_TYPE_DEFAULT;
else if (strcmp (buffer_type, "*") == 0)
else if (strcmp (ptr_buffer_type, "*") == 0)
new_hook_line->buffer_type = -1;
else
new_hook_line->buffer_type = gui_buffer_search_type (buffer_type);
new_hook_line->buffer_type = gui_buffer_search_type (ptr_buffer_type);
new_hook_line->buffers = string_split (
(buffer_name && buffer_name[0]) ? buffer_name : "*",
",",
@@ -166,8 +169,8 @@ hook_line_exec (struct t_gui_line *line)
HASHTABLE_SET_TIME("date_printed", line->data->date_printed);
HASHTABLE_SET_STR_NOT_NULL("str_time", line->data->str_time);
HASHTABLE_SET_INT("tags_count", line->data->tags_count);
str_tags = string_build_with_split_string (
(const char **)line->data->tags_array, ",");
str_tags = string_rebuild_split_string (
(const char **)line->data->tags_array, ",", 0, -1);
HASHTABLE_SET_STR_NOT_NULL("tags", str_tags);
if (str_tags)
free (str_tags);
+2 -3
View File
@@ -43,8 +43,8 @@
char *
hook_signal_get_description (struct t_hook *hook)
{
return string_build_with_split_string (
(const char **)(HOOK_SIGNAL(hook, signals)), ";");
return string_rebuild_split_string (
(const char **)(HOOK_SIGNAL(hook, signals)), ";", 0, -1);
}
/*
@@ -205,7 +205,6 @@ hook_signal_add_to_infolist (struct t_infolist_item *item,
if (!infolist_new_var_pointer (item, "callback", HOOK_SIGNAL(hook, callback)))
return 0;
i = 0;
for (i = 0; i < HOOK_SIGNAL(hook, num_signals); i++)
{
snprintf (option_name, sizeof (option_name), "signal_%05d", i);
+54 -13
View File
@@ -3294,6 +3294,8 @@ COMMAND_CALLBACK(input)
gui_input_delete_next_char (buffer);
else if (string_strcasecmp (argv[1], "delete_previous_word") == 0)
gui_input_delete_previous_word (buffer);
else if (string_strcasecmp (argv[1], "delete_previous_word_whitespace") == 0)
gui_input_delete_previous_word_whitespace (buffer);
else if (string_strcasecmp (argv[1], "delete_next_word") == 0)
gui_input_delete_next_word (buffer);
else if (string_strcasecmp (argv[1], "delete_beginning_of_line") == 0)
@@ -5582,8 +5584,8 @@ COMMAND_CALLBACK(repeat)
repeat_args[0] = strdup (buffer->full_name);
repeat_args[1] = strdup (argv_eol[arg_count + 1]);
repeat_args[2] = (input_commands_allowed) ?
string_build_with_split_string (
(const char **)input_commands_allowed, ",") : NULL;
string_rebuild_split_string (
(const char **)input_commands_allowed, ",", 0, -1) : NULL;
hook_timer (NULL, interval, 0, count - 1,
&command_repeat_timer_cb, repeat_args, NULL);
}
@@ -6537,6 +6539,24 @@ COMMAND_CALLBACK(upgrade)
return WEECHAT_RC_OK;
}
if ((argc > index_args)
&& (string_strcasecmp (argv[index_args], "-save") == 0))
{
/* send "upgrade" signal to plugins */
(void) hook_signal_send ("upgrade", WEECHAT_HOOK_SIGNAL_STRING,
"save");
/* save WeeChat session */
if (!upgrade_weechat_save())
{
gui_chat_printf (NULL,
_("%sUnable to save WeeChat session "
"(files *.upgrade)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
}
gui_chat_printf (NULL, _("WeeChat session saved (files *.upgrade)"));
return WEECHAT_RC_OK;
}
/*
* it is forbidden to upgrade while there are some background process
* (hook type "process" or "connect")
@@ -6623,7 +6643,8 @@ COMMAND_CALLBACK(upgrade)
if (!upgrade_weechat_save ())
{
gui_chat_printf (NULL,
_("%sUnable to save session in file"),
_("%sUnable to save WeeChat session "
"(files *.upgrade)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
if (ptr_binary)
free (ptr_binary);
@@ -7966,6 +7987,8 @@ command_init ()
" delete_previous_char: delete previous char\n"
" delete_next_char: delete next char\n"
" delete_previous_word: delete previous word\n"
" delete_previous_word_whitespace: delete previous word "
"(until whitespace)\n"
" delete_next_word: delete next word\n"
" delete_beginning_of_line: delete from beginning of line until "
"cursor\n"
@@ -8022,7 +8045,8 @@ command_init ()
"search_text || search_switch_case || search_switch_regex || "
"search_switch_where || search_previous || search_next || "
"search_stop_here || search_stop || delete_previous_char || "
"delete_next_char || delete_previous_word || delete_next_word || "
"delete_next_char || delete_previous_word || "
"delete_previous_word_whitespace || delete_next_word || "
"delete_beginning_of_line || delete_end_of_line || delete_line || "
"clipboard_paste || transpose_chars || undo || redo || "
"move_beginning_of_line || move_end_of_line || move_previous_char || "
@@ -8614,13 +8638,17 @@ command_init ()
&command_unset, NULL, NULL);
hook_command (
NULL, "upgrade",
N_("reload the WeeChat binary without disconnecting from servers"),
N_("[-yes] [<path_to_binary>|-quit]"),
N_("save WeeChat session and reload the WeeChat binary without "
"disconnecting from servers"),
N_("[-yes] [<path_to_binary>|-save|-quit]"),
N_(" -yes: required if option \"weechat.look.confirm_upgrade\" "
"is enabled\n"
"path_to_binary: path to WeeChat binary (default is current binary)\n"
" -dummy: do nothing (option used to prevent accidental "
"completion with \"-quit\")\n"
" -save: only save the session, do not quit nor reload "
"WeeChat; the configuration files are not saved (if needed you can "
"use /save before this command)\n"
" -quit: close *ALL* connections, save session and quit "
"WeeChat, which makes possible a delayed restoration (see below)\n"
"\n"
@@ -8628,9 +8656,15 @@ command_init ()
"new WeeChat binary must have been compiled or installed with a "
"package manager before running this command.\n"
"\n"
"Note: SSL connections are lost during upgrade, because reload of "
"SSL sessions is currently not possible with GnuTLS. There is "
"automatic reconnection after upgrade.\n"
"Note: SSL connections are lost during upgrade (except with -save), "
"because the reload of SSL sessions is currently not possible with "
"GnuTLS. There is automatic reconnection after upgrade.\n"
"\n"
"Important: use of option -save can be dangerous, it is recommended "
"to use only /upgrade (or with -quit) for a standard upgrade and "
"a restart; the option -save can be used to save the session "
"regularly and restore it in case of after abnormal exit "
"(power outage, crash, etc.)\n"
"\n"
"Upgrade process has 4 steps:\n"
" 1. save session into files for core and plugins (buffers, "
@@ -8640,18 +8674,25 @@ command_init ()
" 3. save WeeChat configuration (weechat.conf)\n"
" 4. execute new WeeChat binary and reload session.\n"
"\n"
"With option \"-quit\", the process is slightly different:\n"
"With option \"-quit\", the process is:\n"
" 1. close *ALL* connections (irc, xfer, relay, ...)\n"
" 2. save session into files (*.upgrade)\n"
" 3. unload all plugins\n"
" 4. save WeeChat configuration\n"
" 5. quit WeeChat\n"
"Then later you can restore session with command: weechat --upgrade\n"
"\n"
"With option \"-save\", the process is:\n"
" 1. save session into files (*.upgrade) with a disconnected state "
"for IRC servers and Relay clients (but no disconnection is made)\n"
"\n"
"With -quit or -save, you can restore the session later with "
"this command: weechat --upgrade\n"
"IMPORTANT: you must restore the session with exactly same "
"configuration (files *.conf).\n"
"configuration (files *.conf) and if possible the same WeeChat "
"version (or a more recent one).\n"
"It is possible to restore WeeChat session on another machine if you "
"copy the content of WeeChat home directories (see /debug dirs)."),
"%(filename)|-dummy|-quit",
"%(filename)|-dummy|-save|-quit",
&command_upgrade, NULL, NULL);
hook_command (
NULL, "uptime",
+2 -2
View File
@@ -3387,8 +3387,8 @@ config_file_add_option_to_infolist (struct t_infolist *infolist,
{
goto error;
}
string_values = string_build_with_split_string (
(const char **)option->string_values, "|");
string_values = string_rebuild_split_string (
(const char **)option->string_values, "|", 0, -1);
if (!infolist_new_var_string (ptr_item, "string_values", string_values))
{
if (string_values)
+62
View File
@@ -121,6 +121,7 @@ struct t_config_option *config_look_day_change_message_2dates;
struct t_config_option *config_look_eat_newline_glitch;
struct t_config_option *config_look_emphasized_attributes;
struct t_config_option *config_look_highlight;
struct t_config_option *config_look_highlight_disable_regex;
struct t_config_option *config_look_highlight_regex;
struct t_config_option *config_look_highlight_tags;
struct t_config_option *config_look_hotlist_add_conditions;
@@ -321,6 +322,7 @@ int config_length_prefix_same_nick_middle = 0;
struct t_hook *config_day_change_timer = NULL;
int config_day_change_old_day = -1;
int config_emphasized_attributes = 0;
regex_t *config_highlight_disable_regex = NULL;
regex_t *config_highlight_regex = NULL;
char ***config_highlight_tags = NULL;
int config_num_highlight_tags = 0;
@@ -912,6 +914,43 @@ config_change_emphasized_attributes (const void *pointer, void *data,
gui_window_ask_refresh (1);
}
/*
* Callback for changes on option "weechat.look.highlight_disable_regex".
*/
void
config_change_highlight_disable_regex (const void *pointer, void *data,
struct t_config_option *option)
{
/* make C compiler happy */
(void) pointer;
(void) data;
(void) option;
if (config_highlight_disable_regex)
{
regfree (config_highlight_disable_regex);
free (config_highlight_disable_regex);
config_highlight_disable_regex = NULL;
}
if (CONFIG_STRING(config_look_highlight_disable_regex)
&& CONFIG_STRING(config_look_highlight_disable_regex)[0])
{
config_highlight_disable_regex = malloc (sizeof (*config_highlight_disable_regex));
if (config_highlight_disable_regex)
{
if (string_regcomp (config_highlight_disable_regex,
CONFIG_STRING(config_look_highlight_disable_regex),
REG_EXTENDED | REG_ICASE) != 0)
{
free (config_highlight_disable_regex);
config_highlight_disable_regex = NULL;
}
}
}
}
/*
* Callback for changes on option "weechat.look.highlight_regex".
*/
@@ -3035,6 +3074,20 @@ config_weechat_init_options ()
"example: \"test,(?-i)*toto*,flash*\""),
NULL, 0, 0, "", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
config_look_highlight_disable_regex = config_file_new_option (
weechat_config_file, ptr_section,
"highlight_disable_regex", "string",
N_("POSIX extended regular expression used to prevent any highlight "
"from a message: this option has higher priority over other "
"highlight options (if the string is found in the message, the "
"highlight is disabled and the other options are ignored), "
"regular expression is case insensitive (use \"(?-i)\" at beginning "
"to make it case sensitive), examples: "
"\"<flash.*>\", \"(?-i)<Flash.*>\""),
NULL, 0, 0, "", NULL, 0,
NULL, NULL, NULL,
&config_change_highlight_disable_regex, NULL, NULL,
NULL, NULL, NULL);
config_look_highlight_regex = config_file_new_option (
weechat_config_file, ptr_section,
"highlight_regex", "string",
@@ -4876,6 +4929,8 @@ config_weechat_init ()
&config_day_change_timer_cb,
NULL, NULL);
}
if (!config_highlight_disable_regex)
config_change_highlight_disable_regex (NULL, NULL, NULL);
if (!config_highlight_regex)
config_change_highlight_regex (NULL, NULL, NULL);
if (!config_highlight_tags)
@@ -4937,6 +4992,13 @@ config_weechat_free ()
{
config_file_free (weechat_config_file);
if (config_highlight_disable_regex)
{
regfree (config_highlight_disable_regex);
free (config_highlight_disable_regex);
config_highlight_disable_regex = NULL;
}
if (config_highlight_regex)
{
regfree (config_highlight_regex);
+2
View File
@@ -173,6 +173,7 @@ extern struct t_config_option *config_look_day_change_message_2dates;
extern struct t_config_option *config_look_eat_newline_glitch;
extern struct t_config_option *config_look_emphasized_attributes;
extern struct t_config_option *config_look_highlight;
extern struct t_config_option *config_look_highlight_disable_regex;
extern struct t_config_option *config_look_highlight_regex;
extern struct t_config_option *config_look_highlight_tags;
extern struct t_config_option *config_look_hotlist_add_conditions;
@@ -357,6 +358,7 @@ extern int config_length_nick_prefix_suffix;
extern int config_length_prefix_same_nick;
extern int config_length_prefix_same_nick_middle;
extern int config_emphasized_attributes;
extern regex_t *config_highlight_disable_regex;
extern regex_t *config_highlight_regex;
extern char ***config_highlight_tags;
extern int config_num_highlight_tags;
+100
View File
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <sys/stat.h>
#include <time.h>
#include <math.h>
#include <gcrypt.h>
@@ -159,6 +160,105 @@ hash_end:
return rc;
}
/*
* Computes hash of file using the given hash algorithm.
*
* The hash size depends on the algorithm, common ones are:
*
* GCRY_MD_CRC32 32 bits == 4 bytes
* GCRY_MD_MD5 128 bits == 16 bytes
* GCRY_MD_SHA1 160 bits == 20 bytes
* GCRY_MD_SHA224 224 bits == 28 bytes
* GCRY_MD_SHA256 256 bits == 32 bytes
* GCRY_MD_SHA384 384 bits == 48 bytes
* GCRY_MD_SHA512 512 bits == 64 bytes
* GCRY_MD_SHA3_224 224 bits == 28 bytes (libgcrypt 1.7.0)
* GCRY_MD_SHA3_256 256 bits == 32 bytes (libgcrypt 1.7.0)
* GCRY_MD_SHA3_384 384 bits == 48 bytes (libgcrypt 1.7.0)
* GCRY_MD_SHA3_512 512 bits == 64 bytes (libgcrypt 1.7.0)
*
* The result hash is stored in "hash" (the buffer must be large enough).
*
* If hash_size is not NULL, the length of hash is stored in *hash_size
* (in bytes).
*
* Returns:
* 1: OK
* 0: error
*/
int
weecrypto_hash_file (const char *filename, int hash_algo,
void *hash, int *hash_size)
{
gcry_md_hd_t *hd_md;
struct stat st;
FILE *file;
size_t num_read;
int rc, hd_md_opened, algo_size;
unsigned char *ptr_hash;
char buffer[4096];
rc = 0;
hd_md = NULL;
hd_md_opened = 0;
file = NULL;
if (!hash)
goto hash_end;
if (hash_size)
*hash_size = 0;
if (!filename || !filename[0] || !hash)
goto hash_end;
if (stat (filename, &st) == -1)
goto hash_end;
file = fopen (filename, "r");
if (!file)
goto hash_end;
hd_md = malloc (sizeof (gcry_md_hd_t));
if (!hd_md)
goto hash_end;
if (gcry_md_open (hd_md, hash_algo, 0) != 0)
goto hash_end;
hd_md_opened = 1;
while (!feof (file))
{
num_read = fread (buffer, 1, sizeof (buffer), file);
if (num_read == 0)
break;
gcry_md_write (*hd_md, buffer, num_read);
}
ptr_hash = gcry_md_read (*hd_md, hash_algo);
if (!ptr_hash)
goto hash_end;
algo_size = gcry_md_get_algo_dlen (hash_algo);
memcpy (hash, ptr_hash, algo_size);
if (hash_size)
*hash_size = algo_size;
rc = 1;
hash_end:
if (hd_md)
{
if (hd_md_opened)
gcry_md_close (*hd_md);
free (hd_md);
}
if (file)
fclose (file);
return rc;
}
/*
* Computes PKCS#5 Passphrase Based Key Derivation Function number 2 (PBKDF2)
* hash of data.
+2
View File
@@ -26,6 +26,8 @@
extern int weecrypto_get_hash_algo (const char *hash_algo);
extern int weecrypto_hash (const void *data, int data_size, int hash_algo,
void *hash, int *hash_size);
extern int weecrypto_hash_file (const char *filename, int hash_algo,
void *hash, int *hash_size);
extern int weecrypto_hash_pbkdf2 (const void *data, int data_size,
int hash_algo,
const void *salt, int salt_size,
+659 -319
View File
@@ -44,6 +44,8 @@
#include <unistd.h>
#include <dirent.h>
#include <ftw.h>
#include <zlib.h>
#include <zstd.h>
#include "weechat.h"
#include "wee-config.h"
@@ -293,324 +295,6 @@ dir_rmtree (const char *directory)
return (rc == 0) ? 1 : 0;
}
/*
* Finds files in a directory and executes a function on each file.
*/
void
dir_exec_on_files (const char *directory, int recurse_subdirs,
int hidden_files,
void (*callback)(void *data, const char *filename),
void *callback_data)
{
char complete_filename[PATH_MAX];
DIR *dir;
struct dirent *entry;
struct stat statbuf;
if (!directory || !callback)
return;
dir = opendir (directory);
if (dir)
{
while ((entry = readdir (dir)))
{
if (hidden_files || (entry->d_name[0] != '.'))
{
snprintf (complete_filename, sizeof (complete_filename),
"%s/%s", directory, entry->d_name);
lstat (complete_filename, &statbuf);
if (S_ISDIR(statbuf.st_mode))
{
if (recurse_subdirs
&& (strcmp (entry->d_name, ".") != 0)
&& (strcmp (entry->d_name, "..") != 0))
{
dir_exec_on_files (complete_filename, 1, hidden_files,
callback, callback_data);
}
}
else
{
(*callback) (callback_data, complete_filename);
}
}
}
closedir (dir);
}
}
/*
* Searches for the full name of a WeeChat library with name and extension
* (searches first in WeeChat user's dir, then WeeChat global lib directory).
*
* Returns name of library found, NULL if not found.
*
* Note: result must be freed after use (if not NULL).
*/
char *
dir_search_full_lib_name_ext (const char *filename, const char *extension,
const char *plugins_dir)
{
char *name_with_ext, *final_name, *extra_libdir;
int length;
struct stat st;
length = strlen (filename) + strlen (extension) + 1;
name_with_ext = malloc (length);
if (!name_with_ext)
return NULL;
snprintf (name_with_ext, length,
"%s%s",
filename,
(strchr (filename, '.')) ? "" : extension);
/* try libdir from environment variable WEECHAT_EXTRA_LIBDIR */
extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
if (extra_libdir && extra_libdir[0])
{
length = strlen (extra_libdir) + strlen (name_with_ext) +
strlen (plugins_dir) + 16;
final_name = malloc (length);
if (!final_name)
{
free (name_with_ext);
return NULL;
}
snprintf (final_name, length,
"%s%s%s%s%s",
extra_libdir,
DIR_SEPARATOR,
plugins_dir,
DIR_SEPARATOR,
name_with_ext);
if ((stat (final_name, &st) == 0) && (st.st_size > 0))
{
free (name_with_ext);
return final_name;
}
free (final_name);
}
/* try WeeChat user's dir */
length = strlen (weechat_data_dir) + strlen (name_with_ext) +
strlen (plugins_dir) + 16;
final_name = malloc (length);
if (!final_name)
{
free (name_with_ext);
return NULL;
}
snprintf (final_name, length,
"%s%s%s%s%s",
weechat_data_dir,
DIR_SEPARATOR,
plugins_dir,
DIR_SEPARATOR,
name_with_ext);
if ((stat (final_name, &st) == 0) && (st.st_size > 0))
{
free (name_with_ext);
return final_name;
}
free (final_name);
/* try WeeChat global lib dir */
length = strlen (WEECHAT_LIBDIR) + strlen (name_with_ext) +
strlen (plugins_dir) + 16;
final_name = malloc (length);
if (!final_name)
{
free (name_with_ext);
return NULL;
}
snprintf (final_name, length,
"%s%s%s%s%s",
WEECHAT_LIBDIR,
DIR_SEPARATOR,
plugins_dir,
DIR_SEPARATOR,
name_with_ext);
if ((stat (final_name, &st) == 0) && (st.st_size > 0))
{
free (name_with_ext);
return final_name;
}
free (final_name);
free (name_with_ext);
return NULL;
}
/*
* Searches for the full name of a WeeChat library with name.
*
* All extensions listed in option "weechat.plugin.extension" are tested.
*
* Note: result must be freed after use (if not NULL).
*/
char *
dir_search_full_lib_name (const char *filename, const char *plugins_dir)
{
char *filename2, *full_name;
int i;
/* expand home in filename */
filename2 = string_expand_home (filename);
if (!filename2)
return NULL;
/* if full path, return it */
if (strchr (filename2, '/') || strchr (filename2, '\\'))
return filename2;
if (config_plugin_extensions)
{
for (i = 0; i < config_num_plugin_extensions; i++)
{
full_name = dir_search_full_lib_name_ext (
filename2,
config_plugin_extensions[i],
plugins_dir);
if (full_name)
{
free (filename2);
return full_name;
}
}
}
else
{
full_name = dir_search_full_lib_name_ext (filename2, "", plugins_dir);
if (full_name)
{
free (filename2);
return full_name;
}
}
free (filename2);
return strdup (filename);
}
/*
* Reads content of a file.
*
* Returns an allocated buffer with the content of file, NULL if error.
*
* Note: result must be freed after use.
*/
char *
dir_file_get_content (const char *filename)
{
char *buffer, *buffer2;
FILE *f;
size_t count, fp;
if (!filename)
return NULL;
buffer = NULL;
fp = 0;
f = fopen (filename, "r");
if (!f)
goto error;
while (!feof (f))
{
if (fp > SIZE_MAX - (1024 * sizeof (char)))
goto error;
buffer2 = (char *) realloc (buffer, (fp + (1024 * sizeof (char))));
if (!buffer2)
goto error;
buffer = buffer2;
count = fread (&buffer[fp], sizeof (char), 1024, f);
if (count <= 0)
goto error;
fp += count;
}
if (fp > SIZE_MAX - sizeof (char))
goto error;
buffer2 = (char *) realloc (buffer, fp + sizeof (char));
if (!buffer2)
goto error;
buffer = buffer2;
buffer[fp] = '\0';
fclose (f);
return buffer;
error:
if (buffer)
free (buffer);
if (f)
fclose (f);
return NULL;
}
/*
* Copies a file to another location.
*
* Returns:
* 1: OK
* 0: error
*/
int
dir_file_copy (const char *from, const char *to)
{
FILE *src, *dst;
char *buffer;
int rc;
size_t count;
rc = 0;
buffer = NULL;
src = NULL;
dst = NULL;
if (!from || !from[0] || !to || !to[0])
goto end;
buffer = malloc (65536);
if (!buffer)
goto end;
src = fopen (from, "rb");
if (!src)
goto end;
dst = fopen (to, "wb");
if (!dst)
goto end;
while (!feof (src))
{
count = fread (buffer, 1, 65536, src);
if (count <= 0)
goto end;
if (fwrite (buffer, 1, count, dst) <= 0)
goto end;
}
rc = 1;
end:
if (buffer)
free (buffer);
if (src)
fclose (src);
if (dst)
fclose (dst);
return rc;
}
/*
* Uses one or four different paths for WeeChat home directories.
*
@@ -1036,5 +720,661 @@ dir_get_string_home_dirs ()
dirs[3] = weechat_runtime_dir;
dirs[4] = NULL;
return string_build_with_split_string ((const char **)dirs, ":");
return string_rebuild_split_string ((const char **)dirs, ":", 0, -1);
}
/*
* Finds files in a directory and executes a function on each file.
*/
void
dir_exec_on_files (const char *directory, int recurse_subdirs,
int hidden_files,
void (*callback)(void *data, const char *filename),
void *callback_data)
{
char complete_filename[PATH_MAX];
DIR *dir;
struct dirent *entry;
struct stat statbuf;
if (!directory || !callback)
return;
dir = opendir (directory);
if (dir)
{
while ((entry = readdir (dir)))
{
if (hidden_files || (entry->d_name[0] != '.'))
{
snprintf (complete_filename, sizeof (complete_filename),
"%s/%s", directory, entry->d_name);
lstat (complete_filename, &statbuf);
if (S_ISDIR(statbuf.st_mode))
{
if (recurse_subdirs
&& (strcmp (entry->d_name, ".") != 0)
&& (strcmp (entry->d_name, "..") != 0))
{
dir_exec_on_files (complete_filename, 1, hidden_files,
callback, callback_data);
}
}
else
{
(*callback) (callback_data, complete_filename);
}
}
}
closedir (dir);
}
}
/*
* Searches for the full name of a WeeChat library with name and extension
* (searches first in WeeChat user's dir, then WeeChat global lib directory).
*
* Returns name of library found, NULL if not found.
*
* Note: result must be freed after use (if not NULL).
*/
char *
dir_search_full_lib_name_ext (const char *filename, const char *extension,
const char *plugins_dir)
{
char *name_with_ext, *final_name, *extra_libdir;
int length;
struct stat st;
length = strlen (filename) + strlen (extension) + 1;
name_with_ext = malloc (length);
if (!name_with_ext)
return NULL;
snprintf (name_with_ext, length,
"%s%s",
filename,
(strchr (filename, '.')) ? "" : extension);
/* try libdir from environment variable WEECHAT_EXTRA_LIBDIR */
extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
if (extra_libdir && extra_libdir[0])
{
length = strlen (extra_libdir) + strlen (name_with_ext) +
strlen (plugins_dir) + 16;
final_name = malloc (length);
if (!final_name)
{
free (name_with_ext);
return NULL;
}
snprintf (final_name, length,
"%s%s%s%s%s",
extra_libdir,
DIR_SEPARATOR,
plugins_dir,
DIR_SEPARATOR,
name_with_ext);
if ((stat (final_name, &st) == 0) && (st.st_size > 0))
{
free (name_with_ext);
return final_name;
}
free (final_name);
}
/* try WeeChat user's dir */
length = strlen (weechat_data_dir) + strlen (name_with_ext) +
strlen (plugins_dir) + 16;
final_name = malloc (length);
if (!final_name)
{
free (name_with_ext);
return NULL;
}
snprintf (final_name, length,
"%s%s%s%s%s",
weechat_data_dir,
DIR_SEPARATOR,
plugins_dir,
DIR_SEPARATOR,
name_with_ext);
if ((stat (final_name, &st) == 0) && (st.st_size > 0))
{
free (name_with_ext);
return final_name;
}
free (final_name);
/* try WeeChat global lib dir */
length = strlen (WEECHAT_LIBDIR) + strlen (name_with_ext) +
strlen (plugins_dir) + 16;
final_name = malloc (length);
if (!final_name)
{
free (name_with_ext);
return NULL;
}
snprintf (final_name, length,
"%s%s%s%s%s",
WEECHAT_LIBDIR,
DIR_SEPARATOR,
plugins_dir,
DIR_SEPARATOR,
name_with_ext);
if ((stat (final_name, &st) == 0) && (st.st_size > 0))
{
free (name_with_ext);
return final_name;
}
free (final_name);
free (name_with_ext);
return NULL;
}
/*
* Searches for the full name of a WeeChat library with name.
*
* All extensions listed in option "weechat.plugin.extension" are tested.
*
* Note: result must be freed after use (if not NULL).
*/
char *
dir_search_full_lib_name (const char *filename, const char *plugins_dir)
{
char *filename2, *full_name;
int i;
/* expand home in filename */
filename2 = string_expand_home (filename);
if (!filename2)
return NULL;
/* if full path, return it */
if (strchr (filename2, '/') || strchr (filename2, '\\'))
return filename2;
if (config_plugin_extensions)
{
for (i = 0; i < config_num_plugin_extensions; i++)
{
full_name = dir_search_full_lib_name_ext (
filename2,
config_plugin_extensions[i],
plugins_dir);
if (full_name)
{
free (filename2);
return full_name;
}
}
}
else
{
full_name = dir_search_full_lib_name_ext (filename2, "", plugins_dir);
if (full_name)
{
free (filename2);
return full_name;
}
}
free (filename2);
return strdup (filename);
}
/*
* Reads content of a file.
*
* Returns an allocated buffer with the content of file, NULL if error.
*
* Note: result must be freed after use.
*/
char *
dir_file_get_content (const char *filename)
{
char *buffer, *buffer2;
FILE *f;
size_t count, fp;
if (!filename)
return NULL;
buffer = NULL;
fp = 0;
f = fopen (filename, "r");
if (!f)
goto error;
while (!feof (f))
{
if (fp > SIZE_MAX - (1024 * sizeof (char)))
goto error;
buffer2 = (char *) realloc (buffer, (fp + (1024 * sizeof (char))));
if (!buffer2)
goto error;
buffer = buffer2;
count = fread (&buffer[fp], sizeof (char), 1024, f);
if (count <= 0)
goto error;
fp += count;
}
if (fp > SIZE_MAX - sizeof (char))
goto error;
buffer2 = (char *) realloc (buffer, fp + sizeof (char));
if (!buffer2)
goto error;
buffer = buffer2;
buffer[fp] = '\0';
fclose (f);
return buffer;
error:
if (buffer)
free (buffer);
if (f)
fclose (f);
return NULL;
}
/*
* Copies a file to another location.
*
* Returns:
* 1: OK
* 0: error
*/
int
dir_file_copy (const char *from, const char *to)
{
FILE *src, *dst;
char *buffer;
int rc;
size_t count;
rc = 0;
buffer = NULL;
src = NULL;
dst = NULL;
if (!from || !from[0] || !to || !to[0])
goto end;
buffer = malloc (65536);
if (!buffer)
goto end;
src = fopen (from, "rb");
if (!src)
goto end;
dst = fopen (to, "wb");
if (!dst)
goto end;
while (!feof (src))
{
count = fread (buffer, 1, 65536, src);
if (count <= 0)
goto end;
if (fwrite (buffer, 1, count, dst) <= 0)
goto end;
}
rc = 1;
end:
if (buffer)
free (buffer);
if (src)
fclose (src);
if (dst)
fclose (dst);
return rc;
}
/*
* Compresses a file with gzip.
*
* Notes:
* - the output file must not exist
* - compression_level is an integer between 1 and 9
*
* Returns:
* 1: OK
* 0: error
*/
int
dir_file_compress_gzip (const char *from, const char *to,
int compression_level)
{
FILE *source, *dest;
z_stream strm;
unsigned char *buffer_in, *buffer_out;
int rc, ret, flush;
size_t buffer_size, have;
source = NULL;
dest = NULL;
buffer_size = 256 * 1024;
buffer_in = NULL;
buffer_out = NULL;
rc = 0;
if (!from || !to || (compression_level < 1) || (compression_level > 9))
goto end;
if (access (to, F_OK) == 0)
goto end;
buffer_in = malloc (buffer_size);
if (!buffer_in)
goto end;
buffer_out = malloc (buffer_size);
if (!buffer_out)
goto end;
source = fopen (from, "rb");
if (!source)
goto end;
dest = fopen (to, "wb");
if (!dest)
goto end;
strm.zalloc = Z_NULL;
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;
ret = deflateInit2 (
&strm,
compression_level,
Z_DEFLATED, /* method */
15 + 16, /* + 16 = gzip instead of zlib */
8, /* memLevel */
Z_DEFAULT_STRATEGY); /* strategy */
if (ret != Z_OK)
goto end;
do
{
strm.avail_in = fread (buffer_in, 1, buffer_size, source);
if (ferror (source))
goto error;
flush = feof (source) ? Z_FINISH : Z_NO_FLUSH;
strm.next_in = buffer_in;
do
{
strm.avail_out = buffer_size;
strm.next_out = buffer_out;
ret = deflate (&strm, flush);
if (ret == Z_STREAM_ERROR)
goto error;
have = buffer_size - strm.avail_out;
if ((fwrite (buffer_out, 1, have, dest) != have) || ferror (dest))
goto error;
} while (strm.avail_out == 0);
if (strm.avail_in != 0)
goto error;
} while (flush != Z_FINISH);
if (ret != Z_STREAM_END)
goto error;
(void) deflateEnd (&strm);
rc = 1;
goto end;
error:
(void) deflateEnd (&strm);
unlink (to);
end:
if (buffer_in)
free (buffer_in);
if (buffer_out)
free (buffer_out);
if (source)
fclose (source);
if (dest)
fclose (dest);
return rc;
}
/*
* Compresses a file with zstandard.
*
* Notes:
* - the output file must not exist
* - compression_level is an integer between 1 and 19
*
* Returns:
* 1: OK
* 0: error
*/
int
dir_file_compress_zstd (const char *from, const char *to,
int compression_level)
{
FILE *source, *dest;
void *buffer_in, *buffer_out;
size_t buffer_in_size, buffer_out_size, num_read, remaining;
int rc;
#if ZSTD_VERSION_NUMBER >= 10400 /* zstd ≥ 1.4.0 */
ZSTD_CCtx *cctx = NULL;
ZSTD_EndDirective mode;
int finished, last_chunk;
#else /* zstd < 1.4.0 */
ZSTD_CStream *cstream = NULL;
size_t result, to_read;
#endif
ZSTD_inBuffer input;
ZSTD_outBuffer output;
source = NULL;
dest = NULL;
buffer_in = NULL;
buffer_out = NULL;
rc = 0;
if (!from || !to || (compression_level < 1) || (compression_level > 19))
goto end;
if (access (to, F_OK) == 0)
goto end;
buffer_in_size = ZSTD_CStreamInSize ();
buffer_in = malloc (buffer_in_size);
if (!buffer_in)
goto end;
buffer_out_size = ZSTD_CStreamOutSize ();
buffer_out = malloc (buffer_out_size);
if (!buffer_out)
goto end;
source = fopen (from, "rb");
if (!source)
goto end;
dest = fopen (to, "wb");
if (!dest)
goto end;
#if ZSTD_VERSION_NUMBER >= 10400 /* zstd ≥ 1.4.0 */
cctx = ZSTD_createCCtx ();
if (!cctx)
goto error;
ZSTD_CCtx_setParameter (cctx, ZSTD_c_compressionLevel, compression_level);
while (1)
{
num_read = fread (buffer_in, 1, buffer_in_size, source);
if (ferror (source))
goto error;
last_chunk = (num_read < buffer_in_size);
mode = (last_chunk) ? ZSTD_e_end : ZSTD_e_continue;
input.src = buffer_in;
input.size = num_read;
input.pos = 0;
finished = 0;
while (!finished)
{
output.dst = buffer_out;
output.size = buffer_out_size;
output.pos = 0;
remaining = ZSTD_compressStream2(cctx, &output , &input, mode);
if (ZSTD_isError (remaining))
goto error;
if ((fwrite (buffer_out, 1, output.pos, dest) != output.pos)
|| ferror (dest))
{
goto error;
}
finished = (last_chunk) ? (remaining == 0) : (input.pos == input.size);
};
if (input.pos != input.size)
goto error;
if (last_chunk)
break;
}
#else /* zstd < 1.4.0 */
cstream = ZSTD_createCStream ();
if (!cstream)
goto error;
result = ZSTD_initCStream (cstream, compression_level);
if (ZSTD_isError (result))
goto error;
to_read = buffer_in_size;
while ((num_read = fread (buffer_in, 1, buffer_in_size, source)))
{
input.src = buffer_in;
input.size = num_read;
input.pos = 0;
while (input.pos < input.size)
{
output.dst = buffer_out;
output.size = buffer_out_size;
output.pos = 0;
to_read = ZSTD_compressStream (cstream, &output , &input);
if (ZSTD_isError (to_read))
goto error;
if (to_read > buffer_in_size)
to_read = buffer_in_size;
if ((fwrite (buffer_out, 1, output.pos, dest) != output.pos)
|| ferror (dest))
{
goto error;
}
}
}
output.dst = buffer_out;
output.size = buffer_out_size;
output.pos = 0;
remaining = ZSTD_endStream (cstream, &output);
if (remaining)
goto error;
if ((fwrite (buffer_out, 1, output.pos, dest) != output.pos)
|| ferror (dest))
{
goto error;
}
#endif
rc = 1;
goto end;
error:
#if ZSTD_VERSION_NUMBER >= 10400 /* zstd ≥ 1.4.0 */
if (cctx)
{
ZSTD_freeCCtx (cctx);
cctx = NULL;
}
#else /* zstd < 1.4.0 */
if (cstream)
{
ZSTD_freeCStream (cstream);
cstream = NULL;
}
#endif
unlink (to);
end:
#if ZSTD_VERSION_NUMBER >= 10400 /* zstd ≥ 1.4.0 */
if (cctx)
ZSTD_freeCCtx (cctx);
#else /* zstd < 1.4.0 */
if (cstream)
ZSTD_freeCStream (cstream);
#endif
if (buffer_in)
free (buffer_in);
if (buffer_out)
free (buffer_out);
if (source)
fclose (source);
if (dest)
fclose (dest);
return rc;
}
/*
* Compresses a file with gzip or zstandard.
*
* The output file must not exist.
*
* Supported values for parameter "compressor":
* - "gzip": gzip compression (via zlib)
* - "zstd": zstandard compression
*
* Parameter "compression_level" is the compression level as percentage:
* from 1 (fast, low compression) to 100 (slow, best compression).
*
* Returns:
* 1: OK
* 0: error
*/
int
dir_file_compress (const char *filename_input,
const char *filename_output,
const char *compressor,
int compression_level)
{
int level;
if (!compressor || (compression_level < 1) || (compression_level > 100))
return 0;
if (strcmp (compressor, "gzip") == 0)
{
/* convert percent to zlib compression level (1-9) */
level = (((compression_level - 1) * 9) / 100) + 1;
return dir_file_compress_gzip (filename_input, filename_output, level);
}
else if (strcmp (compressor, "zstd") == 0)
{
/* convert percent to zstd compression level (1-19) */
level = (((compression_level - 1) * 19) / 100) + 1;
return dir_file_compress_zstd (filename_input, filename_output, level);
}
else
{
return 0;
}
}
+5 -3
View File
@@ -25,6 +25,9 @@ extern int dir_mkdir_home (const char *directory, int mode);
extern int dir_mkdir (const char *directory, int mode);
extern int dir_mkdir_parents (const char *directory, int mode);
extern int dir_rmtree (const char *directory);
extern void dir_create_home_dirs ();
extern void dir_remove_home_dirs ();
extern char *dir_get_string_home_dirs ();
extern void dir_exec_on_files (const char *directory, int recurse_subdirs,
int hidden_files,
void (*callback)(void *data,
@@ -34,8 +37,7 @@ extern char *dir_search_full_lib_name (const char *filename,
const char *sys_directory);
extern char *dir_file_get_content (const char *filename);
extern int dir_file_copy (const char *from, const char *to);
extern void dir_create_home_dirs ();
extern void dir_remove_home_dirs ();
extern char *dir_get_string_home_dirs ();
extern int dir_file_compress (const char *from, const char *to,
const char *compressor, int compression_level);
#endif /* WEECHAT_DIR_H */
+3
View File
@@ -362,6 +362,9 @@ hook_get_priority_and_name (const char *string,
if (name)
*name = string;
if (!string)
return;
pos = strchr (string, '|');
if (pos)
{
+2 -2
View File
@@ -427,8 +427,8 @@ input_data_delayed (struct t_gui_buffer *buffer, const char *data,
}
else if (input_commands_allowed)
{
new_commands_allowed = string_build_with_split_string (
(const char **)input_commands_allowed, ",");
new_commands_allowed = string_rebuild_split_string (
(const char **)input_commands_allowed, ",", 0, -1);
}
else
{

Some files were not shown because too many files have changed in this diff Show More