~inkscape.dev/inkscape/trunk

« back to all changes in this revision

Viewing changes to share/extensions/pathalongpath.py

  • Committer: pjrm
  • Date: 2008-05-23 12:49:19 UTC
  • Revision ID: pjrm@users.sourceforge.net-20080523124919-bfrcgaggp79uviuy
share/extensions/*.py: Use gettext for (many) error messages.
share/extensions/inkex.py: (errormsg): New function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
import inkex, cubicsuperpath, bezmisc
35
35
import pathmodifier,simpletransform
36
 
 
37
36
import copy, math, re, random
 
37
import gettext
 
38
_ = gettext.gettext
38
39
 
39
40
def flipxy(path):
40
41
    for pathcomp in path:
193
194
 
194
195
    def effect(self):
195
196
        if len(self.options.ids)<2:
196
 
            inkex.debug("This extension requires that you select two paths.")
 
197
            inkex.errormsg(_("This extension requires two selected paths."))
197
198
            return
198
199
        self.prepareSelectionList()
199
200
        self.options.wave = (self.options.kind=="Ribbon")