summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-12-22 16:53:44 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-01-30 15:38:13 +0100
commitefa3589f78f52d33800c2be004b1f80b0bc3aac1 (patch)
tree8897893eb6b160cc7926e4397aede2c461c49143
parent2ea91e1a8a2ee4318e3530ec2680565ad11b1585 (diff)
downloadcalcurse-efa3589f78f52d33800c2be004b1f80b0bc3aac1.zip
custom.c: Fix sidebar configuration help text
* Use a format string instead of the TOSTRING() macro. * Remove "xgettext:no-c-format" hack and use "%%" instead. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/custom.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/custom.c b/src/custom.c
index df7feef..8eb3ef0 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -231,7 +231,7 @@ void custom_layout_config(void)
switch (ch) {
case KEY_GENERIC_HELP:
help_wins_init(&hwin, 0, 0, (notify_bar())? row - 3 : row - 2, col);
- mvwaddstr(hwin.pad.p, 1, 0, help_text);
+ mvwprintw(hwin.pad.p, 1, 0, help_text, SBARMINWIDTH);
hwin.total_lines = 7;
wins_scrollwin_display(&hwin);
wgetch(hwin.win.p);
@@ -295,13 +295,12 @@ void custom_sidebar_config(void)
};
const char *help_text =
_
- /* xgettext:no-c-format */
("This configuration screen is used to change the width of the side bar.\n"
"The side bar is the part of the screen which contains two panels:\n"
"the calendar and, depending on the chosen layout, either the todo list\n"
"or the appointment list.\n\n"
- "The side bar width can be up to 50% of the total screen width, but\n"
- "can't be smaller than " TOSTRING(SBARMINWIDTH) " characters wide.\n\n");
+ "The side bar width can be up to 50%% of the total screen width, but\n"
+ "can't be smaller than %d characters wide.\n\n");
int ch, bindings_size;
bindings_size = sizeof(bindings) / sizeof(bindings[0]);