From 730ec574f16340374bc2206a6d19ac823ede6807 Mon Sep 17 00:00:00 2001 From: knutux Date: Fri, 24 Mar 2006 07:35:46 +0000 Subject: [PATCH] fixing crash in situations where locale language has many plural forms (example - Lithuanian) and translation is not yet provided --- src/selection-describer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp index 4f8e2459a..ea927f7f9 100644 --- a/src/selection-describer.cpp +++ b/src/selection-describer.cpp @@ -181,27 +181,27 @@ void SelectionDescriber::_updateMessageFromSelection(Inkscape::Selection *select if (n_terms == 0) { objects_str = g_strdup_printf ( // this is only used with 2 or more objects - ngettext("", "%i objects selected", object_count), + ngettext("%i object selected", "%i objects selected", object_count), object_count); } else if (n_terms == 1) { objects_str = g_strdup_printf ( // this is only used with 2 or more objects - ngettext("", "%i objects of type %s", object_count), + ngettext("%i object of type %s", "%i objects of type %s", object_count), object_count, (gchar *) terms->data); } else if (n_terms == 2) { objects_str = g_strdup_printf ( // this is only used with 2 or more objects - ngettext("", "%i objects of types %s, %s", object_count), + ngettext("%i object of types %s, %s", "%i objects of types %s, %s", object_count), object_count, (gchar *) terms->data, (gchar *) terms->next->data); } else if (n_terms == 3) { objects_str = g_strdup_printf ( // this is only used with 2 or more objects - ngettext("", "%i objects of types %s, %s, %s", object_count), + ngettext("%i object of types %s, %s, %s", "%i objects of types %s, %s, %s", object_count), object_count, (gchar *) terms->data, (gchar *) terms->next->data, (gchar *) terms->next->next->data); } else { objects_str = g_strdup_printf ( // this is only used with 2 or more objects - ngettext("", "%i objects of %i types", object_count), + ngettext("%i object of %i types", "%i objects of %i types", object_count), object_count, n_terms); } g_slist_free (terms); -- 2.30.2