~inkscape.dev/inkscape/trunk

« back to all changes in this revision

Viewing changes to share/extensions/pathscatter.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:
34
34
import inkex, cubicsuperpath, bezmisc
35
35
import pathmodifier, simpletransform 
36
36
from lxml import etree
37
 
 
38
37
import copy, math, re, random
 
38
import gettext
 
39
_ = gettext.gettext
39
40
 
40
41
def zSort(inNode,idList):
41
42
    sortedList=[]
204
205
    def effect(self):
205
206
 
206
207
        if len(self.options.ids)<2:
207
 
            inkex.debug("This extension requires that you select two paths.")
 
208
            inkex.errormsg(_("This extension requires two selected paths."))
208
209
            return
209
210
        self.prepareSelectionList()
210
211
 
254
255
                    s+=dx
255
256
        self.patternNode.getparent().remove(self.patternNode)
256
257
 
257
 
 
258
258
if __name__ == '__main__':
259
259
    e = PathScatter()
260
260
    e.affect()
261
261
 
262
 
                    
 
262
 
263
263
# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99