X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=share%2Fextensions%2Fpathalongpath.py;h=f8a8a2c325ce5fed8de4126aad8c155e31242bc3;hb=6c3e745a94ef6b25a4ef9f018d350a7535aa45af;hp=5bac2550b5bad2fdd34ab9cd23dda8f8d49e7185;hpb=e9df3bcdd3387ec845d1fea626de245aa8d7e93b;p=inkscape.git diff --git a/share/extensions/pathalongpath.py b/share/extensions/pathalongpath.py index 5bac2550b..f8a8a2c32 100644 --- a/share/extensions/pathalongpath.py +++ b/share/extensions/pathalongpath.py @@ -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