Code

minor changes to adjust strings for plural forms
authorknutux <knutux@users.sourceforge.net>
Mon, 27 Mar 2006 13:15:30 +0000 (13:15 +0000)
committerknutux <knutux@users.sourceforge.net>
Mon, 27 Mar 2006 13:15:30 +0000 (13:15 +0000)
src/gradient-context.cpp
src/sp-flowtext.cpp

index 1168181fc793b8b9b40e4030fc8bb800702d0b09..98a109737a5e7f207da554a75160d71dfc493385 100644 (file)
@@ -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, _("<b>Gradient</b> for %d objects; with <b>Ctrl</b> 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("<b>Gradient</b> for %d object; with <b>Ctrl</b> to snap angle",
+                                           "<b>Gradient</b> for %d objects; with <b>Ctrl</b> to snap angle", n_objects),
+                                  n_objects);
     } else {
         SP_DT_MSGSTACK(desktop)->flash(Inkscape::WARNING_MESSAGE, _("Select <b>objects</b> on which to create gradient."));
     }
index 4c46a699c9df9937e2e0b22d5a146ef2047401f7..3f70f53cec89ffee730d345a6b89c9d59945b58d 100644 (file)
@@ -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(_("<b>Flowed text</b> (%d characters)"), nChars);
+        return g_strdup_printf(ngettext("<b>Flowed text</b> (%d character)", "<b>Flowed text</b> (%d characters)", nChars), nChars);
     else
-        return g_strdup_printf(_("<b>Linked flowed text</b> (%d characters)"), nChars);
+        return g_strdup_printf(ngettext("<b>Linked flowed text</b> (%d character)", "<b>Linked flowed text</b> (%d characters)", nChars), nChars);
 }
 
 static NRArenaItem *