'update_po.py' should use python3
Revert temp workaround for el, vi, zh* translations
This commit is contained in:
parent
40ed6ed31a
commit
dc90fd866d
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/env python
|
#! /usr/bin/env python3
|
||||||
#
|
#
|
||||||
# update_po - a gramps tool to update translations
|
# 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')
|
msgfmtCmd = os.path.join('C:', 'Program Files(x86)', 'gettext', 'bin', 'msgfmt.exe')
|
||||||
msgattribCmd = os.path.join('C:', 'Program Files(x86)', 'gettext', 'bin', 'msgattrib.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')
|
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
|
# Others OS
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ elif sys.platform in ['linux', 'linux2', 'darwin', 'cygwin']:
|
|||||||
msgfmtCmd = 'msgfmt'
|
msgfmtCmd = 'msgfmt'
|
||||||
msgattribCmd = 'msgattrib'
|
msgattribCmd = 'msgattrib'
|
||||||
xgettextCmd = 'xgettext'
|
xgettextCmd = 'xgettext'
|
||||||
pythonCmd = os.path.join(sys.prefix, 'bin', 'python')
|
pythonCmd = os.path.join(sys.prefix, 'bin', 'python3')
|
||||||
else:
|
else:
|
||||||
print("Found platform %s, OS %s" % (sys.platform, os.name))
|
print("Found platform %s, OS %s" % (sys.platform, os.name))
|
||||||
print ("Update PO ERROR: unknown system, don't know msgmerge, ... commands")
|
print ("Update PO ERROR: unknown system, don't know msgmerge, ... commands")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user