From: knutux Date: Mon, 27 Mar 2006 13:15:30 +0000 (+0000) Subject: minor changes to adjust strings for plural forms X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d065acdd370ade9c510ebdd4b3a81d6ee362fb3a;p=inkscape.git minor changes to adjust strings for plural forms --- diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp index 1168181fc..98a109737 100644 --- a/src/gradient-context.cpp +++ b/src/gradient-context.cpp @@ -449,7 +449,11 @@ static void sp_gradient_drag(SPGradientContext &rc, NR::Point const pt, guint st // status text; we do not track coords because this branch is run once, not all the time // during drag - rc._message_context->setF(Inkscape::NORMAL_MESSAGE, _("Gradient for %d objects; with Ctrl to snap angle"), g_slist_length((GSList *) selection->itemList())); + int n_objects = g_slist_length((GSList *) selection->itemList()); + rc._message_context->setF(Inkscape::NORMAL_MESSAGE, + ngettext("Gradient for %d object; with Ctrl to snap angle", + "Gradient for %d objects; with Ctrl to snap angle", n_objects), + n_objects); } else { SP_DT_MSGSTACK(desktop)->flash(Inkscape::WARNING_MESSAGE, _("Select objects on which to create gradient.")); } diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp index 4c46a699c..3f70f53ce 100644 --- a/src/sp-flowtext.cpp +++ b/src/sp-flowtext.cpp @@ -338,9 +338,9 @@ static gchar *sp_flowtext_description(SPItem *item) Inkscape::Text::Layout const &layout = SP_FLOWTEXT(item)->layout; int const nChars = layout.iteratorToCharIndex(layout.end()); if (SP_FLOWTEXT(item)->has_internal_frame()) - return g_strdup_printf(_("Flowed text (%d characters)"), nChars); + return g_strdup_printf(ngettext("Flowed text (%d character)", "Flowed text (%d characters)", nChars), nChars); else - return g_strdup_printf(_("Linked flowed text (%d characters)"), nChars); + return g_strdup_printf(ngettext("Linked flowed text (%d character)", "Linked flowed text (%d characters)", nChars), nChars); } static NRArenaItem *