From 3496b04a3d5fc1dd1e508a6ea79bb50af70969de Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Sun, 7 Oct 2012 16:55:37 -0400 Subject: extensions. maintain gettext compatibility with rev 11749 (bzr r11752) --- share/extensions/extrude.py | 9 ++++++--- share/extensions/print_win32_vector.py | 12 ++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/share/extensions/extrude.py b/share/extensions/extrude.py index 0720ee24b..c91ea645e 100755 --- a/share/extensions/extrude.py +++ b/share/extensions/extrude.py @@ -16,10 +16,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 simplepath +import simpletransform +import cubicsuperpath -import inkex, simplepath, simpletransform, cubicsuperpath -import gettext -_ = gettext.gettext +inkex.localize() class Extrude(inkex.Effect): def __init__(self): diff --git a/share/extensions/print_win32_vector.py b/share/extensions/print_win32_vector.py index 49baec136..e77b49826 100644 --- a/share/extensions/print_win32_vector.py +++ b/share/extensions/print_win32_vector.py @@ -27,11 +27,15 @@ 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 ''' - +# standard library from ctypes import * -import inkex, simplestyle, simpletransform, cubicsuperpath -import gettext -_ = gettext.gettext +# local library +import inkex +import simplestyle +import simpletransform +import cubicsuperpath + +inkex.localize() if not inkex.sys.platform.startswith('win'): exit(_("sorry, this will run only on Windows, exiting...")) -- cgit v1.2.3