diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-03-19 23:05:40 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-03-19 23:05:40 +0000 |
| commit | d927a1d4aa663786406811f9249e625fa5497373 (patch) | |
| tree | 75a3339d29317c889b3b388ec8b1571e7fa6c968 /src/selection-describer.cpp | |
| parent | fix clipping with unfilled paths (diff) | |
| download | inkscape-d927a1d4aa663786406811f9249e625fa5497373.tar.gz inkscape-d927a1d4aa663786406811f9249e625fa5497373.zip | |
restore broken ngettext
(bzr r262)
Diffstat (limited to 'src/selection-describer.cpp')
| -rw-r--r-- | src/selection-describer.cpp | 25 |
1 files changed, 20 insertions, 5 deletions
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 (_("<b>%i</b> objects selected"), object_count); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "<b>%i</b> objects selected", object_count), + object_count); } else if (n_terms == 1) { - objects_str = g_strdup_printf (_("<b>%i</b> objects of type <b>%s</b>"), object_count, (gchar *) terms->data); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "<b>%i</b> objects of type <b>%s</b>", object_count), + object_count, (gchar *) terms->data); } else if (n_terms == 2) { - objects_str = g_strdup_printf (_("<b>%i</b> objects of types <b>%s</b>, <b>%s</b>"), object_count, (gchar *) terms->data, (gchar *) terms->next->data); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "<b>%i</b> objects of types <b>%s</b>, <b>%s</b>", object_count), + object_count, (gchar *) terms->data, (gchar *) terms->next->data); } else if (n_terms == 3) { - objects_str = g_strdup_printf (_("<b>%i</b> objects of types <b>%s</b>, <b>%s</b>, <b>%s</b>"), 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("", "<b>%i</b> objects of types <b>%s</b>, <b>%s</b>, <b>%s</b>", object_count), + object_count, (gchar *) terms->data, (gchar *) terms->next->data, (gchar *) terms->next->next->data); } else { - objects_str = g_strdup_printf (_("<b>%i</b> objects of <b>%i</b> types"), object_count, n_terms); + objects_str = g_strdup_printf ( + // this is only used with 2 or more objects + ngettext("", "<b>%i</b> objects of <b>%i</b> types", object_count), + object_count, n_terms); } g_slist_free (terms); |
