Use ngettext for plurals (#123847).
This commit is contained in:
@ -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>
|
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
||||||
|
@ -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>
|
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
||||||
|
@ -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>
|
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
||||||
|
@ -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>
|
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
||||||
|
@ -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>
|
Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
|
||||||
|
@ -399,7 +399,9 @@ gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata,
|
|||||||
{
|
{
|
||||||
g_set_error (error, GDK_PIXBUF_ERROR,
|
g_set_error (error, GDK_PIXBUF_ERROR,
|
||||||
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
|
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);
|
pixdata->rowstride * pixdata->height);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -2946,7 +2946,7 @@ list_size_data_func (GtkTreeViewColumn *tree_column,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (size < (gint64)1024)
|
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)
|
else if (size < (gint64)1024*1024)
|
||||||
str = g_strdup_printf (_("%.1f K"), size / (1024.));
|
str = g_strdup_printf (_("%.1f K"), size / (1024.));
|
||||||
else if (size < (gint64)1024*1024*1024)
|
else if (size < (gint64)1024*1024*1024)
|
||||||
|
Reference in New Issue
Block a user