summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-05-14 11:50:28 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2013-05-14 12:03:04 +0200
commita3d43ead87a742e6c1ffa24c9528608cc68c7e52 (patch)
treeb2bed4578c8c44c961517a007061fd1da6018ec5 /src
parent616677fb347607a84d4879d78d0a2dc8e1bc3f91 (diff)
downloadcalcurse-a3d43ead87a742e6c1ffa24c9528608cc68c7e52.tar.gz
calcurse-a3d43ead87a742e6c1ffa24c9528608cc68c7e52.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/calcurse.c4
-rw-r--r--src/day.c4
-rw-r--r--src/help.c10
-rw-r--r--src/io.c6
-rw-r--r--src/ui-day.c16
-rw-r--r--src/ui-todo.c14
-rw-r--r--src/wins.c2
7 files changed, 28 insertions, 28 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 7ab9c6a..0247ba0 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -115,7 +115,7 @@ static inline void key_view_item(void)
day_popup_item(day_get_item(ui_day_hilt()));
else if ((wins_slctd() == TOD) && (ui_todo_hilt() != 0))
item_in_popup(NULL, NULL, ui_todo_saved_mesg(),
- _("To do :"));
+ _("TODO:"));
wins_update(FLAG_ALL);
}
@@ -476,7 +476,7 @@ static inline void key_generic_quit(void)
note_gc();
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) {
exit_calcurse(EXIT_SUCCESS);
} else {
diff --git a/src/day.c b/src/day.c
index 9a99b95..c57d983 100644
--- a/src/day.c
+++ b/src/day.c
@@ -540,7 +540,7 @@ void day_popup_item(struct day_item *day)
{
if (day->type == EVNT || day->type == RECUR_EVNT) {
item_in_popup(NULL, NULL, day_item_get_mesg(day),
- _("Event :"));
+ _("Event:"));
} else if (day->type == APPT || day->type == RECUR_APPT) {
char a_st[100], a_end[100];
@@ -553,7 +553,7 @@ void day_popup_item(struct day_item *day)
a_st, a_end);
item_in_popup(a_st, a_end, day_item_get_mesg(day),
- _("Appointment :"));
+ _("Appointment:"));
} else {
EXIT(_("unknown item type"));
/* NOTREACHED */
diff --git a/src/help.c b/src/help.c
index b4dcb07..b1c50b3 100644
--- a/src/help.c
+++ b/src/help.c
@@ -491,9 +491,9 @@ void help_screen(void)
hscr[HELP_DELETE].title = _("Delete\n");
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"
- "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"
"\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"
@@ -505,7 +505,7 @@ void help_screen(void)
hscr[HELP_ADD].title = _("Add\n");
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"
"\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 "
@@ -610,7 +610,7 @@ void help_screen(void)
hscr[HELP_PRIORITY].title = _("Priority\n");
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"
"todo description. This number goes from 9 for the lowest priority to\n"
"1 for the highest priority.\n"
@@ -692,7 +692,7 @@ void help_screen(void)
" you resize your terminal screen or when\n"
" garbage appears inside the display\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 next day\n"
" '%s' : -1 Week -> move to previous week\n"
diff --git a/src/io.c b/src/io.c
index 0f5d711..7448227 100644
--- a/src/io.c
+++ b/src/io.c
@@ -269,7 +269,7 @@ void io_init(const char *cfile, const char *datadir)
/* check if the file exists, otherwise create it */
data_file = fopen(path_apts, "r");
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);
ch = getchar();
switch (ch) {
@@ -839,7 +839,7 @@ void io_load_keys(const char *pager)
file_close(log->fd, __FILE_POS__);
if (skipped > 0) {
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);
}
@@ -1106,7 +1106,7 @@ void io_import_data(enum import_type type, const char *stream_name)
file_close(log->fd, __FILE_POS__);
if (stats.skipped > 0) {
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);
}
diff --git a/src/ui-day.c b/src/ui-day.c
index a9dca9a..08248e6 100644
--- a/src/ui-day.c
+++ b/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");
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 *fmt_msg =
_("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");
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 *fmt_msg =
_("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 LDUR 12
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 =
- _("Enter end time ([hh:mm] or [hhmm]) or duration ([+hh:mm], [+xxxdxxhxxm] or [+mm]) : ");
- const char *mesg_3 = _("Enter description :");
+ _("Enter end time ([hh:mm], [hhmm]) or duration ([+hh:mm], [+xxxdxxhxxm]):");
+ const char *mesg_3 = _("Enter description:");
const char *format_message_1 =
_("You entered an invalid start time, should be [hh:mm] or [hhmm]");
const char *format_message_2 =
@@ -537,17 +537,17 @@ void ui_day_item_delete(unsigned *nb_events, unsigned *nb_apoints,
unsigned reg)
{
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 =
_("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 int nb_erase_choices = 2;
const char *note_warning =
_("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 int nb_note_choices = 2;
diff --git a/src/ui-todo.c b/src/ui-todo.c
index 0e3852c..60838af 100644
--- a/src/ui-todo.c
+++ b/src/ui-todo.c
@@ -45,9 +45,9 @@ static char *msgsav;
void ui_todo_add(void)
{
int ch = 0;
- const char *mesg = _("Enter the new ToDo item : ");
+ const char *mesg = _("Enter the new TODO item:");
const char *mesg_id =
- _("Enter the ToDo priority [1 (highest) - 9 (lowest)] :");
+ _("Enter the TODO priority [1 (highest) - 9 (lowest)]:");
char todo_input[BUFSIZ] = "";
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)
{
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 =
_("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 int nb_erase_choice = 2;
int answer;
@@ -113,7 +113,7 @@ void ui_todo_delete(void)
void ui_todo_edit(void)
{
struct todo *i;
- const char *mesg = _("Enter the new ToDo description :");
+ const char *mesg = _("Enter the new TODO description:");
status_mesg(mesg, "");
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);
}
-/* Updates the ToDo panel. */
+/* Updates the TODO panel. */
void ui_todo_update_panel(int which_pan)
{
llist_item_t *i;
diff --git a/src/wins.c b/src/wins.c
index bcc5a90..c200b6e 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -254,7 +254,7 @@ static void wins_init_panels(void)
win[TOD].p =
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 */
keypad(win[CAL].p, TRUE);