Fix a couple of translatable strings
* Remove space before punctuation. * Use "TODO" instead of "ToDo". * Strip some formats to make sure lines are <=80 characters wide. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
616677fb34
commit
a3d43ead87
@ -115,7 +115,7 @@ static inline void key_view_item(void)
|
|||||||
day_popup_item(day_get_item(ui_day_hilt()));
|
day_popup_item(day_get_item(ui_day_hilt()));
|
||||||
else if ((wins_slctd() == TOD) && (ui_todo_hilt() != 0))
|
else if ((wins_slctd() == TOD) && (ui_todo_hilt() != 0))
|
||||||
item_in_popup(NULL, NULL, ui_todo_saved_mesg(),
|
item_in_popup(NULL, NULL, ui_todo_saved_mesg(),
|
||||||
_("To do :"));
|
_("TODO:"));
|
||||||
wins_update(FLAG_ALL);
|
wins_update(FLAG_ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -476,7 +476,7 @@ static inline void key_generic_quit(void)
|
|||||||
note_gc();
|
note_gc();
|
||||||
|
|
||||||
if (conf.confirm_quit) {
|
if (conf.confirm_quit) {
|
||||||
if (status_ask_bool(_("Do you really want to quit ?")) ==
|
if (status_ask_bool(_("Do you really want to quit?")) ==
|
||||||
1) {
|
1) {
|
||||||
exit_calcurse(EXIT_SUCCESS);
|
exit_calcurse(EXIT_SUCCESS);
|
||||||
} else {
|
} else {
|
||||||
|
@ -540,7 +540,7 @@ void day_popup_item(struct day_item *day)
|
|||||||
{
|
{
|
||||||
if (day->type == EVNT || day->type == RECUR_EVNT) {
|
if (day->type == EVNT || day->type == RECUR_EVNT) {
|
||||||
item_in_popup(NULL, NULL, day_item_get_mesg(day),
|
item_in_popup(NULL, NULL, day_item_get_mesg(day),
|
||||||
_("Event :"));
|
_("Event:"));
|
||||||
} else if (day->type == APPT || day->type == RECUR_APPT) {
|
} else if (day->type == APPT || day->type == RECUR_APPT) {
|
||||||
char a_st[100], a_end[100];
|
char a_st[100], a_end[100];
|
||||||
|
|
||||||
@ -553,7 +553,7 @@ void day_popup_item(struct day_item *day)
|
|||||||
a_st, a_end);
|
a_st, a_end);
|
||||||
|
|
||||||
item_in_popup(a_st, a_end, day_item_get_mesg(day),
|
item_in_popup(a_st, a_end, day_item_get_mesg(day),
|
||||||
_("Appointment :"));
|
_("Appointment:"));
|
||||||
} else {
|
} else {
|
||||||
EXIT(_("unknown item type"));
|
EXIT(_("unknown item type"));
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
|
10
src/help.c
10
src/help.c
@ -491,9 +491,9 @@ void help_screen(void)
|
|||||||
|
|
||||||
hscr[HELP_DELETE].title = _("Delete\n");
|
hscr[HELP_DELETE].title = _("Delete\n");
|
||||||
snprintf(hscr[HELP_DELETE].text, HELPTEXTSIZ,
|
snprintf(hscr[HELP_DELETE].text, HELPTEXTSIZ,
|
||||||
_("Delete an element in the ToDo or Appointment list.\n"
|
_("Delete an element in the TODO or Appointment list.\n"
|
||||||
"\nDepending on which panel is selected when you press the delete key,\n"
|
"\nDepending on which panel is selected when you press the delete key,\n"
|
||||||
"the hilighted item of either the ToDo or Appointment list will be \n"
|
"the hilighted item of either the TODO or Appointment list will be \n"
|
||||||
"removed from this list.\n"
|
"removed from this list.\n"
|
||||||
"\nIf the item to be deleted is recurrent, you will be asked if you\n"
|
"\nIf the item to be deleted is recurrent, you will be asked if you\n"
|
||||||
"wish to suppress all of the item occurences or just the one you\n"
|
"wish to suppress all of the item occurences or just the one you\n"
|
||||||
@ -505,7 +505,7 @@ void help_screen(void)
|
|||||||
|
|
||||||
hscr[HELP_ADD].title = _("Add\n");
|
hscr[HELP_ADD].title = _("Add\n");
|
||||||
snprintf(hscr[HELP_ADD].text, HELPTEXTSIZ,
|
snprintf(hscr[HELP_ADD].text, HELPTEXTSIZ,
|
||||||
_("Add an item in either the ToDo or Appointment list, depending on which\n"
|
_("Add an item in either the TODO or Appointment list, depending on which\n"
|
||||||
"panel is selected when you press '%s'.\n"
|
"panel is selected when you press '%s'.\n"
|
||||||
"\nTo enter a new item in the TODO list, you will need first to enter the"
|
"\nTo enter a new item in the TODO list, you will need first to enter the"
|
||||||
"\ndescription of this new item. Then you will be asked to specify the "
|
"\ndescription of this new item. Then you will be asked to specify the "
|
||||||
@ -610,7 +610,7 @@ void help_screen(void)
|
|||||||
|
|
||||||
hscr[HELP_PRIORITY].title = _("Priority\n");
|
hscr[HELP_PRIORITY].title = _("Priority\n");
|
||||||
snprintf(hscr[HELP_PRIORITY].text, HELPTEXTSIZ,
|
snprintf(hscr[HELP_PRIORITY].text, HELPTEXTSIZ,
|
||||||
_("Change the priority of the currently selected item in the ToDo list.\n"
|
_("Change the priority of the currently selected item in the TODO list.\n"
|
||||||
"Priorities are represented by the number appearing in front of the\n"
|
"Priorities are represented by the number appearing in front of the\n"
|
||||||
"todo description. This number goes from 9 for the lowest priority to\n"
|
"todo description. This number goes from 9 for the lowest priority to\n"
|
||||||
"1 for the highest priority.\n"
|
"1 for the highest priority.\n"
|
||||||
@ -692,7 +692,7 @@ void help_screen(void)
|
|||||||
" you resize your terminal screen or when\n"
|
" you resize your terminal screen or when\n"
|
||||||
" garbage appears inside the display\n"
|
" garbage appears inside the display\n"
|
||||||
" '%s' : Add Appointment -> add an appointment or an event\n"
|
" '%s' : Add Appointment -> add an appointment or an event\n"
|
||||||
" '%s' : Add ToDo -> add a todo\n"
|
" '%s' : Add TODO -> add a todo\n"
|
||||||
" '%s' : -1 Day -> move to previous day\n"
|
" '%s' : -1 Day -> move to previous day\n"
|
||||||
" '%s' : +1 Day -> move to next day\n"
|
" '%s' : +1 Day -> move to next day\n"
|
||||||
" '%s' : -1 Week -> move to previous week\n"
|
" '%s' : -1 Week -> move to previous week\n"
|
||||||
|
6
src/io.c
6
src/io.c
@ -269,7 +269,7 @@ void io_init(const char *cfile, const char *datadir)
|
|||||||
/* check if the file exists, otherwise create it */
|
/* check if the file exists, otherwise create it */
|
||||||
data_file = fopen(path_apts, "r");
|
data_file = fopen(path_apts, "r");
|
||||||
if (data_file == NULL) {
|
if (data_file == NULL) {
|
||||||
printf(_("%s does not exist, create it now [y or n] ? "),
|
printf(_("%s does not exist, create it now [y/n]? "),
|
||||||
path_apts);
|
path_apts);
|
||||||
ch = getchar();
|
ch = getchar();
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
@ -839,7 +839,7 @@ void io_load_keys(const char *pager)
|
|||||||
file_close(log->fd, __FILE_POS__);
|
file_close(log->fd, __FILE_POS__);
|
||||||
if (skipped > 0) {
|
if (skipped > 0) {
|
||||||
const char *view_log =
|
const char *view_log =
|
||||||
_("There were some errors when loading keys file, see log file ?");
|
_("There were some errors when loading keys file, see log file?");
|
||||||
|
|
||||||
io_log_display(log, view_log, pager);
|
io_log_display(log, view_log, pager);
|
||||||
}
|
}
|
||||||
@ -1106,7 +1106,7 @@ void io_import_data(enum import_type type, const char *stream_name)
|
|||||||
file_close(log->fd, __FILE_POS__);
|
file_close(log->fd, __FILE_POS__);
|
||||||
if (stats.skipped > 0) {
|
if (stats.skipped > 0) {
|
||||||
const char *view_log =
|
const char *view_log =
|
||||||
_("Some items could not be imported, see log file ?");
|
_("Some items could not be imported, see log file?");
|
||||||
|
|
||||||
io_log_display(log, view_log, conf.pager);
|
io_log_display(log, view_log, conf.pager);
|
||||||
}
|
}
|
||||||
|
16
src/ui-day.c
16
src/ui-day.c
@ -45,7 +45,7 @@ static int day_edit_time(int time, unsigned *new_hour,
|
|||||||
{
|
{
|
||||||
char *timestr = date_sec2date_str(time, "%H:%M");
|
char *timestr = date_sec2date_str(time, "%H:%M");
|
||||||
const char *msg_time =
|
const char *msg_time =
|
||||||
_("Enter the new time ([hh:mm] or [hhmm]) : ");
|
_("Enter start time ([hh:mm] or [hhmm]):");
|
||||||
const char *enter_str = _("Press [Enter] to continue");
|
const char *enter_str = _("Press [Enter] to continue");
|
||||||
const char *fmt_msg =
|
const char *fmt_msg =
|
||||||
_("You entered an invalid time, should be [hh:mm] or [hhmm]");
|
_("You entered an invalid time, should be [hh:mm] or [hhmm]");
|
||||||
@ -70,7 +70,7 @@ static int day_edit_duration(int start, int dur, unsigned *new_duration)
|
|||||||
{
|
{
|
||||||
char *timestr = date_sec2date_str(start + dur, "%H:%M");
|
char *timestr = date_sec2date_str(start + dur, "%H:%M");
|
||||||
const char *msg_time =
|
const char *msg_time =
|
||||||
_("Enter new end time ([hh:mm], [hhmm]) or duration ([+hh:mm], [+xxxdxxhxxm] or [+mm]) : ");
|
_("Enter end time ([hh:mm], [hhmm]) or duration ([+hh:mm], [+xxxdxxhxxm]):");
|
||||||
const char *enter_str = _("Press [Enter] to continue");
|
const char *enter_str = _("Press [Enter] to continue");
|
||||||
const char *fmt_msg =
|
const char *fmt_msg =
|
||||||
_("You entered an invalid time, should be [hh:mm] or [hhmm]");
|
_("You entered an invalid time, should be [hh:mm] or [hhmm]");
|
||||||
@ -431,10 +431,10 @@ void ui_day_item_add(void)
|
|||||||
#define LTIME 6
|
#define LTIME 6
|
||||||
#define LDUR 12
|
#define LDUR 12
|
||||||
const char *mesg_1 =
|
const char *mesg_1 =
|
||||||
_("Enter start time ([hh:mm] or [hhmm]), leave blank for an all-day event : ");
|
_("Enter start time ([hh:mm] or [hhmm]), leave blank for an all-day event:");
|
||||||
const char *mesg_2 =
|
const char *mesg_2 =
|
||||||
_("Enter end time ([hh:mm] or [hhmm]) or duration ([+hh:mm], [+xxxdxxhxxm] or [+mm]) : ");
|
_("Enter end time ([hh:mm], [hhmm]) or duration ([+hh:mm], [+xxxdxxhxxm]):");
|
||||||
const char *mesg_3 = _("Enter description :");
|
const char *mesg_3 = _("Enter description:");
|
||||||
const char *format_message_1 =
|
const char *format_message_1 =
|
||||||
_("You entered an invalid start time, should be [hh:mm] or [hhmm]");
|
_("You entered an invalid start time, should be [hh:mm] or [hhmm]");
|
||||||
const char *format_message_2 =
|
const char *format_message_2 =
|
||||||
@ -537,17 +537,17 @@ void ui_day_item_delete(unsigned *nb_events, unsigned *nb_apoints,
|
|||||||
unsigned reg)
|
unsigned reg)
|
||||||
{
|
{
|
||||||
const char *del_app_str =
|
const char *del_app_str =
|
||||||
_("Do you really want to delete this item ?");
|
_("Do you really want to delete this item?");
|
||||||
|
|
||||||
const char *erase_warning =
|
const char *erase_warning =
|
||||||
_("This item is recurrent. "
|
_("This item is recurrent. "
|
||||||
"Delete (a)ll occurences or just this (o)ne ?");
|
"Delete (a)ll occurences or just this (o)ne?");
|
||||||
const char *erase_choices = _("[ao]");
|
const char *erase_choices = _("[ao]");
|
||||||
const int nb_erase_choices = 2;
|
const int nb_erase_choices = 2;
|
||||||
|
|
||||||
const char *note_warning =
|
const char *note_warning =
|
||||||
_("This item has a note attached to it. "
|
_("This item has a note attached to it. "
|
||||||
"Delete (i)tem or just its (n)ote ?");
|
"Delete (i)tem or just its (n)ote?");
|
||||||
const char *note_choices = _("[in]");
|
const char *note_choices = _("[in]");
|
||||||
const int nb_note_choices = 2;
|
const int nb_note_choices = 2;
|
||||||
|
|
||||||
|
@ -45,9 +45,9 @@ static char *msgsav;
|
|||||||
void ui_todo_add(void)
|
void ui_todo_add(void)
|
||||||
{
|
{
|
||||||
int ch = 0;
|
int ch = 0;
|
||||||
const char *mesg = _("Enter the new ToDo item : ");
|
const char *mesg = _("Enter the new TODO item:");
|
||||||
const char *mesg_id =
|
const char *mesg_id =
|
||||||
_("Enter the ToDo priority [1 (highest) - 9 (lowest)] :");
|
_("Enter the TODO priority [1 (highest) - 9 (lowest)]:");
|
||||||
char todo_input[BUFSIZ] = "";
|
char todo_input[BUFSIZ] = "";
|
||||||
|
|
||||||
status_mesg(mesg, "");
|
status_mesg(mesg, "");
|
||||||
@ -62,14 +62,14 @@ void ui_todo_add(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete an item from the ToDo list. */
|
/* Delete an item from the TODO list. */
|
||||||
void ui_todo_delete(void)
|
void ui_todo_delete(void)
|
||||||
{
|
{
|
||||||
const char *del_todo_str =
|
const char *del_todo_str =
|
||||||
_("Do you really want to delete this task ?");
|
_("Do you really want to delete this task?");
|
||||||
const char *erase_warning =
|
const char *erase_warning =
|
||||||
_("This item has a note attached to it. "
|
_("This item has a note attached to it. "
|
||||||
"Delete (t)odo or just its (n)ote ?");
|
"Delete (t)odo or just its (n)ote?");
|
||||||
const char *erase_choice = _("[tn]");
|
const char *erase_choice = _("[tn]");
|
||||||
const int nb_erase_choice = 2;
|
const int nb_erase_choice = 2;
|
||||||
int answer;
|
int answer;
|
||||||
@ -113,7 +113,7 @@ void ui_todo_delete(void)
|
|||||||
void ui_todo_edit(void)
|
void ui_todo_edit(void)
|
||||||
{
|
{
|
||||||
struct todo *i;
|
struct todo *i;
|
||||||
const char *mesg = _("Enter the new ToDo description :");
|
const char *mesg = _("Enter the new TODO description:");
|
||||||
|
|
||||||
status_mesg(mesg, "");
|
status_mesg(mesg, "");
|
||||||
i = todo_get_item(ui_todo_hilt());
|
i = todo_get_item(ui_todo_hilt());
|
||||||
@ -250,7 +250,7 @@ display_todo_item(int incolor, char *msg, int prio, int note, int width,
|
|||||||
custom_remove_attr(w, ATTR_HIGHEST);
|
custom_remove_attr(w, ATTR_HIGHEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Updates the ToDo panel. */
|
/* Updates the TODO panel. */
|
||||||
void ui_todo_update_panel(int which_pan)
|
void ui_todo_update_panel(int which_pan)
|
||||||
{
|
{
|
||||||
llist_item_t *i;
|
llist_item_t *i;
|
||||||
|
@ -254,7 +254,7 @@ static void wins_init_panels(void)
|
|||||||
|
|
||||||
win[TOD].p =
|
win[TOD].p =
|
||||||
newwin(win[TOD].h, win[TOD].w, win[TOD].y, win[TOD].x);
|
newwin(win[TOD].h, win[TOD].w, win[TOD].y, win[TOD].x);
|
||||||
wins_show(win[TOD].p, _("ToDo"));
|
wins_show(win[TOD].p, _("TODO"));
|
||||||
|
|
||||||
/* Enable function keys (i.e. arrow keys) in those windows */
|
/* Enable function keys (i.e. arrow keys) in those windows */
|
||||||
keypad(win[CAL].p, TRUE);
|
keypad(win[CAL].p, TRUE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user