summaryrefslogtreecommitdiffstats
path: root/share/extensions/convert2dashes.py
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2012-10-07 17:41:26 +0000
committerJazzyNico <nicoduf@yahoo.fr>2012-10-07 17:41:26 +0000
commitc37bac565d73ab069263873307286eb19641b99c (patch)
tree675dcc77a510aeeb6650328dff0fe80252010180 /share/extensions/convert2dashes.py
parentpowerstroke: arc extrapolate fix (diff)
downloadinkscape-c37bac565d73ab069263873307286eb19641b99c.tar.gz
inkscape-c37bac565d73ab069263873307286eb19641b99c.zip
Translations. Fix for Bug #425202 (Script messages not translated).
(bzr r11749)
Diffstat (limited to 'share/extensions/convert2dashes.py')
-rwxr-xr-xshare/extensions/convert2dashes.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/share/extensions/convert2dashes.py b/share/extensions/convert2dashes.py
index cf42a078a..9e7f6d439 100755
--- a/share/extensions/convert2dashes.py
+++ b/share/extensions/convert2dashes.py
@@ -20,10 +20,13 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
'''
+# local library
+import inkex
+import cubicsuperpath
+import bezmisc
+import simplestyle
-import inkex, cubicsuperpath, bezmisc, simplestyle
-import gettext
-_ = gettext.gettext
+inkex.localize()
def tpoint((x1,y1), (x2,y2), t = 0.5):
return [x1+t*(x2-x1),y1+t*(y2-y1)]