X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fselection-describer.cpp;h=6d80cfe5c0152a1178ea7b23438e04d0d262e78f;hb=144c1b594591ba3d62513b126ca87a5f242b2f2b;hp=ea927f7f9a4ab93caffef66cc95fa4aab4c52e8e;hpb=730ec574f16340374bc2206a6d19ac823ede6807;p=inkscape.git
diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp
index ea927f7f9..6d80cfe5c 100644
--- a/src/selection-describer.cpp
+++ b/src/selection-describer.cpp
@@ -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"
@@ -38,7 +39,8 @@ const gchar *
type2term(GType type)
{
if (type == SP_TYPE_ANCHOR)
- { return _("Link"); }
+ // TRANSLATORS: only translate and put "Link" in the translation. It means internet link (anchor)
+ { return Q_("web|Link"); }
if (type == SP_TYPE_CIRCLE)
{ return _("Circle"); }
if (type == SP_TYPE_ELLIPSE)
@@ -59,10 +61,14 @@ type2term(GType type)
{ return _("Polyline"); }
if (type == SP_TYPE_RECT)
{ return _("Rectangle"); }
+ if (type == SP_TYPE_BOX3D)
+ { 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 +151,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 %i parents (%s)"), num_parents, layer_name);
+ in_phrase = g_strdup_printf(ngettext(" in %i parents (%s)", " in %i parents (%s)", num_parents), num_parents, layer_name);
}
} else {
- in_phrase = g_strdup_printf(_(" in %i layers"), num_layers);
+ in_phrase = g_strdup_printf(ngettext(" in %i layers", " in %i layers", num_layers), num_layers);
}
g_free (layer_name);
g_free (parent_name);