mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Use ngettext for plurals (#123847).
This commit is contained in:
parent
88ca97c8af
commit
0e08ebc7d4
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user