mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-10 05:47:09 +01:00
Fix print statements
This commit is contained in:
@@ -19,7 +19,7 @@ import wx
|
||||
|
||||
def _displayHook(obj):
|
||||
if obj is not None:
|
||||
print repr(obj)
|
||||
print (repr(obj))
|
||||
|
||||
# add translation macro to builtin similar to what gettext does
|
||||
import __builtin__
|
||||
|
||||
@@ -48,18 +48,18 @@ tCmd = pyExe + ' ' + pyGettext + ' ' + (gtOptions % (appC.langDomain,
|
||||
appC.langDomain,
|
||||
outFolder,
|
||||
appFolder))
|
||||
print "Generating the .pot file"
|
||||
print "cmd: %s" % tCmd
|
||||
print ("Generating the .pot file")
|
||||
print ("cmd: %s" % tCmd)
|
||||
rCode = subprocess.call(tCmd)
|
||||
print "return code: %s\n\n" % rCode
|
||||
print ("return code: %s\n\n" % rCode)
|
||||
|
||||
for tLang in supportedLang:
|
||||
# build command for msgfmt
|
||||
langDir = os.path.join(appFolder, ('locale\%s\LC_MESSAGES' % tLang))
|
||||
poFile = os.path.join(langDir, appC.langDomain + '.po')
|
||||
tCmd = pyExe + ' ' + pyMsgfmt + ' ' + poFile
|
||||
|
||||
print "Generating the .mo file"
|
||||
print "cmd: %s" % tCmd
|
||||
|
||||
print ("Generating the .mo file")
|
||||
print ("cmd: %s" % tCmd)
|
||||
rCode = subprocess.call(tCmd)
|
||||
print "return code: %s\n\n" % rCode
|
||||
print ("return code: %s\n\n" % rCode)
|
||||
|
||||
Reference in New Issue
Block a user