From: Krzysztof KosiƄski Date: Sun, 21 Nov 2010 12:52:01 +0000 (+0100) Subject: Reintroduce plural forms into the node selection description X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8b61719eb19b7cc1409303989d632abf6dc5069f;p=inkscape.git Reintroduce plural forms into the node selection description --- diff --git a/src/ui/tool/node-tool.cpp b/src/ui/tool/node-tool.cpp index b3bb84fba..9809ee848 100644 --- a/src/ui/tool/node-tool.cpp +++ b/src/ui/tool/node-tool.cpp @@ -560,19 +560,24 @@ void ink_node_tool_update_tip(InkNodeTool *nt, GdkEvent *event) unsigned sz = nt->_selected_nodes->size(); unsigned total = nt->_selected_nodes->allPoints().size(); if (sz != 0) { + char *nodestring = g_strdup_printf( + ngettext("%u of %u node selected.", "%u of %u nodes selected.", total), + sz, total); if (nt->_last_over) { + // TRANSLATORS: The %s below is where the "%u of %u nodes selected" sentence gets put char *dyntip = g_strdup_printf(C_("Node tool tip", - "%u of %u nodes selected. " - "Drag to select nodes, click to edit only this object (more: Shift)"), sz, total); + "%s Drag to select nodes, click to edit only this object (more: Shift)"), + nodestring, sz, total); nt->_node_message_context->set(Inkscape::NORMAL_MESSAGE, dyntip); g_free(dyntip); } else { char *dyntip = g_strdup_printf(C_("Node tool tip", - "%u of %u nodes selected. " - "Drag to select nodes, click clear the selection"), sz, total); + "%s Drag to select nodes, click clear the selection"), + nodestring, sz, total); nt->_node_message_context->set(Inkscape::NORMAL_MESSAGE, dyntip); g_free(dyntip); } + g_free(nodestring); } else if (!nt->_multipath->empty()) { if (nt->_last_over) { nt->_node_message_context->set(Inkscape::NORMAL_MESSAGE, C_("Node tool tip",