From: buliabyak Date: Sun, 19 Mar 2006 23:05:40 +0000 (+0000) Subject: restore broken ngettext X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=769e2ebfd64f566a545bd8bf16b9597690c0e230;p=inkscape.git restore broken ngettext --- diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp index 1a8199e6c..a5515f3ab 100644 --- a/src/selection-describer.cpp +++ b/src/selection-describer.cpp @@ -148,15 +148,30 @@ void SelectionDescriber::_updateMessageFromSelection(Inkscape::Selection *select GSList *terms = collect_terms ((GSList *)items); int n_terms = g_slist_length(terms); if (n_terms == 0) { - objects_str = g_strdup_printf (_("%i objects selected"), object_count); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "%i objects selected", object_count), + object_count); } else if (n_terms == 1) { - objects_str = g_strdup_printf (_("%i objects of type %s"), object_count, (gchar *) terms->data); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "%i objects of type %s", object_count), + object_count, (gchar *) terms->data); } else if (n_terms == 2) { - objects_str = g_strdup_printf (_("%i objects of types %s, %s"), object_count, (gchar *) terms->data, (gchar *) terms->next->data); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "%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 (_("%i objects of types %s, %s, %s"), object_count, (gchar *) terms->data, (gchar *) terms->next->data, (gchar *) terms->next->next->data); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "%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 (_("%i objects of %i types"), object_count, n_terms); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "%i objects of %i types", object_count), + object_count, n_terms); } g_slist_free (terms);