From: gustav_b Date: Mon, 10 Jul 2006 08:00:14 +0000 (+0000) Subject: undo annotations X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0f126658b1c1d0a55708f4a52dd1ce47c0639648;p=inkscape.git undo annotations --- diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index c897658ff..0c35020b7 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -297,7 +297,7 @@ sp_selected_path_to_curves0(gboolean interactive, guint32 text_grouping_policy) if (interactive) { if (did) { sp_document_done(sp_desktop_document(desktop), SP_VERB_OBJECT_TO_CURVE, - /* TODO: annotate */ "path-chemistry.cpp:300"); + _("Object to Path")); } else { sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("No objects to convert to path in the selection.")); return; diff --git a/src/verbs.cpp b/src/verbs.cpp index 5b740b215..0a22cc108 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1147,18 +1147,26 @@ LayerVerb::perform(SPAction *action, void *data, void *pdata) if ( SP_OBJECT_NEXT(layer) != old_pos ) { char const *message = NULL; + Glib::ustring description = ""; switch (verb) { case SP_VERB_LAYER_TO_TOP: + message = g_strdup_printf(_("Raised layer %s."), layer->defaultLabel()); + description = _("Layer to Top"); + break; case SP_VERB_LAYER_RAISE: message = g_strdup_printf(_("Raised layer %s."), layer->defaultLabel()); + description = _("Raise Layer"); break; case SP_VERB_LAYER_TO_BOTTOM: + message = g_strdup_printf(_("Lowered layer %s."), layer->defaultLabel()); + description = _("Layer to Bottom"); + break; case SP_VERB_LAYER_LOWER: message = g_strdup_printf(_("Lowered layer %s."), layer->defaultLabel()); + description = _("Lower Layer"); break; }; - sp_document_done(sp_desktop_document(dt), SP_VERB_LAYER_LOWER, - /* TODO: annotate */ "verbs.cpp:1146"); + sp_document_done(sp_desktop_document(dt), verb, description); if (message) { dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, message); g_free((void *) message); @@ -1192,7 +1200,7 @@ LayerVerb::perform(SPAction *action, void *data, void *pdata) } sp_document_done(sp_desktop_document(dt), SP_VERB_LAYER_DELETE, - /* TODO: annotate */ "verbs.cpp:1180"); + _("Delete layer")); // TRANSLATORS: this means "The layer has been deleted." dt->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Deleted layer.")); @@ -1252,7 +1260,7 @@ ObjectVerb::perform( SPAction *action, void *data, void *pdata ) sp_selection_scale_relative(sel, center, NR::scale(-1.0, 1.0)); } sp_document_done(sp_desktop_document(dt), SP_VERB_OBJECT_FLIP_HORIZONTAL, - /* TODO: annotate */ "verbs.cpp:1240"); + _("Flip horizontally")); break; case SP_VERB_OBJECT_FLIP_VERTICAL: if (tools_isactive(dt, TOOLS_NODES)) { @@ -1261,7 +1269,7 @@ ObjectVerb::perform( SPAction *action, void *data, void *pdata ) sp_selection_scale_relative(sel, center, NR::scale(1.0, -1.0)); } sp_document_done(sp_desktop_document(dt), SP_VERB_OBJECT_FLIP_VERTICAL, - /* TODO: annotate */ "verbs.cpp:1249"); + _("Flip vertically")); break; case SP_VERB_OBJECT_SET_MASK: sp_selection_set_mask(false, false);