projects
/
platform
/
upstream
/
libexif.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3887464
)
use ngettext() for plural form
author
Marcus Meissner
<marcus@jet.franken.de>
Fri, 13 Jan 2006 07:43:27 +0000
(08:43 +0100)
committer
Marcus Meissner
<marcus@jet.franken.de>
Fri, 13 Jan 2006 07:43:27 +0000
(08:43 +0100)
libexif/canon/mnote-canon-entry.c
patch
|
blob
|
history
diff --git
a/libexif/canon/mnote-canon-entry.c
b/libexif/canon/mnote-canon-entry.c
index
c22a5a1
..
01707d3
100644
(file)
--- a/
libexif/canon/mnote-canon-entry.c
+++ b/
libexif/canon/mnote-canon-entry.c
@@
-318,10
+318,7
@@
mnote_canon_entry_get_value (const MnoteCanonEntry *entry, unsigned int t, char
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;