'update_po.py' should use python3
Revert temp workaround for el, vi, zh* translations
This commit is contained in:
parent
b5eaeff3a4
commit
5d86e44264
@ -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 )
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user