diff --git a/docs/sphinx/_downloads/i18nwxapp/app_base.py b/docs/sphinx/_downloads/i18nwxapp/app_base.py index 9599bb29..397d4344 100644 --- a/docs/sphinx/_downloads/i18nwxapp/app_base.py +++ b/docs/sphinx/_downloads/i18nwxapp/app_base.py @@ -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__ diff --git a/docs/sphinx/_downloads/i18nwxapp/geni18n.py b/docs/sphinx/_downloads/i18nwxapp/geni18n.py index 031de25e..e8de1bc5 100644 --- a/docs/sphinx/_downloads/i18nwxapp/geni18n.py +++ b/docs/sphinx/_downloads/i18nwxapp/geni18n.py @@ -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)