X-Git-Url: http://git.maemo.org/git/?p=birthday;a=blobdiff_plain;f=src%2Fbirthday.c;h=26c71f91bee6e891fdf311dfc2554d619cd822d9;hp=87998590b0911011674ab0b188784f3d8fb706bf;hb=cddb1e45864b9330452cc6085660e426c1fc4300;hpb=372f9bd961a1d6b588ce333c8ee6205379a17f0f diff --git a/src/birthday.c b/src/birthday.c index 8799859..26c71f9 100644 --- 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); - 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 (%d)\n%s, %s", fullname, text_font, text_color, age, birthday_text, next_birthday_text);