From: Marcus M. <mar...@us...> - 2006-01-13 07:43:36
|
Update of /cvsroot/libexif/libexif/libexif/canon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16075 Modified Files: mnote-canon-entry.c Log Message: use ngettext() for plural form Index: mnote-canon-entry.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/canon/mnote-canon-entry.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -p -d -r1.15 -r1.16 --- mnote-canon-entry.c 5 Jan 2006 18:58:16 -0000 1.15 +++ mnote-canon-entry.c 13 Jan 2006 07:43:27 -0000 1.16 @@ -318,10 +318,7 @@ mnote_canon_entry_get_value (const Mnote strncpy (val, _("center"), maxlen - strlen (val)); if ((vs >> 2) & 1) strncpy (val, _("left"), maxlen - strlen (val)); - if (vs >> 12 == 1) - snprintf (buf, sizeof (buf), _(" (1 available focus point)")); - else - snprintf (buf, sizeof (buf), _(" (%u available focus points)"), vs >> 12); + snprintf (buf, sizeof (buf), ngettext(" (1 available focus point)"," (%u available focus points)",(vs>>12)), (vs>>12)); strncat (val, buf, maxlen - strlen (val)); } break; |