Use ngettext for plurals (#123847).

This commit is contained in:
Christian Neumair 2003-12-31 16:02:22 +00:00
parent 88ca97c8af
commit 0e08ebc7d4
7 changed files with 34 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-12-31 Christian Neumair <chris@gnome-de.org>
* gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
* gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
plurals (#123847).
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):

View File

@ -1,3 +1,9 @@
2003-12-31 Christian Neumair <chris@gnome-de.org>
* gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
* gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
plurals (#123847).
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):

View File

@ -1,3 +1,9 @@
2003-12-31 Christian Neumair <chris@gnome-de.org>
* gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
* gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
plurals (#123847).
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):

View File

@ -1,3 +1,9 @@
2003-12-31 Christian Neumair <chris@gnome-de.org>
* gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
* gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
plurals (#123847).
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):

View File

@ -1,3 +1,9 @@
2003-12-31 Christian Neumair <chris@gnome-de.org>
* gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
* gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
plurals (#123847).
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):

View File

@ -399,7 +399,9 @@ gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata,
{
g_set_error (error, GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
_("failed to allocate image buffer of %u bytes"),
ngettext("failed to allocate image buffer of %u byte",
"failed to allocate image buffer of %u bytes",
pixdata->rowstride * pixdata->height),
pixdata->rowstride * pixdata->height);
return NULL;
}

View File

@ -2946,7 +2946,7 @@ list_size_data_func (GtkTreeViewColumn *tree_column,
return;
if (size < (gint64)1024)
str = g_strdup_printf (_("%d bytes"), (gint)size);
str = g_strdup_printf (ngettext ("%d byte", "%d bytes", (gint)size), (gint)size);
else if (size < (gint64)1024*1024)
str = g_strdup_printf (_("%.1f K"), size / (1024.));
else if (size < (gint64)1024*1024*1024)