projects
/
birthday
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
372f9bd
)
Updated next bithday text.
author
Roman Moravcik
<roman.moravcik@gmail.com>
Thu, 14 Oct 2010 10:44:42 +0000
(12:44 +0200)
committer
Roman Moravcik
<roman.moravcik@gmail.com>
Thu, 14 Oct 2010 10:44:42 +0000
(12:44 +0200)
src/birthday.c
patch
|
blob
|
history
diff --git
a/src/birthday.c
b/src/birthday.c
index
8799859
..
26c71f9
100644
(file)
--- a/
src/birthday.c
+++ b/
src/birthday.c
@@
-451,7
+451,14
@@
create_bday_liststore (BirthdayData *priv, GList *contacts)
age = calc_age(bdate, current_date);
next_birthday = calc_next_bday(bdate, current_date);
age = calc_age(bdate, current_date);
next_birthday = calc_next_bday(bdate, current_date);
- next_birthday_text = g_strdup_printf(ngettext ("next birthday in %d day", "next birthday in %d days", next_birthday), next_birthday);
+
+ if (next_birthday == 0)
+ next_birthday_text = g_strdup_printf(_("has birthday today"));
+ else if (next_birthday == 1)
+ next_birthday_text = g_strdup_printf(_("will have birthday tomorrow"));
+ else
+ next_birthday_text = g_strdup_printf(_("will have birthday in %d days"), next_birthday);
+
display_column = g_strdup_printf("%s <span font_desc=\"%s\" foreground=\"%s\"><sup>(%d)</sup>\n%s, %s</span>",
fullname, text_font, text_color, age, birthday_text, next_birthday_text);
display_column = g_strdup_printf("%s <span font_desc=\"%s\" foreground=\"%s\"><sup>(%d)</sup>\n%s, %s</span>",
fullname, text_font, text_color, age, birthday_text, next_birthday_text);