From c28696e602eef37e4d211a2ba643e120003f4dd9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 6 Sep 2024 08:25:21 -0400 Subject: [PATCH] spelling: case-sensitive Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 10 +++---- UPGRADING.md | 14 +++++----- doc/en/weechat_plugin_api.en.adoc | 28 ++++++++++---------- doc/en/weechat_user.en.adoc | 6 ++--- doc/it/weechat_plugin_api.it.adoc | 18 ++++++------- doc/it/weechat_user.it.adoc | 6 ++--- doc/ja/weechat_plugin_api.ja.adoc | 14 +++++----- src/core/core-command.c | 10 +++---- src/core/core-config.c | 12 ++++----- src/core/core-hdata.c | 2 +- src/core/core-list.c | 4 +-- src/core/core-string.c | 6 ++--- src/core/hook/hook-command.c | 2 +- src/gui/gui-buffer.c | 2 +- src/gui/gui-buffer.h | 4 +-- src/gui/gui-completion.c | 4 +-- src/gui/gui-completion.h | 2 +- src/gui/gui-nick.c | 4 +-- src/plugins/irc/irc-command.c | 2 +- src/plugins/irc/irc-config.c | 6 ++--- src/plugins/relay/api/weechat-relay-api.yaml | 2 +- src/plugins/relay/relay-config.c | 2 +- tests/unit/gui/test-gui-hotlist.cpp | 2 +- tests/unit/gui/test-gui-key.cpp | 2 +- 24 files changed, 82 insertions(+), 82 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d0932011..50359444e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -361,7 +361,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - irc: display messages 730/731 (monitored nicks online/offline) even if command `/notify` was not used ([#2049](https://github.com/weechat/weechat/issues/2049)) - irc: remove trailing "\r\n" in signals "irc_out" and "irc_outtags" when messages are queued - irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time") -- irc: revert compute of nick colors to case sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032)) +- irc: revert compute of nick colors to case-sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032)) - relay: close properly connection with the IRC client in case of server disconnection ([#2038](https://github.com/weechat/weechat/issues/2038)) - ruby: fix use of NULL variable when displaying exception @@ -407,7 +407,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - core: fix crash when a custom bar item name is already used by a default bar item ([#2034](https://github.com/weechat/weechat/issues/2034)) - core: fix random timeouts when a lot of concurrent processes are launched with hook_process ([#2033](https://github.com/weechat/weechat/issues/2033)) -- irc: revert compute of nick colors to case sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032)) +- irc: revert compute of nick colors to case-sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032)) ### Build @@ -640,7 +640,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - core: display similar command names when a command is unknown ([#1877](https://github.com/weechat/weechat/issues/1877)) - core: rename option weechat.color.status_name_ssl to weechat.color.status_name_tls ([#1903](https://github.com/weechat/weechat/issues/1903)) - core: add option weechat.color.status_name_insecure to display buffer name with a specific color when not connected with TLS to the server -- core, plugins: make many identifiers case sensitive ([#1872](https://github.com/weechat/weechat/issues/1872), [#398](https://github.com/weechat/weechat/issues/398), [bug #32213](https://savannah.nongnu.org/bugs/?32213)) +- core, plugins: make many identifiers case-sensitive ([#1872](https://github.com/weechat/weechat/issues/1872), [#398](https://github.com/weechat/weechat/issues/398), [bug #32213](https://savannah.nongnu.org/bugs/?32213)) - core: add item "mouse_status" in default status bar, change default color to lightgreen - core, trigger: add options weechat.color.chat_status_disabled and weechat.color.chat_status_enabled, remove options trigger.color.trigger and trigger.color.trigger_disabled, add enabled/disabled status color in output of `/filter list` ([#1820](https://github.com/weechat/weechat/issues/1820)) - core: add completions "filters_names_disabled" and "filters_names_enabled", used in completion of `/filter disable` and `/filter enable` @@ -782,7 +782,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - core: keep terminal title unchanged when option weechat.look.window_title is set to empty value ([#1835](https://github.com/weechat/weechat/issues/1835), [#1836](https://github.com/weechat/weechat/issues/1836)) - core: fix crash when setting invalid color in option with null value ([#1844](https://github.com/weechat/weechat/issues/1844)) - api: do not check conditions defined in option weechat.look.hotlist_add_conditions when adding buffer in hotlist with function buffer_set -- api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte +- api: fix function strcmp_ignore_chars with case-sensitive comparison and wide chars starting with the same byte - api: send NULL values to config section callbacks in scripting API ([#1843](https://github.com/weechat/weechat/issues/1843)) - api: fix function string_cut when there are non printable chars in suffix - api: do not expect any return value in callbacks "callback_change" and "callback_delete" of function config_new_option (scripting API) @@ -1217,7 +1217,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._ - core: add flag "input_multiline" in buffer ([#984](https://github.com/weechat/weechat/issues/984), [#1063](https://github.com/weechat/weechat/issues/1063)) - core: add a scalable WeeChat logo (SVG) ([#1454](https://github.com/weechat/weechat/issues/1454), [#1456](https://github.com/weechat/weechat/issues/1456)) - core: add base 16/32/64 encoding/decoding in evaluation of expressions with `base_encode:base,xxx` and `base_decode:base,xxx` -- core: add case sensitive wildcard matching comparison operator (`+==*+` and `+!!*+`) and case sensitive/insensitive include comparison operators (`+==-+`, `+!!-+`, `+=-+`, `+!-+`) in evaluation of expressions +- core: add case-sensitive wildcard matching comparison operator (`+==*+` and `+!!*+`) and case-sensitive/insensitive include comparison operators (`+==-+`, `+!!-+`, `+=-+`, `+!-+`) in evaluation of expressions - core: add default key `Alt`+`Shift`+`N` to toggle nicklist bar - core: add command line option `--stdout` in weechat-headless binary to log to stdout rather than ~/.weechat/weechat.log ([#1475](https://github.com/weechat/weechat/issues/1475), [#1477](https://github.com/weechat/weechat/issues/1477)) - core: reload configuration files on SIGHUP ([#1476](https://github.com/weechat/weechat/issues/1476)) diff --git a/UPGRADING.md b/UPGRADING.md index 5e356b7a7..e71212e3f 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -148,7 +148,7 @@ or can cause a crash of WeeChat). ### Nick color infos The infos irc_nick_color and irc_nick_color_name are deprecated again, and the -algorithm to compute IRC nick colors has been reverted to case sensitive.\ +algorithm to compute IRC nick colors has been reverted to case-sensitive.\ The server name has been removed from arguments. ## Version 4.1.1 @@ -282,7 +282,7 @@ and can cause a crash of WeeChat). The functions [config_set_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_plugin) and [config_set_desc_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_desc_plugin) are not converting anymore the option name to lower case because since version 4.0.0, -the name of options is case sensitive. +the name of options is case-sensitive. ### Grab raw key and command @@ -332,7 +332,7 @@ automatically upgraded to a new version: - weechat.conf: new key names (see <>) - alias.conf: aliases converted to lower case - (see <>) + (see <>) - irc.conf: options `ssl*` renamed to `tls*` (see <>) - relay.conf: options and protocol `ssl*` renamed to `tls*` @@ -427,9 +427,9 @@ New key binding (context "default"): ctrl-q => /print test With older releases, upper case was mandatory and lower case letter for control keys were not working at all. -### Case sensitive identifiers +### Case-sensitive identifiers -Many identifiers are made case sensitive, including among others: +Many identifiers are made case-sensitive, including among others: - configuration files, sections, options - commands, aliases @@ -441,7 +441,7 @@ Many identifiers are made case sensitive, including among others: - scripts - triggers. -See [Case sensitive identifiers specification](https://specs.weechat.org/specs/2023-001-case-sensitive-identifiers.html) +See [Case-sensitive identifiers specification](https://specs.weechat.org/specs/2023-001-case-sensitive-identifiers.html) for more information. Accordingly, default aliases are now in lower case.\ @@ -2816,7 +2816,7 @@ escape in past do not need anymore (for example `[0-9]\+` becomes `[0-9]+`), filters and ignore have to be manually fixed. Option weechat.look.highlight_regex becomes case-insensitive by default, to -make it case sensitive, use "(?-i)" at beginning of string, for example: +make it case-sensitive, use "(?-i)" at beginning of string, for example: "(?-i)FlashCode|flashy". ## Version 0.3.6 diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 52dc39e65..f2c980abd 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -817,7 +817,7 @@ This function is not available in scripting API. _WeeChat ≥ 3.8._ -Case sensitive string comparison. +Case-sensitive string comparison. Prototype: @@ -853,7 +853,7 @@ This function is not available in scripting API. _WeeChat ≥ 3.8._ -Case sensitive string comparison, for _max_ chars. +Case-sensitive string comparison, for _max_ chars. Prototype: @@ -1084,7 +1084,7 @@ Arguments: * _string1_: first string for comparison * _string2_: second string for comparison * _chars_ignored_: string with chars to ignored -* _case_sensitive_: 1 for case sensitive comparison, otherwise 0 +* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0 [NOTE] Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all @@ -1210,7 +1210,7 @@ Arguments: * _string_: string * _mask_: mask with wildcards (`+*+`), each wildcard matches 0 or more chars in the string -* _case_sensitive_: 1 for case sensitive comparison, otherwise 0 +* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0 [NOTE] Since version 1.0, wildcards are allowed inside the mask @@ -1272,7 +1272,7 @@ Arguments: * _string_: string * _masks_: list of masks, with a NULL after the last mask in list; each mask is compared to the string with the function <<_string_match,string_match>> -* _case_sensitive_: 1 for case sensitive comparison, otherwise 0 +* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0 [NOTE] Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all @@ -2791,7 +2791,7 @@ from first used to last): == `+1+` | `+==*+` | 2.9 -| Is matching mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>) +| Is matching mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | >> `+abc def ==* a*f+` + == `+1+` + + @@ -2799,7 +2799,7 @@ from first used to last): == `+0+` | `+!!*+` | 2.9 -| Is NOT wildcard mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>) +| Is NOT wildcard mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | >> `+abc def !!* a*f+` + == `+0+` + + @@ -2823,7 +2823,7 @@ from first used to last): == `+1+` | `+==-+` | 2.9 -| Is included, case sensitive +| Is included, case-sensitive | >> `+abc def ==- bc+` + == `+1+` + + @@ -2831,7 +2831,7 @@ from first used to last): == `+0+` | `+!!-+` | 2.9 -| Is NOT included, case sensitive +| Is NOT included, case-sensitive | >> `+abc def !!- bc+` + == `+0+` + + @@ -14658,7 +14658,7 @@ Arguments: ** _next_line_id_: next line id in buffer _(WeeChat ≥ 3.8)_ ** _time_for_each_line_: 1 if time is displayed for each line in buffer (default), otherwise 0 ** _nicklist_: 1 if nicklist is enabled, otherwise 0 -** _nicklist_case_sensitive_: 1 if nicks are case sensitive, otherwise 0 +** _nicklist_case_sensitive_: 1 if nicks are case-sensitive, otherwise 0 ** _nicklist_max_length_: max length for a nick ** _nicklist_display_groups_: 1 if groups are displayed, otherwise 0 ** _nicklist_count_: number of nicks and groups in nicklist @@ -14684,7 +14684,7 @@ Arguments: ** _text_search_direction_: direction for search: *** 0: backward search (direction: oldest messages/commands) *** 1: forward search (direction: newest messages/commands) -** _text_search_exact_: 1 if text search is case sensitive +** _text_search_exact_: 1 if text search is case-sensitive ** _text_search_regex_: 1 if searching with a regular expression ** _text_search_where_: *** 0: no search at this moment @@ -14932,7 +14932,7 @@ Properties: | "0" to remove nicklist for buffer, "1" to add nicklist for buffer. | nicklist_case_sensitive | | "0" or "1" -| "0" to have case-insensitive nicklist, "1" to have case sensitive nicklist. +| "0" to have case-insensitive nicklist, "1" to have case-sensitive nicklist. | nicklist_display_groups | | "0" or "1" | "0" to hide nicklist groups, "1" to display nicklist groups. @@ -15189,7 +15189,7 @@ Arguments: ** wildcard `+*+` is allowed in name [NOTE] -Since version 4.0.0, comparison of buffer names is case sensitive. +Since version 4.0.0, comparison of buffer names is case-sensitive. Return value: @@ -19489,7 +19489,7 @@ Arguments: * _pointer2_: pointer to second WeeChat/plugin object * _name_: variable name or path to a variable name; for arrays, the name can be "N|name" where N is the index in array (starting at 0), for example: "2|name" -* _case_sensitive_: 1 for case sensitive comparison of strings, otherwise 0 +* _case_sensitive_: 1 for case-sensitive comparison of strings, otherwise 0 Return value: diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 4f2a1bed6..e8548240d 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -947,7 +947,7 @@ There are two search modes: * search in lines, for example `[Search lines (~ str,msg)]`, with the following info: ** `~`: case-insensitive -** `==`: case sensitive +** `==`: case-sensitive ** `str`: search string ** `regex`: search regular expression ** `msg`: search in messages @@ -956,7 +956,7 @@ There are two search modes: * search in commands history, for example `[Search command (~ str,local)]`, with the following info: ** `~`: case-insensitive -** `==`: case sensitive +** `==`: case-sensitive ** `str`: search string ** `regex`: search regular expression ** `local`: search in buffer local history @@ -3277,7 +3277,7 @@ Alias plugin lets you create alias for commands (from WeeChat or other plugins). Some aliases are created by default, with name in upper case (to make them -different from standard commands); commands are not case sensitive in WeeChat, +different from standard commands); commands are not case-sensitive in WeeChat, so for example `/close` runs the alias `/CLOSE`. List of default aliases: diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index c2efe91e4..de161ca57 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -872,7 +872,7 @@ Questa funzione non è disponibile nelle API per lo scripting. _WeeChat ≥ 3.8._ // TRANSLATION MISSING -Case sensitive string comparison. +Case-sensitive string comparison. Prototipo: @@ -912,7 +912,7 @@ Questa funzione non è disponibile nelle API per lo scripting. _WeeChat ≥ 3.8._ // TRANSLATION MISSING -Case sensitive string comparison, for _max_ chars. +Case-sensitive string comparison, for _max_ chars. Prototipo: @@ -1369,7 +1369,7 @@ Argomenti: * _string_: string * _masks_: list of masks, with a NULL after the last mask in list; each mask is compared to the string with the function <<_string_match,string_match>> -* _case_sensitive_: 1 for case sensitive comparison, otherwise 0 +* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0 // TRANSLATION MISSING [NOTE] @@ -2947,7 +2947,7 @@ from first used to last): == `+1+` | `+==*+` | 2.9 -| Is matching mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>) +| Is matching mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | >> `+abc def ==* a*f+` + == `+1+` + + @@ -2955,7 +2955,7 @@ from first used to last): == `+0+` | `+!!*+` | 2.9 -| Is NOT wildcard mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>) +| Is NOT wildcard mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | >> `+abc def !!* a*f+` + == `+0+` + + @@ -2979,7 +2979,7 @@ from first used to last): == `+1+` | `+==-+` | 2.9 -| Is included, case sensitive +| Is included, case-sensitive | >> `+abc def ==- bc+` + == `+1+` + + @@ -2987,7 +2987,7 @@ from first used to last): == `+0+` | `+!!-+` | 2.9 -| Is NOT included, case sensitive +| Is NOT included, case-sensitive | >> `+abc def !!- bc+` + == `+0+` + + @@ -15949,7 +15949,7 @@ Argomenti: // TRANSLATION MISSING [NOTE] -Since version 4.0.0, comparison of buffer names is case sensitive. +Since version 4.0.0, comparison of buffer names is case-sensitive. Valore restituito: @@ -20411,7 +20411,7 @@ Argomenti: * _pointer2_: pointer to second WeeChat/plugin object * _name_: variable name or path to a variable name; for arrays, the name can be "N|name" where N is the index in array (starting at 0), for example: "2|name" -* _case_sensitive_: 1 for case sensitive comparison of strings, otherwise 0 +* _case_sensitive_: 1 for case-sensitive comparison of strings, otherwise 0 Valore restituito: diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc index 04afbeca0..91f0fb660 100644 --- a/doc/it/weechat_user.it.adoc +++ b/doc/it/weechat_user.it.adoc @@ -1043,7 +1043,7 @@ There are two search modes: // TRANSLATION MISSING * search in lines, for example `[Search lines (~ str,msg)]`, with the following info: ** `~`: case-insensitive -** `==`: case sensitive +** `==`: case-sensitive ** `str`: search string ** `regex`: search regular expression ** `msg`: search in messages @@ -1052,7 +1052,7 @@ There are two search modes: * search in commands history, for example `[Search command (~ str,local)]`, with the following info: ** `~`: case-insensitive -** `==`: case sensitive +** `==`: case-sensitive ** `str`: search string ** `regex`: search regular expression ** `local`: search in buffer local history @@ -3584,7 +3584,7 @@ plugin). // TRANSLATION MISSING Some aliases are created by default, with name in upper case (to make them -different from standard commands); commands are not case sensitive in WeeChat, +different from standard commands); commands are not case-sensitive in WeeChat, so for example `/close` runs the alias `/CLOSE`. // TRANSLATION MISSING diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 290964849..37cb2c7da 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -845,7 +845,7 @@ int diff = weechat_string_charcasecmp ("aaa", "CCC"); /* == -2 */ _WeeChat ≥ 3.8_ // TRANSLATION MISSING -Case sensitive string comparison. +Case-sensitive string comparison. プロトタイプ: @@ -884,7 +884,7 @@ int diff = weechat_strcmp ("aaa", "ccc"); /* == -2 */ _WeeChat ≥ 3.8_ // TRANSLATION MISSING -Case sensitive string comparison, for _max_ chars. +Case-sensitive string comparison, for _max_ chars. プロトタイプ: @@ -2875,7 +2875,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio // TRANSLATION MISSING | `+==*+` | 2.9 -| Is matching mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>) +| Is matching mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | >> `+abc def ==* a*f+` + == `+1+` + + @@ -2884,7 +2884,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio // TRANSLATION MISSING | `+!!*+` | 2.9 -| Is NOT wildcard mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>) +| Is NOT wildcard mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>) | >> `+abc def !!* a*f+` + == `+0+` + + @@ -2911,7 +2911,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio // TRANSLATION MISSING | `+==-+` | 2.9 -| Is included, case sensitive +| Is included, case-sensitive | >> `+abc def ==- bc+` + == `+1+` + + @@ -2920,7 +2920,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio // TRANSLATION MISSING | `+!!-+` | 2.9 -| Is NOT included, case sensitive +| Is NOT included, case-sensitive | >> `+abc def !!- bc+` + == `+0+` + + @@ -15450,7 +15450,7 @@ int weechat_buffer_match_list (struct t_gui_buffer *buffer, const char *string); // TRANSLATION MISSING [NOTE] -Since version 4.0.0, comparison of buffer names is case sensitive. +Since version 4.0.0, comparison of buffer names is case-sensitive. 戻り値: diff --git a/src/core/core-command.c b/src/core/core-command.c index 9be167e80..0a7aad1d3 100644 --- a/src/core/core-command.c +++ b/src/core/core-command.c @@ -8524,12 +8524,12 @@ command_init () N_("Comparison operators (by order of priority):"), N_(" =~ is matching POSIX extended regex"), N_(" !~ is NOT matching POSIX extended regex"), - N_(" ==* is matching mask, case sensitive (wildcard \"*\" is allowed)"), - N_(" !!* is NOT matching mask, case sensitive (wildcard \"*\" is allowed)"), + N_(" ==* is matching mask, case-sensitive (wildcard \"*\" is allowed)"), + N_(" !!* is NOT matching mask, case-sensitive (wildcard \"*\" is allowed)"), N_(" =* is matching mask, case-insensitive (wildcard \"*\" is allowed)"), N_(" !* is NOT matching mask, case-insensitive (wildcard \"*\" is allowed)"), - N_(" ==- is included, case sensitive"), - N_(" !!- is NOT included, case sensitive"), + N_(" ==- is included, case-sensitive"), + N_(" !!- is NOT included, case-sensitive"), N_(" =- is included, case-insensitive"), N_(" !- is NOT included, case-insensitive"), N_(" == equal"), @@ -8638,7 +8638,7 @@ command_init () N_("> - two regular expressions are created: " "one for prefix and one for message"), N_("> - regex are case-insensitive, they can start by " - "\"(?-i)\" to become case sensitive"), + "\"(?-i)\" to become case-sensitive"), "", N_("The default key alt+\"=\" toggles filtering on/off globally and " "alt+\"-\" toggles filtering on/off in the current buffer."), diff --git a/src/core/core-config.c b/src/core/core-config.c index 1a12be2d8..52d03da9d 100644 --- a/src/core/core-config.c +++ b/src/core/core-config.c @@ -3344,7 +3344,7 @@ config_weechat_init_options () config_look_buffer_search_case_sensitive = config_file_new_option ( weechat_config_file, weechat_config_section_look, "buffer_search_case_sensitive", "boolean", - N_("default text search in buffer: case sensitive or not"), + N_("default text search in buffer: case-sensitive or not"), NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); config_look_buffer_search_history = config_file_new_option ( @@ -3629,7 +3629,7 @@ config_weechat_init_options () "highlight", "string", N_("comma separated list of words to highlight; case-insensitive " "comparison (use \"(?-i)\" at beginning of words to make them " - "case sensitive), words may begin or end with \"*\" for partial " + "case-sensitive), words may begin or end with \"*\" for partial " "match; example: \"test,(?-i)*toto*,flash*\""), NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); @@ -3641,7 +3641,7 @@ config_weechat_init_options () "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: " + "beginning to make it case-sensitive), examples: " "\"\", \"(?-i)\""), NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, @@ -3663,7 +3663,7 @@ config_weechat_init_options () "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), " + "(use \"(?-i)\" at beginning to make it case-sensitive), " "examples: \"flashcode|flashy\", \"(?-i)FlashCode|flashy\""), NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, @@ -5064,7 +5064,7 @@ config_weechat_init_options () config_completion_case_sensitive = config_file_new_option ( weechat_config_file, weechat_config_section_completion, "case_sensitive", "boolean", - N_("if enabled, the completion is case sensitive by default"), + N_("if enabled, the completion is case-sensitive by default"), NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); config_completion_command_inline = config_file_new_option ( @@ -5095,7 +5095,7 @@ config_weechat_init_options () config_completion_nick_case_sensitive = config_file_new_option ( weechat_config_file, weechat_config_section_completion, "nick_case_sensitive", "boolean", - N_("case sensitive completion for nicks"), + N_("case-sensitive completion for nicks"), NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); config_completion_nick_completer = config_file_new_option ( diff --git a/src/core/core-hdata.c b/src/core/core-hdata.c index dc68a0672..d78c58679 100644 --- a/src/core/core-hdata.c +++ b/src/core/core-hdata.c @@ -998,7 +998,7 @@ hdata_hashtable (struct t_hdata *hdata, void *pointer, const char *name) /* * Compares a hdata variable of two objects. * - * If case_sensitive == 1, the comparison of strings is case sensitive. + * If case_sensitive == 1, the comparison of strings is case-sensitive. * * Returns: * -1: variable1 < variable2 diff --git a/src/core/core-list.c b/src/core/core-list.c index d70142b14..f023f8a83 100644 --- a/src/core/core-list.c +++ b/src/core/core-list.c @@ -164,7 +164,7 @@ weelist_add (struct t_weelist *weelist, const char *data, const char *where, } /* - * Searches for data in a list (case sensitive). + * Searches for data in a list (case-sensitive). * * Returns pointer to item found, NULL if not found. */ @@ -188,7 +188,7 @@ weelist_search (struct t_weelist *weelist, const char *data) } /* - * Searches for data in a list (case sensitive). + * Searches for data in a list (case-sensitive). * * Returns position of item found (>= 0), -1 if not found. */ diff --git a/src/core/core-string.c b/src/core/core-string.c index 2b6a419e2..ba3b245f8 100644 --- a/src/core/core-string.c +++ b/src/core/core-string.c @@ -516,7 +516,7 @@ string_toupper_range (const char *string, int range) } /* - * Compares two chars (case sensitive). + * Compares two chars (case-sensitive). * * Returns: arithmetic result of subtracting the first UTF-8 char in string2 * from the first UTF-8 char in string1: @@ -607,7 +607,7 @@ string_charcasecmp_range (const char *string1, const char *string2, int range) } /* - * Compares two strings (case sensitive). + * Compares two strings (case-sensitive). * * Returns: arithmetic result of subtracting the last compared UTF-8 char in * string2 from the last compared UTF-8 char in string1: @@ -641,7 +641,7 @@ string_strcmp (const char *string1, const char *string2) } /* - * Compares two strings with max length (case sensitive). + * Compares two strings with max length (case-sensitive). * * Returns: arithmetic result of subtracting the last compared UTF-8 char in * string2 from the last compared UTF-8 char in string1: diff --git a/src/core/hook/hook-command.c b/src/core/hook/hook-command.c index 39963b16e..fc827975c 100644 --- a/src/core/hook/hook-command.c +++ b/src/core/hook/hook-command.c @@ -942,7 +942,7 @@ hook_command_display_error_unknown (const char *command) NULL, 0, GUI_FILTER_TAG_NO_FILTER, (found_diff_case_only > 0) ? - _("%sUnknown command \"%s\" (commands are case sensitive, " + _("%sUnknown command \"%s\" (commands are case-sensitive, " "type /help for help), " "commands with similar name: %s") : _("%sUnknown command \"%s\" (type /help for help), " diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 1f51cd42e..85bfda40c 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -1320,7 +1320,7 @@ gui_buffer_string_replace_local_var (struct t_gui_buffer *buffer, * List is a comma-separated list of buffers, where exclusion is possible with * char '!', and "*" means all buffers. * - * Comparison is case sensitive. + * Comparison is case-sensitive. * * Examples: * "*" diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h index 59b4470d0..ce8670bcd 100644 --- a/src/gui/gui-buffer.h +++ b/src/gui/gui-buffer.h @@ -162,7 +162,7 @@ struct t_gui_buffer /* nicklist */ int nicklist; /* = 1 if nicklist is enabled */ - int nicklist_case_sensitive; /* nicks are case sensitive ? */ + int nicklist_case_sensitive; /* nicks are case-sensitive ? */ struct t_gui_nick_group *nicklist_root; /* pointer to groups root */ int nicklist_max_length; /* max length for a nick */ int nicklist_display_groups; /* display groups ? */ @@ -225,7 +225,7 @@ struct t_gui_buffer enum t_gui_buffer_search text_search; /* text search type */ enum t_gui_buffer_search_dir text_search_direction; /* search dir.: backward/forward */ - int text_search_exact; /* case sensitive search? */ + int text_search_exact; /* case-sensitive search? */ int text_search_regex; /* search with a regex */ regex_t *text_search_regex_compiled; /* regex used to search */ int text_search_where; /* prefix and/or msg */ diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c index c2e775ffb..c531d778a 100644 --- a/src/gui/gui-completion.c +++ b/src/gui/gui-completion.c @@ -411,7 +411,7 @@ gui_completion_nickncmp (const char *base_word, const char *nick, int max) } /* - * Compares two strings (follows case sensitive flag in completion structure). + * Compares two strings (follows case-sensitive flag in completion structure). * * Returns: * < 0: string1 < string2 @@ -431,7 +431,7 @@ gui_completion_strcmp (struct t_gui_completion *completion, } /* - * Compares two strings with max length (follows case sensitive flag in + * Compares two strings with max length (follows case-sensitive flag in * completion structure). * * Returns: diff --git a/src/gui/gui-completion.h b/src/gui/gui-completion.h index d51b0edbd..0b406a910 100644 --- a/src/gui/gui-completion.h +++ b/src/gui/gui-completion.h @@ -45,7 +45,7 @@ struct t_gui_completion /* completion context */ struct t_gui_buffer *buffer; /* buffer where completion was asked */ int context; /* context: null, nick, command, cmd arg */ - int case_sensitive; /* case sensitive completion? */ + int case_sensitive; /* case-sensitive completion? */ char *base_command; /* cmd with arg to complete (can be NULL) */ int base_command_arg_index; /* # arg to complete (if context=cmd arg) */ char *base_word; /* word to complete (when Tab was pressed) */ diff --git a/src/gui/gui-nick.c b/src/gui/gui-nick.c index 5c71f26bf..f60a93234 100644 --- a/src/gui/gui-nick.c +++ b/src/gui/gui-nick.c @@ -243,7 +243,7 @@ gui_nick_strdup_for_color (const char *nickname) /* * Finds a color name for a nick (according to nick letters). * - * If case_range < 0, nick is case sensitive. + * If case_range < 0, nick is case-sensitive. * If case_range == 0, nick is converted to lower case (with string_tolower). * If case_range > 0, nick is converted to lower case (with string_tolower_range). * @@ -333,7 +333,7 @@ end: /* * Finds a color code for a nick (according to nick letters). * - * If case_range < 0, nick is case sensitive. + * If case_range < 0, nick is case-sensitive. * If case_range == 0, nick is converted to lower case (with string_tolower). * If case_range > 0, nick is converted to lower case (with string_tolower_range). * diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 400d2b218..d0bea59fb 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -7410,7 +7410,7 @@ irc_command_init () N_("nick: nick or hostname; can be a POSIX extended regular expression " "if \"re:\" is given or a mask using \"*\" to replace zero or more " "chars (the regular expression can start with \"(?-i)\" to become " - "case sensitive)"), + "case-sensitive)"), N_("raw[del]: delete an ignore"), N_("number: number of ignore to delete (look at list to find it)"), N_("raw[-all]: delete all ignores"), diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index 1fba7a78a..4fe688f58 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -3416,7 +3416,7 @@ irc_config_init () "highlight_channel", "string", N_("comma separated list of words to highlight in channel buffers " "(case-insensitive, use \"(?-i)\" at beginning of words to " - "make them case sensitive; special variables $nick, $channel and " + "make them case-sensitive; special variables $nick, $channel and " "$server are replaced by their values), these words are added to " "buffer property \"highlight_words\" only when buffer is created " "(it does not affect current buffers), an empty string disables " @@ -3428,7 +3428,7 @@ irc_config_init () "highlight_pv", "string", N_("comma separated list of words to highlight in private buffers " "(case-insensitive, use \"(?-i)\" at beginning of words to " - "make them case sensitive; special variables $nick, $channel and " + "make them case-sensitive; special variables $nick, $channel and " "$server are replaced by their values), these words are added to " "buffer property \"highlight_words\" only when buffer is created " "(it does not affect current buffers), an empty string disables " @@ -3440,7 +3440,7 @@ irc_config_init () "highlight_server", "string", N_("comma separated list of words to highlight in server buffers " "(case-insensitive, use \"(?-i)\" at beginning of words to " - "make them case sensitive; special variables $nick, $channel and " + "make them case-sensitive; special variables $nick, $channel and " "$server are replaced by their values), these words are added to " "buffer property \"highlight_words\" only when buffer is created " "(it does not affect current buffers), an empty string disables " diff --git a/src/plugins/relay/api/weechat-relay-api.yaml b/src/plugins/relay/api/weechat-relay-api.yaml index 026e10e92..07a4ebbc7 100644 --- a/src/plugins/relay/api/weechat-relay-api.yaml +++ b/src/plugins/relay/api/weechat-relay-api.yaml @@ -627,7 +627,7 @@ components: example: true nicklist_case_sensitive: type: boolean - description: groups and nicks are case sensitive + description: groups and nicks are case-sensitive example: false nicklist_display_groups: type: boolean diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c index dc6792f38..5d04e069c 100644 --- a/src/plugins/relay/relay-config.c +++ b/src/plugins/relay/relay-config.c @@ -1760,7 +1760,7 @@ relay_config_init () "websocket_allowed_origins", "string", N_("POSIX extended regular expression with origins allowed in " "websockets (case-insensitive, use \"(?-i)\" at beginning to " - "make it case sensitive), example: " + "make it case-sensitive), example: " "\"^https?://(www\\.)?example\\.(com|org)\""), NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, diff --git a/tests/unit/gui/test-gui-hotlist.cpp b/tests/unit/gui/test-gui-hotlist.cpp index 1576eb032..0a3427916 100644 --- a/tests/unit/gui/test-gui-hotlist.cpp +++ b/tests/unit/gui/test-gui-hotlist.cpp @@ -377,7 +377,7 @@ TEST(GuiHotlist, Resort) POINTERS_EQUAL(buffer_test[0], gui_hotlist->next_hotlist->next_hotlist->buffer); POINTERS_EQUAL(NULL, gui_hotlist->next_hotlist->next_hotlist->next_hotlist); - /* sort by buffer name (case sensitive) */ + /* sort by buffer name (case-sensitive) */ config_file_option_set (config_look_hotlist_sort, "buffer.name", 1); POINTERS_EQUAL(buffer_test[2], gui_hotlist->buffer); POINTERS_EQUAL(buffer_test[0], gui_hotlist->next_hotlist->buffer); diff --git a/tests/unit/gui/test-gui-key.cpp b/tests/unit/gui/test-gui-key.cpp index 94dcfae9f..dd6d49c17 100644 --- a/tests/unit/gui/test-gui-key.cpp +++ b/tests/unit/gui/test-gui-key.cpp @@ -959,7 +959,7 @@ TEST(GuiKey, IsSafe) LONGS_EQUAL(0, gui_key_is_safe (GUI_KEY_CONTEXT_DEFAULT, "comma")); LONGS_EQUAL(0, gui_key_is_safe (GUI_KEY_CONTEXT_DEFAULT, "space")); - /* NOT safe: starts with capital letter (keys are case sensitive) */ + /* NOT safe: starts with capital letter (keys are case-sensitive) */ LONGS_EQUAL(0, gui_key_is_safe (GUI_KEY_CONTEXT_DEFAULT, "Ctrl-a")); LONGS_EQUAL(0, gui_key_is_safe (GUI_KEY_CONTEXT_DEFAULT, "Meta-a")); LONGS_EQUAL(0, gui_key_is_safe (GUI_KEY_CONTEXT_DEFAULT, "Shift-home"));