From: Roman Moravcik Date: Fri, 15 Oct 2010 08:21:46 +0000 (+0200) Subject: Updated next birthday text to get better translation of it. X-Git-Tag: v0.2-1~6 X-Git-Url: http://vcs.maemo.org/git/?p=birthday;a=commitdiff_plain;h=19417ac6d4b9954bfd267f51eda5e53e7fcb93fc Updated next birthday text to get better translation of it. --- diff --git a/po/sk.po b/po/sk.po index bca5e20..4f4e205 100644 --- a/po/sk.po +++ b/po/sk.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: 0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-10-14 12:46+0200\n" -"PO-Revision-Date: 2010-10-14 12:50+0200\n" +"POT-Creation-Date: 2010-10-15 10:16+0200\n" +"PO-Revision-Date: 2010-10-15 10:17+0200\n" "Last-Translator: Roman Moravčík \n" "Language-Team: sk_SK <>\n" "MIME-Version: 1.0\n" @@ -29,12 +29,10 @@ msgstr "má narodeniny dnes" #: ../src/birthday.c:458 #, c-format msgid "will have birthday tomorrow" -msgstr "bude mať narodeniny zajtra" - -#: ../src/birthday.c:460 -#, c-format -msgid "will have birthday in %d days" -msgstr "bude mať narodeniny za %d dní" +msgid_plural "will have birthday in %d days" +msgstr[0] "bude mať narodeniny zajtra" +msgstr[1] "bude mať narodeniny za %d dni" +msgstr[2] "bude mať narodeniny za %d dní" #: ../src/birthday.c:546 msgid "Name" @@ -56,3 +54,6 @@ msgstr "Narodeniny" #: ../src/birthday.c:599 msgid "No contacts with birthday" msgstr "Žiadne kontakty s nastavenými narodeninami" + +#~ msgid "will have birthday in %d days" +#~ msgstr "bude mať narodeniny za %d dní" diff --git a/src/birthday.c b/src/birthday.c index 26c71f9..bca95a7 100644 --- a/src/birthday.c +++ b/src/birthday.c @@ -453,13 +453,13 @@ create_bday_liststore (BirthdayData *priv, GList *contacts) next_birthday = calc_next_bday(bdate, current_date); 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")); + next_birthday_text = g_strdup_printf (_("has birthday today")); else - next_birthday_text = g_strdup_printf(_("will have birthday in %d days"), next_birthday); + next_birthday_text = g_strdup_printf (ngettext ("will have birthday tomorrow", + "will have birthday in %d days", next_birthday), + next_birthday); - display_column = g_strdup_printf("%s (%d)\n%s, %s", + display_column = g_strdup_printf ("%s (%d)\n%s, %s", fullname, text_font, text_color, age, birthday_text, next_birthday_text); gtk_list_store_append (store, &iter);