From 2b443c0f1149dfe27e7789277463b049beb76dd7 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 24 May 2006 09:00:10 +0000 Subject: [PATCH] mark more strings for translation Original commit message from CVS: mark more strings for translation --- ChangeLog | 6 ++++++ tools/gst-inspect.c | 24 ++++++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7c3d763..a33e88b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-24 Thomas Vander Stichele + + * tools/gst-inspect.c: (print_interfaces), + (print_element_properties_info), (print_element_list), (main): + add more translatable strings + 2006-05-23 Tim-Philipp Müller Patch by: Julien Moutte diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 32fbe7d..d5c4474 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -246,7 +246,8 @@ print_interfaces (GType type) if (ifaces) { if (n_ifaces) { - g_print ("%sImplemented Interfaces:\n", _name); + g_print ("%s", _name); + g_print (_("Implemented Interfaces:\n")); iface = ifaces; while (*iface) { g_print ("%s %s\n", _name, g_type_name (*iface)); @@ -287,15 +288,18 @@ print_element_properties_info (GstElement * element) if (param->flags & G_PARAM_READABLE) { g_object_get_property (G_OBJECT (element), param->name, &value); readable = TRUE; - g_print ((first_flag ? "readable" : ", readable")); + g_print ((first_flag ? "" : ", ")); + g_print (_("readable")); first_flag = FALSE; } if (param->flags & G_PARAM_WRITABLE) { - g_print ((first_flag ? "writable" : ", writable")); + g_print ((first_flag ? "" : ", ")); + g_print (_("writable")); first_flag = FALSE; } if (param->flags & GST_PARAM_CONTROLLABLE) { - g_print ((first_flag ? "controllable" : ", controllable")); + g_print ((first_flag ? "" : ", ")); + g_print (_("controllable")); first_flag = FALSE; } n_print ("\n"); @@ -914,8 +918,12 @@ print_element_list (gboolean print_all) gst_plugin_list_free (orig_plugins); - g_print ("\nTotal plugins: %d\nTotal features: %d\n", - plugincount, featurecount); + g_print ("\n"); + g_print (_("Total count: ")); + g_print (ngettext ("%d plugin", "%d plugins", plugincount), plugincount); + g_print (", "); + g_print (ngettext ("%d feature", "%d features", featurecount), featurecount); + g_print ("\n"); } static void @@ -1161,12 +1169,12 @@ main (int argc, char *argv[]) print_plugin_info (plugin); print_plugin_features (plugin); } else { - g_print ("Error loading plugin file: %s\n", error->message); + g_print (_("Could not load plugin file: %s\n"), error->message); g_error_free (error); return -1; } } else { - g_print ("No such element or plugin '%s'\n", arg); + g_print (_("No such element or plugin '%s'\n"), arg); return -1; } } -- 2.7.4