mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 17:23:15 +02:00
core: add option weechat.look.day_change_message2
The new option weechat.look.day_change_message2 is used to display day change between two messages, with two dates: the new one, and the old one. Example: -- Mon, 02 Sep 2013 (Thu, 22 Aug 2013) --
This commit is contained in:
+15
-1
@@ -100,6 +100,7 @@ struct t_config_option *config_look_command_chars;
|
||||
struct t_config_option *config_look_confirm_quit;
|
||||
struct t_config_option *config_look_day_change;
|
||||
struct t_config_option *config_look_day_change_message;
|
||||
struct t_config_option *config_look_day_change_message2;
|
||||
struct t_config_option *config_look_eat_newline_glitch;
|
||||
struct t_config_option *config_look_emphasized_attributes;
|
||||
struct t_config_option *config_look_highlight;
|
||||
@@ -2072,10 +2073,23 @@ config_weechat_init_options ()
|
||||
weechat_config_file, ptr_section,
|
||||
"day_change_message", "string",
|
||||
/* TRANSLATORS: string "${color:xxx}" must NOT be translated */
|
||||
N_("message displayed when the day has changed (see man strftime for "
|
||||
N_("message displayed when the day has changed, with one date displayed "
|
||||
"(for example at beginning of buffer) (see man strftime for "
|
||||
"date/time specifiers) (note: content is evaluated, so you can use "
|
||||
"colors with format \"${color:xxx}\", see /help eval)"),
|
||||
NULL, 0, 0, "-- %a, %d %b %Y --", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
|
||||
config_look_day_change_message2 = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"day_change_message2", "string",
|
||||
/* TRANSLATORS: string "${color:xxx}" must NOT be translated */
|
||||
N_("message displayed when the day has changed, with two dates displayed "
|
||||
"(between two messages); the second date specifiers must start with "
|
||||
"two \"%\" because strftime is called two times on this string "
|
||||
"(see man strftime for date/time specifiers) (note: content is "
|
||||
"evaluated, so you can use colors with format \"${color:xxx}\", "
|
||||
"see /help eval)"),
|
||||
NULL, 0, 0, "-- %%a, %%d %%b %%Y (%a, %d %b %Y) --", NULL, 0, NULL, NULL,
|
||||
&config_change_buffers, NULL, NULL, NULL);
|
||||
config_look_eat_newline_glitch = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"eat_newline_glitch", "boolean",
|
||||
|
||||
@@ -117,6 +117,7 @@ extern struct t_config_option *config_look_command_chars;
|
||||
extern struct t_config_option *config_look_confirm_quit;
|
||||
extern struct t_config_option *config_look_day_change;
|
||||
extern struct t_config_option *config_look_day_change_message;
|
||||
extern struct t_config_option *config_look_day_change_message2;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user