Updated next birthday text to get better translation of it.
authorRoman Moravcik <roman.moravcik@gmail.com>
Fri, 15 Oct 2010 08:21:46 +0000 (10:21 +0200)
committerRoman Moravcik <roman.moravcik@gmail.com>
Fri, 15 Oct 2010 08:21:46 +0000 (10:21 +0200)
po/sk.po
src/birthday.c

index bca5e20..4f4e205 100644 (file)
--- 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 <roman.moravcik@gmail.com>\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í"
index 26c71f9..bca95a7 100644 (file)
@@ -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 <span font_desc=\"%s\" foreground=\"%s\"><sup>(%d)</sup>\n%s, %s</span>",
+                       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);
 
                        gtk_list_store_append (store, &iter);