Fix the ngettext calling bit to actually work, and move the %d into the
2004-12-11 Rodney Dawes <dobey@novell.com> * gnome-wp-item.c (gnome_wp_item_update_description): Fix the ngettext calling bit to actually work, and move the %d into the format string for g_strdup_print, so we don't say "%d pixels"
This commit is contained in:
parent
4a3189e661
commit
abc91a9a24
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-12-11 Rodney Dawes <dobey@novell.com>
|
||||
|
||||
* gnome-wp-item.c (gnome_wp_item_update_description):
|
||||
Fix the ngettext calling bit to actually work, and move the %d into
|
||||
the format string for g_strdup_print, so we don't say "%d pixels"
|
||||
|
||||
2004-12-10 Rodney Dawes <dobey@novell.com>
|
||||
|
||||
* gnome-wp-item.c (gnome_wp_item_update_description):
|
||||
|
|
|
@ -281,10 +281,12 @@ void gnome_wp_item_update_description (GnomeWPItem * item) {
|
|||
} else {
|
||||
gchar * info;
|
||||
|
||||
info = g_strdup_printf ("%s, %s x %s",
|
||||
info = g_strdup_printf ("%s, %d %s x %d %s",
|
||||
gnome_vfs_mime_get_description (item->fileinfo->mime_type),
|
||||
ngettext ("%d pixel", "%d pixels", item->width),
|
||||
ngettext ("%d pixel", "%d pixels", item->height));
|
||||
item->width,
|
||||
ngettext ("pixel", "pixels", item->width),
|
||||
item->height,
|
||||
ngettext ("pixel", "pixels", item->height));
|
||||
|
||||
item->description = g_markup_printf_escaped ("<b>%s</b>\n"
|
||||
"%s",
|
||||
|
|
Loading…
Add table
Reference in a new issue