From: knutux Date: Fri, 24 Mar 2006 07:35:46 +0000 (+0000) Subject: fixing crash in situations where locale language has many plural forms (example ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=730ec574f16340374bc2206a6d19ac823ede6807;p=inkscape.git fixing crash in situations where locale language has many plural forms (example - Lithuanian) and translation is not yet provided --- 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);