Code

Merge from fe-moved
[inkscape.git] / share / extensions / pathalongpath.py
index 5bac2550b5bad2fdd34ab9cd23dda8f8d49e7185..f8a8a2c325ce5fed8de4126aad8c155e31242bc3 100644 (file)
@@ -33,8 +33,9 @@ they move and rotate, deforming the pattern.
 
 import inkex, cubicsuperpath, bezmisc
 import pathmodifier,simpletransform
-
 import copy, math, re, random
+import gettext
+_ = gettext.gettext
 
 def flipxy(path):
     for pathcomp in path:
@@ -193,7 +194,7 @@ class PathAlongPath(pathmodifier.Diffeo):
 
     def effect(self):
         if len(self.options.ids)<2:
-            inkex.debug("This extension requires that you select two paths.")
+            inkex.errormsg(_("This extension requires two selected paths."))
             return
         self.prepareSelectionList()
         self.options.wave = (self.options.kind=="Ribbon")
@@ -272,7 +273,9 @@ class PathAlongPath(pathmodifier.Diffeo):
 
                 node.set('d', cubicsuperpath.formatPath(newp))
 
-e = PathAlongPath()
-e.affect()
+if __name__ == '__main__':
+    e = PathAlongPath()
+    e.affect()
 
                     
+# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99