mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 03:03:12 +02:00
core: rename options weechat.look.day_change_message(2) to weechat.look.day_change_message_{1date|2dates}
This commit is contained in:
@@ -99,8 +99,8 @@ struct t_config_option *config_look_color_real_white;
|
||||
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_day_change_message_1date;
|
||||
struct t_config_option *config_look_day_change_message_2dates;
|
||||
struct t_config_option *config_look_eat_newline_glitch;
|
||||
struct t_config_option *config_look_emphasized_attributes;
|
||||
struct t_config_option *config_look_highlight;
|
||||
@@ -2069,18 +2069,18 @@ config_weechat_init_options ()
|
||||
"day_change", "boolean",
|
||||
N_("display special message when day changes"),
|
||||
NULL, 0, 0, "on", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
|
||||
config_look_day_change_message = config_file_new_option (
|
||||
config_look_day_change_message_1date = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"day_change_message", "string",
|
||||
"day_change_message_1date", "string",
|
||||
/* TRANSLATORS: string "${color:xxx}" must NOT be translated */
|
||||
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 (
|
||||
config_look_day_change_message_2dates = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"day_change_message2", "string",
|
||||
"day_change_message_2dates", "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 "
|
||||
|
||||
@@ -116,8 +116,8 @@ extern struct t_config_option *config_look_color_real_white;
|
||||
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_day_change_message_1date;
|
||||
extern struct t_config_option *config_look_day_change_message_2dates;
|
||||
extern struct t_config_option *config_look_eat_newline_glitch;
|
||||
extern struct t_config_option *config_look_emphasized_attributes;
|
||||
extern struct t_config_option *config_look_highlight;
|
||||
|
||||
@@ -606,13 +606,13 @@ gui_chat_display_day_changed (struct t_gui_window *window,
|
||||
if (date1)
|
||||
{
|
||||
strftime (temp_message, sizeof (temp_message),
|
||||
CONFIG_STRING(config_look_day_change_message2), date1);
|
||||
CONFIG_STRING(config_look_day_change_message_2dates), date1);
|
||||
strftime (message, sizeof (message), temp_message, date2);
|
||||
}
|
||||
else
|
||||
{
|
||||
strftime (message, sizeof (message),
|
||||
CONFIG_STRING(config_look_day_change_message), date2);
|
||||
CONFIG_STRING(config_look_day_change_message_1date), date2);
|
||||
}
|
||||
|
||||
message_with_color = (strstr (message, "${")) ?
|
||||
|
||||
Reference in New Issue
Block a user