summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config.c16
-rw-r--r--src/core/wee-config.h1
2 files changed, 16 insertions, 1 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 0e217deaf..f2a86341d 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -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",
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index a3d13ec03..77200875d 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -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;