Code

Filter effects dialog:
[inkscape.git] / src / selection-describer.cpp
index 4f8e2459aa1554dd645733e79bf14b307dcb33a4..01aab97b759f29efa95aa3d7401ea400cad58d65 100644 (file)
@@ -24,6 +24,7 @@
 #include "sp-flowtext.h"
 #include "sp-use.h"
 #include "sp-rect.h"
+#include "box3d.h"
 #include "sp-ellipse.h"
 #include "sp-star.h"
 #include "sp-anchor.h"
@@ -59,10 +60,14 @@ type2term(GType type)
         { return _("Polyline"); }
     if (type == SP_TYPE_RECT)
         { return _("Rectangle"); }
+    if (type == SP_TYPE_3DBOX)
+        { return _("3D Box"); }
     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 +150,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);
@@ -181,27 +186,27 @@ void SelectionDescriber::_updateMessageFromSelection(Inkscape::Selection *select
             if (n_terms == 0) {
                 objects_str = g_strdup_printf (
                     // this is only used with 2 or more objects
-                    ngettext("", "<b>%i</b> objects selected", object_count), 
+                    ngettext("<b>%i</b> object selected", "<b>%i</b> objects selected", object_count), 
                     object_count);
             } else if (n_terms == 1) {
                 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),
+                    ngettext("<b>%i</b> object of type <b>%s</b>", "<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 (
                     // this is only used with 2 or more objects
-                    ngettext("", "<b>%i</b> objects of types <b>%s</b>, <b>%s</b>", object_count), 
+                    ngettext("<b>%i</b> object of types <b>%s</b>, <b>%s</b>", "<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 (
                     // 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), 
+                    ngettext("<b>%i</b> object of types <b>%s</b>, <b>%s</b>, <b>%s</b>", "<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 (
                     // this is only used with 2 or more objects
-                    ngettext("", "<b>%i</b> objects of <b>%i</b> types", object_count), 
+                    ngettext("<b>%i</b> object of <b>%i</b> types", "<b>%i</b> objects of <b>%i</b> types", object_count), 
                     object_count, n_terms);
             }
             g_slist_free (terms);