diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | po/cs.po | 10 | ||||
-rw-r--r-- | po/de.po | 10 | ||||
-rw-r--r-- | po/es.po | 10 | ||||
-rw-r--r-- | po/fr.po | 28 | ||||
-rw-r--r-- | po/hu.po | 10 | ||||
-rw-r--r-- | po/it.po | 10 | ||||
-rw-r--r-- | po/ja.po | 10 | ||||
-rw-r--r-- | po/pl.po | 10 | ||||
-rw-r--r-- | po/pt.po | 10 | ||||
-rw-r--r-- | po/pt_BR.po | 10 | ||||
-rw-r--r-- | po/ru.po | 10 | ||||
-rw-r--r-- | po/sr.po | 10 | ||||
-rw-r--r-- | po/tr.po | 10 | ||||
-rw-r--r-- | po/weechat.pot | 10 | ||||
-rw-r--r-- | src/core/core-config.c | 12 | ||||
-rw-r--r-- | src/core/core-config.h | 1 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 3 |
18 files changed, 137 insertions, 38 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 4000ebb53..cf1825592 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -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" @@ -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 " @@ -4486,6 +4487,11 @@ msgstr "" "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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " @@ -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 " @@ -5054,6 +5055,11 @@ 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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " @@ -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 " @@ -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 @@ -4938,6 +4939,13 @@ msgstr "" "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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " @@ -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 " @@ -4240,6 +4241,11 @@ msgid "" 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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " @@ -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 " @@ -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 " @@ -4677,6 +4678,11 @@ msgstr "" "は区別する)、例: \"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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " @@ -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 " @@ -4785,6 +4786,11 @@ msgstr "" "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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " @@ -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 " @@ -4700,6 +4701,11 @@ msgstr "" "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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " diff --git a/po/pt_BR.po b/po/pt_BR.po index 3c506adec..a89d8114e 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -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 " @@ -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 " @@ -4268,6 +4269,11 @@ msgid "" 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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " @@ -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 " @@ -4796,6 +4797,11 @@ msgstr "" "примери: „<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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " @@ -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 " @@ -4701,6 +4702,11 @@ msgstr "" "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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " diff --git a/po/weechat.pot b/po/weechat.pot index 4d0669ed5..f8c5a4f4d 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -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 " @@ -3978,6 +3979,11 @@ msgid "" 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 " "different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is " diff --git a/src/core/core-config.c b/src/core/core-config.c index 34ef55851..1e7ff82a1 100644 --- a/src/core/core-config.c +++ b/src/core/core-config.c @@ -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", diff --git a/src/core/core-config.h b/src/core/core-config.h index 13989a816..cf556a05e 100644 --- a/src/core/core-config.h +++ b/src/core/core-config.h @@ -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; diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index a7726cc57..62272f463 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -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) |