summaryrefslogtreecommitdiff
path: root/src/recur.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-04-05 21:36:54 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-04-05 22:18:46 +0200
commit80f7e8ead55ee85a364c98db64c21d70a34d1dc1 (patch)
treed8c6d909ada1c0c4c85533a0d1687d0ccdffb17e /src/recur.c
parent516a793375424ea2bbdc891bf0c917a8f7b388a1 (diff)
downloadcalcurse-80f7e8ead55ee85a364c98db64c21d70a34d1dc1.zip
Mark localized string literals constant
Translated strings returned by gettext() are statically allocated and shouldn't be modified. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/recur.c')
-rw-r--r--src/recur.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/recur.c b/src/recur.c
index 7457dbb..e1be22a 100644
--- a/src/recur.c
+++ b/src/recur.c
@@ -874,19 +874,19 @@ recur_repeat_item (void)
struct date until_date;
char outstr[BUFSIZ];
char user_input[BUFSIZ] = "";
- char *mesg_type_1 =
+ const char *mesg_type_1 =
_("Enter the repetition type: (D)aily, (W)eekly, (M)onthly, (Y)early");
- char *mesg_type_2 = _("[D/W/M/Y] ");
- char *mesg_freq_1 = _("Enter the repetition frequence:");
- char *mesg_wrong_freq = _("The frequence you entered is not valid.");
- char *mesg_until_1 =
+ const char *mesg_type_2 = _("[D/W/M/Y] ");
+ const char *mesg_freq_1 = _("Enter the repetition frequence:");
+ const char *mesg_wrong_freq = _("The frequence you entered is not valid.");
+ const char *mesg_until_1 =
_("Enter the ending date: [%s] or '0' for an endless repetition");
- char *mesg_wrong_1 = _("The entered date is not valid.");
- char *mesg_wrong_2 =
+ const char *mesg_wrong_1 = _("The entered date is not valid.");
+ const char *mesg_wrong_2 =
_("Possible formats are [%s] or '0' for an endless repetition");
- char *wrong_type_1 = _("This item is already a repeated one.");
- char *wrong_type_2 = _("Press [ENTER] to continue.");
- char *mesg_older =
+ const char *wrong_type_1 = _("This item is already a repeated one.");
+ const char *wrong_type_2 = _("Press [ENTER] to continue.");
+ const char *mesg_older =
_("Sorry, the date you entered is older than the item start time.");
int type = 0, freq = 0;
int item_nb;