Code

more unreffing temporary styles properly
[inkscape.git] / src / selection-describer.cpp
index ea927f7f9a4ab93caffef66cc95fa4aab4c52e8e..69e10904ff2a84a3a1a040b56b25983aa8b69150 100644 (file)
@@ -61,8 +61,10 @@ type2term(GType type)
         { return _("Rectangle"); }
     if (type == SP_TYPE_TEXT)
         { return _("Text"); }
+    // TRANSLATORS: only translate "string" in "context|string".
+    // For more details, see http://developer.gnome.org/doc/API/2.0/glib/glib-I18N.html#Q-:CAPS
     if (type == SP_TYPE_USE)
-        { return _("Clone"); }
+        { return Q_("object|Clone"); }
     if (type == SP_TYPE_ARC)
         { return _("Ellipse"); }
     if (type == SP_TYPE_OFFSET)
@@ -145,10 +147,10 @@ void SelectionDescriber::_updateMessageFromSelection(Inkscape::Selection *select
                 else 
                     in_phrase = g_strdup_printf(_(" in group %s (%s)"), parent_name, layer_name);
             } else {
-                    in_phrase = g_strdup_printf(_(" in <b>%i</b> parents (%s)"), num_parents, layer_name);
+                    in_phrase = g_strdup_printf(ngettext(" in <b>%i</b> parents (%s)", " in <b>%i</b> parents (%s)", num_parents), num_parents, layer_name);
             }
         } else {
-            in_phrase = g_strdup_printf(_(" in <b>%i</b> layers"), num_layers);
+            in_phrase = g_strdup_printf(ngettext(" in <b>%i</b> layers", " in <b>%i</b> layers", num_layers), num_layers);
         }
         g_free (layer_name);
         g_free (parent_name);