From 5d86e442641061a3caa9a564bd6ce7944d98dea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 28 Jul 2015 20:55:00 +0200 Subject: [PATCH] 'update_po.py' should use python3 Revert temp workaround for el, vi, zh* translations --- po/check_po | 4 ++-- po/update_po.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/po/check_po b/po/check_po index 8e8955ab0..7f3d73b0a 100755 --- a/po/check_po +++ b/po/check_po @@ -292,9 +292,9 @@ class Msgid: print print("msg nr: %d, lineno: %d%s" % ( self.nr, self.lineno, self.is_fuzzy and " (fuzzy)" or "" )) - #sys.stdout.write( ''.join( self._msgid ) ) + sys.stdout.write( ''.join( self._msgid ) ) sys.stdout.write( ''.join( self._msgidp ) ) - #sys.stdout.write( ''.join( self._msgstr ) ) + sys.stdout.write( ''.join( self._msgstr ) ) def add_msgid( self, line, lineno ): self._msgid.append( line ) diff --git a/po/update_po.py b/po/update_po.py index a8f05b47d..92e8d7528 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # # update_po - a gramps tool to update translations # @@ -62,7 +62,7 @@ if sys.platform == 'win32': msgfmtCmd = os.path.join('C:', 'Program Files(x86)', 'gettext', 'bin', 'msgfmt.exe') msgattribCmd = os.path.join('C:', 'Program Files(x86)', 'gettext', 'bin', 'msgattrib.exe') xgettextCmd = os.path.join('C:', 'Program Files(x86)', 'gettext', 'bin', 'xgettext.exe') - pythonCmd = os.path.join(sys.prefix, 'bin', 'python.exe') + pythonCmd = os.path.join(sys.prefix, 'bin', 'python3.exe') # Others OS @@ -71,7 +71,7 @@ elif sys.platform in ['linux', 'linux2', 'darwin', 'cygwin']: msgfmtCmd = 'msgfmt' msgattribCmd = 'msgattrib' xgettextCmd = 'xgettext' - pythonCmd = os.path.join(sys.prefix, 'bin', 'python') + pythonCmd = os.path.join(sys.prefix, 'bin', 'python3') else: print("Found platform %s, OS %s" % (sys.platform, os.name)) print ("Update PO ERROR: unknown system, don't know msgmerge, ... commands")