mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
tools/gst-register.c: Use ngettext for plurals (#167701).
Original commit message from CVS: Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * tools/gst-register.c: (plugin_added_func), (main): Use ngettext for plurals (#167701).
This commit is contained in:
parent
99d26b49c2
commit
82f2011756
2 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-02-25 tvainika+gnomebugs@cc.hut.fi
|
||||||
|
|
||||||
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* tools/gst-register.c: (plugin_added_func), (main):
|
||||||
|
Use ngettext for plurals (#167701).
|
||||||
|
|
||||||
2005-02-14 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-02-14 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
submitted by: Peter Astakhov
|
submitted by: Peter Astakhov
|
||||||
|
|
|
@ -46,9 +46,9 @@ static void
|
||||||
plugin_added_func (GstRegistry * registry, GstPlugin * plugin,
|
plugin_added_func (GstRegistry * registry, GstPlugin * plugin,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
g_print (_("Added plugin %s with %d %s.\n"), plugin->desc.name,
|
g_print (ngettext ("Added plugin %s with %d feature.\n",
|
||||||
plugin->numfeatures,
|
"Added plugin %s with %d features.\n",
|
||||||
ngettext ("feature", "features", plugin->numfeatures));
|
plugin->numfeatures), plugin->desc.name, plugin->numfeatures);
|
||||||
|
|
||||||
num_features += plugin->numfeatures;
|
num_features += plugin->numfeatures;
|
||||||
num_plugins++;
|
num_plugins++;
|
||||||
|
@ -165,8 +165,9 @@ main (int argc, char *argv[])
|
||||||
registries = g_list_next (registries);
|
registries = g_list_next (registries);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_print (_("Loaded %d plugins with %d %s.\n"), num_plugins, num_features,
|
g_print (ngettext ("Loaded %d plugins with %d feature.\n",
|
||||||
ngettext ("feature", "features", num_features));
|
"Loaded %d plugins with %d features.\n",
|
||||||
|
num_features), num_plugins, num_features);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue