1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

core: add option weechat.look.highlight_prefix (closes #2079)

This commit is contained in:
Sébastien Helleu
2024-03-16 11:32:51 +01:00
parent 6f660f2430
commit f856173e1f
18 changed files with 137 additions and 38 deletions
+1
View File
@@ -15,6 +15,7 @@ For a list of important changes that require manual actions, please look at rele
New features::
* core: add option weechat.look.highlight_prefix (issue #2079)
* core: add variable `${highlight}` in option weechat.look.buffer_time_format (issue #2079)
* core: convert option weechat.look.hotlist_sort to a list of fields (issue #2097)
* core: rename variables with creation time in hdata "hotlist": "creation_time.tv_sec" to "time" and "creation_time.tv_usec" to "time_usec"
+8 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-06 20:32+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4284,7 +4284,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4485,6 +4486,11 @@ msgstr ""
"na rozeznávání dle velikosti), například: \"flashcode|flashy\", \"(?-"
"i)FlashCode|flashy\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-07 11:51+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -4815,7 +4815,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -5053,6 +5054,11 @@ msgstr ""
"und Kleinschreibung zu beachten), Beispiele: \"<flash.*>\", \"(?-i)<Flash."
"*>\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-06 20:32+0100\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4401,7 +4401,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4610,6 +4611,11 @@ msgstr ""
"las mayúsculas (usa \"(?-i)\" al principio para cambiarlo), ejemplos: "
"\"FlashCode|flashy\", \"(?-i)Flascode|flashy\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
msgstr ""
#, fuzzy
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
+18 -10
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"PO-Revision-Date: 2024-03-16 09:39+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-16 09:49+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -4700,7 +4700,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4714,13 +4715,13 @@ msgstr ""
"Référence API extension) (note : le contenu est évalué, donc vous pouvez "
"utiliser des couleurs avec le format \"${color:xxx}\", voir /help eval) ; la "
"variable \"${highlight}\" peut être utilisée dans une condition pour avoir "
"un format spécifique aux lignes avec highlight ; par exemple l'heure avec "
"des niveaux de gris : \"${color:252}%H${color:243}%M${color:237}%S\", le "
"même format avec des millisecondes : "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", fond rouge in cas de "
"highlight : \"${if:${highlight}?${color:,red}}%H:%M:%S\", fond rouge en cas "
"de highlight avec des niveaux de gris : \"${if:${highlight}?${color:"
"yellow,124}%H${color:187}%M${color:181}%S:"
"un format spécifique aux lignes avec highlight (voir aussi l'option weechat."
"look.highlight_prefix) ; par exemple l'heure avec des niveaux de gris : "
"\"${color:252}%H${color:243}%M${color:237}%S\", le même format avec des "
"millisecondes : \"${color:252}%H${color:243}%M${color:237}%S.%.3\", fond "
"rouge in cas de highlight : \"${if:${highlight}?${color:,red}}%H:%M:%S\", "
"fond rouge en cas de highlight avec des niveaux de gris : \"${if:"
"${highlight}?${color:yellow,124}%H${color:187}%M${color:181}%S:"
"${color:252}%H${color:243}%M${color:237}%S}\""
#. TRANSLATORS: string "${color:xxx}" must NOT be translated
@@ -4937,6 +4938,13 @@ msgstr ""
"insensible à la casse (utilisez \"(?-i)\" au début pour la rendre sensible à "
"la casse), exemples : \"<flash.*>\", \"(?-i)<Flash.*>\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
msgstr ""
"utiliser une couleur spécifique pour le préfixe de la ligne en cas de "
"highlight (voir aussi l'option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2023-11-29 09:59+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4083,7 +4083,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4239,6 +4240,11 @@ msgid ""
"i)<Flash.*>\""
msgstr ""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-06 20:32+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4312,7 +4312,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4520,6 +4521,11 @@ msgstr ""
"renderla sensibile alle maiuscole), ad esempio: \"flashcode|flashy\", \"(?-"
"i)Flashcode|flashy\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
msgstr ""
#, fuzzy
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
+8 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-06 20:32+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -4456,7 +4456,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4676,6 +4677,11 @@ msgstr ""
"ればいけない、正規表現は大文字小文字を区別しない (最初に \"(?-i)\" がある場合"
"は区別する)、例: \"flashcode|flashy\"、\"(?-i)FlashCode|flashy\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-06 20:32+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4561,7 +4561,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4784,6 +4785,11 @@ msgstr ""
"ignoruje wielkość znaków (użyj „(?-i)” na początku, aby wielość znaków nie "
"była ignorowana), przykłady: „<flash.*>”, „(?-i)<Flash.*>”"
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-06 20:32+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -4469,7 +4469,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4699,6 +4700,11 @@ msgstr ""
"início para distinguir), exemplos: \"flashcode|flashy\", \"(?-i)FlashCode|"
"flash\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-02-17 10:07+0100\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4338,7 +4338,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4527,6 +4528,11 @@ msgstr ""
"de palavra (alfanumérico, \"-\", \"_\" ou \"|\"), expressões regulares levam "
"em conta maiúscula/minúscula, exemplo: \"FlashCode|flashy\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
msgstr ""
#, fuzzy
msgid ""
"POSIX extended regular expression used to check if a message has highlight "
+8 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2023-11-29 09:59+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4108,7 +4108,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4267,6 +4268,11 @@ msgid ""
"i)<Flash.*>\""
msgstr ""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-06 20:32+0100\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4575,7 +4575,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4795,6 +4796,11 @@ msgstr ""
"слова (употребите „(?-i)” на почетку да се величина слова не узима у обзир), "
"примери: „<flash.*>”, „(?-i)<Flash.*>”"
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\n"
"PO-Revision-Date: 2024-03-06 20:33+0100\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4484,7 +4484,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -4700,6 +4701,11 @@ msgstr ""
"yapmak için başında \"(?-i)\" kullanın), örneğin: \"<flash.*>\", \"(?-"
"i)\"<Flash.*>\""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+8 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-03-16 09:38+0100\n"
"POT-Creation-Date: 2024-03-16 09:48+0100\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"
@@ -3832,7 +3832,8 @@ msgid ""
"util_strftimeval in Plugin API reference) (note: content is evaluated, so "
"you can use colors with format \"${color:xxx}\", see /help eval); variable "
"\"${highlight}\" can be used in a condition to have a format specific to "
"lines with highlight; for example time using grayscale: "
"lines with highlight (see also option weechat.look.highlight_prefix); for "
"example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", the same with milliseconds: "
"\"${color:252}%H${color:243}%M${color:237}%S.%.3\", red background in case "
"of highlight: \"${if:${highlight}?${color:,red}}%H:%M:%S\", red background "
@@ -3977,6 +3978,11 @@ msgid ""
"i)<Flash.*>\""
msgstr ""
msgid ""
"use a specific color for prefix of line in case of highlight (see also "
"option weechat.look.buffer_time_format)"
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 "
+11 -1
View File
@@ -142,6 +142,7 @@ struct t_config_option *config_look_eat_newline_glitch = NULL;
struct t_config_option *config_look_emphasized_attributes = NULL;
struct t_config_option *config_look_highlight = NULL;
struct t_config_option *config_look_highlight_disable_regex = NULL;
struct t_config_option *config_look_highlight_prefix = NULL;
struct t_config_option *config_look_highlight_regex = NULL;
struct t_config_option *config_look_highlight_tags = NULL;
struct t_config_option *config_look_hotlist_add_conditions = NULL;
@@ -3323,7 +3324,7 @@ config_weechat_init_options ()
"(note: content is evaluated, so you can use colors with format "
"\"${color:xxx}\", see /help eval); variable \"${highlight}\" "
"can be used in a condition to have a format specific to lines "
"with highlight; "
"with highlight (see also option weechat.look.highlight_prefix); "
"for example time using grayscale: "
"\"${color:252}%H${color:243}%M${color:237}%S\", "
"the same with milliseconds: "
@@ -3568,6 +3569,15 @@ config_weechat_init_options ()
NULL, NULL, NULL,
&config_change_highlight_disable_regex, NULL, NULL,
NULL, NULL, NULL);
config_look_highlight_prefix = config_file_new_option (
weechat_config_file, weechat_config_section_look,
"highlight_prefix", "boolean",
N_("use a specific color for prefix of line in case of highlight "
"(see also option weechat.look.buffer_time_format)"),
NULL, 0, 0, "on", NULL, 0,
NULL, NULL, NULL,
&config_change_buffers, NULL, NULL,
NULL, NULL, NULL);
config_look_highlight_regex = config_file_new_option (
weechat_config_file, weechat_config_section_look,
"highlight_regex", "string",
+1
View File
@@ -199,6 +199,7 @@ 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_prefix;
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;
+2 -1
View File
@@ -1155,7 +1155,8 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
&& gui_line_has_offline_nick (line);
prefix_highlighted = NULL;
if (line->data->highlight)
if (line->data->highlight
&& CONFIG_BOOLEAN(config_look_highlight_prefix))
{
prefix_no_color = gui_color_decode (ptr_prefix, NULL);
if (prefix_no_color)