summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95a79e1)
raw | patch | inline | side by side (parent: 95a79e1)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 5 Oct 2006 09:26:44 +0000 (09:26 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 5 Oct 2006 09:26:44 +0000 (09:26 +0000) |
13 files changed:
index 731db1403fd55f98b1af6330a42b5cdfbedf552b..65cc56964139fcb615b854cae3760d579abd18e2 100644 (file)
--- a/src/dropper-context.cpp
+++ b/src/dropper-context.cpp
@@ -392,7 +392,7 @@ static gint sp_dropper_context_root_handler(SPEventContext *ec, GdkEvent *event)
if (!(sp_desktop_selection(ec->desktop)->isEmpty())) {
sp_document_done(sp_desktop_document(ec->desktop), SP_VERB_CONTEXT_DROPPER,
- /* TODO: annotate */ "dropper-context.cpp:389");
+ _("Set picked color"));
}
ret = TRUE;
index e4fac3293d38f724dca4c9bb35dc98b18ce79871..ed73848040631c4ba1562f94b63bd12789d715ea 100644 (file)
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#include <glibmm/i18n.h>
#include "svg/svg.h"
#include "display/canvas-bpath.h"
}
sp_document_done(sp_desktop_document(desktop), SP_VERB_CONTEXT_CALLIGRAPHIC,
- /* TODO: annotate */ "dyna-draw-context.cpp:689");
+ _("Create calligraphic stroke"));
}
static void
diff --git a/src/file.cpp b/src/file.cpp
index f8ebc9809ff6fac4f07434c67a921952f9eec7fa..3a2301c6d5795a152387baed41910e995be722fe 100644 (file)
--- a/src/file.cpp
+++ b/src/file.cpp
unsigned int diff = vacuum_document (doc);
sp_document_done(doc, SP_VERB_FILE_VACUUM,
- /* TODO: annotate */ "file.cpp:515");
+ _("Vacuum <defs>"));
SPDesktop *dt = SP_ACTIVE_DESKTOP;
if (diff > 0) {
sp_document_unref(doc);
sp_document_done(in_doc, SP_VERB_FILE_IMPORT,
- /* TODO: annotate */ "file.cpp:900");
+ _("Import"));
} else {
gchar *text = g_strdup_printf(_("Failed to load the requested file %s"), uri.c_str());
index bf1281f82a43b56e11ddeab1fee96d47359049cb..05080b3e0ec429d24b5655d3d4c62d90e991a637 100644 (file)
--- a/src/gradient-context.cpp
+++ b/src/gradient-context.cpp
@@ -161,7 +161,7 @@ static gint sp_gradient_context_root_handler(SPEventContext *event_context, GdkE
}
sp_document_done (sp_desktop_document (desktop), SP_VERB_CONTEXT_GRADIENT,
- /* TODO: annotate */ "gradient-context.cpp:164");
+ _("Create default gradient"));
ret = TRUE;
}
@@ -367,7 +367,7 @@ static gint sp_gradient_context_root_handler(SPEventContext *event_context, GdkE
}
// we did an undoable action
sp_document_done (sp_desktop_document (desktop), SP_VERB_CONTEXT_GRADIENT,
- /* TODO: annotate */ "gradient-context.cpp:370");
+ _("Invert gradient"));
ret = TRUE;
}
break;
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index e4c7a62da43d49bab0378ca3eb30dfe455165952..465f57b86e373407db3b9da53945aa842eedb636 100644 (file)
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -383,7 +383,7 @@ gr_knot_moved_handler(SPKnot *knot, NR::Point const *ppointer, guint state, gpoi
d_new->updateTip ();
d_new->updateDependencies(true);
sp_document_done (sp_desktop_document (d_new->parent->desktop), SP_VERB_CONTEXT_GRADIENT,
- /* TODO: annotate */ "gradient-drag.cpp:386");
+ _("Merge gradient handles"));
return;
}
}
// we did an undoable action
sp_document_done (sp_desktop_document (dragger->parent->desktop), SP_VERB_CONTEXT_GRADIENT,
- /* TODO: annotate */ "gradient-drag.cpp:518");
+ _("Move gradient handle"));
}
/**
// we did an undoable action
sp_document_done (sp_desktop_document (desktop), SP_VERB_CONTEXT_GRADIENT,
- /* TODO: annotate */ "gradient-drag.cpp:1071");
+ _("Move gradient handle"));
}
void
diff --git a/src/interface.cpp b/src/interface.cpp
index b31853cf3246c13877d9db892960282823deb5d1..17248a206bd81f3dfcc894b08ed9f764eef81d28 100644 (file)
--- a/src/interface.cpp
+++ b/src/interface.cpp
SPDocument *doc = SP_ACTIVE_DOCUMENT;
sp_document_done( doc , SP_VERB_NONE,
- /* TODO: annotate */ "interface.cpp:1047");
+ _("Drop color"));
if ( srgbProf ) {
cmsCloseProfile( srgbProf );
SPDocument *doc = SP_ACTIVE_DOCUMENT;
sp_document_done( doc , SP_VERB_NONE,
- /* TODO: annotate */ "interface.cpp:1089");
+ _("Drop color"));
}
}
}
Inkscape::GC::release(newgroup);
sp_document_done(doc, SP_VERB_NONE,
- /* TODO: annotate */ "interface.cpp:1143");
+ _("Drop SVG"));
break;
}
Inkscape::GC::release(newImage);
sp_document_done( doc , SP_VERB_NONE,
- /* TODO: annotate */ "interface.cpp:1203");
+ _("Drop bitmap image"));
break;
}
}
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index 1415f85e6138ffba4ab87f7164783d2dbc39a45a..99d22edc745ee4b68b9e09e771ebe1c93c2b7412 100644 (file)
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
if (did) {
sp_document_done(sp_desktop_document(desktop), SP_VERB_SELECTION_BREAK_APART,
- _("Break Apart"));
+ _("Break apart"));
} else {
sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("<b>No path(s)</b> to break apart in the selection."));
return;
if (interactive) {
if (did) {
sp_document_done(sp_desktop_document(desktop), SP_VERB_OBJECT_TO_CURVE,
- _("Object to Path"));
+ _("Object to path"));
} else {
sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("<b>No objects</b> to convert to path in the selection."));
return;
if (did) {
sp_document_done(sp_desktop_document(desktop), SP_VERB_SELECTION_REVERSE,
- /* TODO: annotate */ "path-chemistry.cpp:378");
+ _("Reverse path"));
} else {
sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("<b>No paths</b> to reverse in the selection."));
}
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp
index 0f7031f56c9fe4f15ad0c0e9631d2e3bfbd3d452..422d033ca3fb117839435fc2f093b4a5032d329c 100644 (file)
--- a/src/sp-item-group.cpp
+++ b/src/sp-item-group.cpp
items = g_slist_remove (items, items->data);
}
- if (do_done) sp_document_done (doc, SP_VERB_NONE,
- /* TODO: annotate */ "sp-item-group.cpp:448");
+ if (do_done)
+ sp_document_done (doc, SP_VERB_NONE, _("Ungroup"));
}
/*
diff --git a/src/spiral-context.cpp b/src/spiral-context.cpp
index 348cd88118bbfd440cfbcbdbd9a8fe4c276a865c..5ef0267c7da2fa1385cb3e25663de64677219560 100644 (file)
--- a/src/spiral-context.cpp
+++ b/src/spiral-context.cpp
sp_desktop_selection(desktop)->set(sc->item);
sp_document_done(sp_desktop_document(desktop), SP_VERB_CONTEXT_SPIRAL,
- /* TODO: annotate */ "spiral-context.cpp:462");
+ _("Create spiral"));
sc->item = NULL;
}
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index a0c21d23d15487bc2edbab22f8179a2ffb5b47f4..6759515f2ea710b9d1610929eddd2f958b25d32b 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
void
sp_selected_path_slice()
{
- sp_selected_path_boolop(bool_op_slice, SP_VERB_SELECTION_SLICE, _("Cut Path"));
+ sp_selected_path_boolop(bool_op_slice, SP_VERB_SELECTION_SLICE, _("Cut path"));
}
@@ -406,7 +406,7 @@ sp_selected_path_boolop(bool_op bop, const unsigned int verb, const Glib::ustrin
SP_OBJECT(l->data)->deleteObject();
}
sp_document_done(sp_desktop_document(desktop), SP_VERB_NONE,
- /* TODO: annotate */ "splivarot.cpp:409");
+ description);
selection->clear();
delete res;
Inkscape::Selection *selection = sp_desktop_selection(desktop);
if (selection->isEmpty()) {
- // TRANSLATORS: "to outline" means "to convert stroke to path"
- desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select <b>path(s)</b> to outline."));
+ desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select <b>stroked path(s)</b> to convert stroke to path."));
return;
}
if (did) {
sp_document_done(sp_desktop_document(desktop), SP_VERB_SELECTION_OUTLINE,
- /* TODO: annotate */ "splivarot.cpp:846");
+ _("Convert stroke to path"));
} else {
// TRANSLATORS: "to outline" means "to convert stroke to path"
- desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("<b>No stroked paths</b> to outline in the selection."));
+ desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("<b>No stroked paths</b> in the selection."));
return;
}
}
// pas vraiment de points sur le resultat
// donc il ne reste rien
sp_document_done(sp_desktop_document(desktop), SP_VERB_NONE,
- /* TODO: annotate */ "splivarot.cpp:1051");
+ _("Create offset object"));
selection->clear();
delete res;
}
sp_document_done(sp_desktop_document(desktop), SP_VERB_NONE,
- /* TODO: annotate */ "splivarot.cpp:1116");
+ _("Create offset object"));
delete res;
delete orig;
if (did) {
sp_document_done(sp_desktop_document(desktop), SP_VERB_NONE,
- /* TODO: annotate */ "splivarot.cpp:1359");
+ _("Inset/outset path"));
} else {
desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("<b>No paths</b> to inset/outset in the selection."));
return;
diff --git a/src/star-context.cpp b/src/star-context.cpp
index 3147dd213fc8d596657b070da5d088e6b3665942..3a40c0ed8392bd88fb7cb24ac68ad52be6296426 100644 (file)
--- a/src/star-context.cpp
+++ b/src/star-context.cpp
sp_desktop_selection(desktop)->set(sc->item);
sp_document_done(sp_desktop_document(desktop), SP_VERB_CONTEXT_STAR,
- /* TODO: annotate */ "star-context.cpp:474");
+ _("Create star"));
sc->item = NULL;
}
index c17fd72697e23e590d17156c7f3f6ebeb30637c5..a96e1589d0c5f836244f50bda9be6a3a7c42da97 100644 (file)
--- a/src/ui/context-menu.cpp
+++ b/src/ui/context-menu.cpp
repr->addChild(child, NULL);
child->setAttribute("id", id);
sp_document_done(SP_OBJECT_DOCUMENT(object), SP_VERB_NONE,
- /* TODO: annotate */ "context-menu.cpp:172");
+ _("Create link"));
sp_object_attributes_dialog(object, "SPAnchor");
index ad4c7a9cd6908409389570dc8e4ab72f305ff9c0..90efd2da5741259e7aeb5451eec10ecdf7a8b80a 100644 (file)
sp_desktop_set_style( tracker->parent->_desktop, css );
sp_repr_css_attr_unref( css );
sp_document_done( sp_desktop_document(tracker->parent->_desktop) , SP_VERB_NONE,
- /* TODO: annotate */ "selected-style.cpp:429");
+ _("Drop color"));
}
}
break;
sp_desktop_set_style (_desktop, css, true, true);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:442");
+ _("Remove fill"));
}
void SelectedStyle::on_stroke_remove() {
sp_desktop_set_style (_desktop, css, true, true);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:451");
+ _("Remove stroke"));
}
void SelectedStyle::on_fill_unset() {
sp_desktop_set_style (_desktop, css, true, true);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:460");
+ _("Unset fill"));
}
void SelectedStyle::on_stroke_unset() {
sp_desktop_set_style (_desktop, css, true, true);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:469");
+ _("Unset stroke"));
}
void SelectedStyle::on_fill_opaque() {
sp_desktop_set_style (_desktop, css, true);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:478");
+ _("Make fill opaque"));
}
void SelectedStyle::on_stroke_opaque() {
sp_desktop_set_style (_desktop, css, true);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:487");
+ _("Make fill opaque"));
}
void SelectedStyle::on_fill_lastused() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:499");
+ _("Apply last set color to fill"));
}
void SelectedStyle::on_stroke_lastused() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:511");
+ _("Apply last set color to stroke"));
}
void SelectedStyle::on_fill_lastselected() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:522");
+ _("Apply last selected color to fill"));
}
void SelectedStyle::on_stroke_lastselected() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:533");
+ _("Apply last selected color to stroke"));
}
void SelectedStyle::on_fill_invert() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:553");
+ _("Invert fill"));
}
void SelectedStyle::on_stroke_invert() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:573");
+ _("Invert stroke"));
}
void SelectedStyle::on_fill_white() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:585");
+ _("White fill"));
}
void SelectedStyle::on_stroke_white() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:597");
+ _("White stroke"));
}
void SelectedStyle::on_fill_black() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:609");
+ _("Black fill"));
}
void SelectedStyle::on_stroke_black() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:621");
+ _("Black stroke"));
}
void SelectedStyle::on_fill_copy() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:664");
+ _("Paste fill"));
}
}
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:682");
+ _("Paste stroke"));
}
}
void SelectedStyle::on_fillstroke_swap() {
SPCSSAttr *css = sp_repr_css_attr_new ();
- g_message("on_fillstroke_swap()");
-
switch (_mode[SS_FILL]) {
case SS_NA:
case SS_MANY:
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:738");
+ _("Swap fill and stroke"));
}
void SelectedStyle::on_fill_edit() {
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document (_desktop), SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:806");
+ _("Change opacity"));
return true;
}
sp_desktop_set_style (_desktop, css, true);
sp_repr_css_attr_unref (css);
sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_SWATCHES,
- /* TODO: annotate */ "selected-style.cpp:840");
+ _("Change opacity"));
}
void
sp_desktop_set_style (_desktop, css);
sp_repr_css_attr_unref (css);
sp_document_maybe_done (sp_desktop_document (_desktop), "fillstroke:opacity", SP_VERB_DIALOG_FILL_STROKE,
- /* TODO: annotate */ "selected-style.cpp:1082");
+ _("Change opacity"));
spinbutton_defocus(GTK_OBJECT(_opacity_sb.gobj()));
_opacity_blocked = false;
}