Fix spelling of "frequency"

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lars Henriksen 2017-10-23 11:59:34 +02:00 committed by Lukas Fleischer
parent 61e577bf8a
commit c0644d5aaf
3 changed files with 8 additions and 10 deletions

View File

@ -358,7 +358,7 @@ enum recur_type {
/* To describe an item's repetition. */ /* To describe an item's repetition. */
struct rpt { struct rpt {
enum recur_type type; /* repetition type */ enum recur_type type; /* repetition type */
int freq; /* repetition frequence */ int freq; /* repetition frequency */
long until; /* ending date for repeated event */ long until; /* ending date for repeated event */
}; };

View File

@ -744,7 +744,7 @@ static ical_rpt_t *ical_read_rrule(FILE * log, char *rrulestr,
memset(rpt, 0, sizeof(ical_rpt_t)); memset(rpt, 0, sizeof(ical_rpt_t));
if (sscanf(p, "FREQ=%s", freqstr) != 1) { if (sscanf(p, "FREQ=%s", freqstr) != 1) {
ical_log(log, ICAL_VEVENT, itemline, ical_log(log, ICAL_VEVENT, itemline,
_("recurrence frequence not found.")); _("recurrence frequency not found."));
(*noskipped)++; (*noskipped)++;
mem_free(rpt); mem_free(rpt);
return NULL; return NULL;
@ -760,7 +760,7 @@ static ical_rpt_t *ical_read_rrule(FILE * log, char *rrulestr,
rpt->type = RECUR_YEARLY; rpt->type = RECUR_YEARLY;
} else { } else {
ical_log(log, ICAL_VEVENT, itemline, ical_log(log, ICAL_VEVENT, itemline,
_("recurrence frequence not recognized.")); _("recurrence frequency not recognized."));
(*noskipped)++; (*noskipped)++;
mem_free(rpt); mem_free(rpt);
return NULL; return NULL;

View File

@ -213,8 +213,7 @@ static void update_rept(struct rpt **rpt, const long start)
msg_rpt_yearly, msg_rpt_current); msg_rpt_yearly, msg_rpt_current);
const char *msg_rpt_choice = _("[dwmy]"); const char *msg_rpt_choice = _("[dwmy]");
const char *msg_wrong_freq = const char *msg_wrong_freq = _("Invalid frequency.");
_("The frequence you entered is not valid.");
const char *msg_wrong_time = const char *msg_wrong_time =
_("Invalid time: start time must be before end time!"); _("Invalid time: start time must be before end time!");
const char *msg_wrong_date = _("The entered date is not valid."); const char *msg_wrong_date = _("The entered date is not valid.");
@ -240,7 +239,7 @@ static void update_rept(struct rpt **rpt, const long start)
} }
do { do {
status_mesg(_("Enter the new repetition frequence:"), ""); status_mesg(_("Enter the new repetition frequency:"), "");
mem_free(freqstr); mem_free(freqstr);
asprintf(&freqstr, "%d", (*rpt)->freq); asprintf(&freqstr, "%d", (*rpt)->freq);
if (updatestring(win[STA].p, &freqstr, 0, 1) != if (updatestring(win[STA].p, &freqstr, 0, 1) !=
@ -677,7 +676,7 @@ void ui_day_item_delete(unsigned reg)
/* /*
* Ask user for repetition characteristics: * Ask user for repetition characteristics:
* o repetition type: daily, weekly, monthly, yearly * o repetition type: daily, weekly, monthly, yearly
* o repetition frequence: every X days, weeks, ... * o repetition frequency: every X days, weeks, ...
* o repetition end date * o repetition end date
* and then delete the selected item to recreate it as a recurrent one * and then delete the selected item to recreate it as a recurrent one
*/ */
@ -695,9 +694,8 @@ void ui_day_item_repeat(void)
const char *msg_rpt_monthly = _("(m)onthly"); const char *msg_rpt_monthly = _("(m)onthly");
const char *msg_rpt_yearly = _("(y)early"); const char *msg_rpt_yearly = _("(y)early");
const char *msg_type_choice = _("[dwmy]"); const char *msg_type_choice = _("[dwmy]");
const char *mesg_freq_1 = _("Enter the repetition frequence:"); const char *mesg_freq_1 = _("Enter the repetition frequency:");
const char *mesg_wrong_freq = const char *mesg_wrong_freq = _("Invalid frequency.");
_("The frequence you entered is not valid.");
const char *mesg_until_1 = const char *mesg_until_1 =
_("Enter end date ([%s]), duration ([+xxwxxd]) or '0' for endless repetition:"); _("Enter end date ([%s]), duration ([+xxwxxd]) or '0' for endless repetition:");
const char *mesg_wrong_1 = _("The entered date is not valid."); const char *mesg_wrong_1 = _("The entered date is not valid.");