diff --git a/docs/sphinx/_downloads/i18nwxapp/app_base.py b/docs/sphinx/_downloads/i18nwxapp/app_base.py index 9599bb29..b077137b 100644 --- a/docs/sphinx/_downloads/i18nwxapp/app_base.py +++ b/docs/sphinx/_downloads/i18nwxapp/app_base.py @@ -19,11 +19,11 @@ 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__ -__builtin__.__dict__['_'] = wx.GetTranslation +import builtins +builtins.__dict__['_'] = wx.GetTranslation import app_const as appC 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) diff --git a/docs/sphinx/_downloads/i18nwxapp/i18nwxapp.zip b/docs/sphinx/_downloads/i18nwxapp/i18nwxapp.zip index b3f210d6..0fa97bfe 100644 Binary files a/docs/sphinx/_downloads/i18nwxapp/i18nwxapp.zip and b/docs/sphinx/_downloads/i18nwxapp/i18nwxapp.zip differ diff --git a/docs/sphinx/_downloads/i18nwxapp/sampleapp.py b/docs/sphinx/_downloads/i18nwxapp/sampleapp.py index 8e7bc39f..567c026f 100644 --- a/docs/sphinx/_downloads/i18nwxapp/sampleapp.py +++ b/docs/sphinx/_downloads/i18nwxapp/sampleapp.py @@ -83,7 +83,7 @@ class AppI18N(sc.SizedFrame): defaultDir=os.getcwd(), defaultFile="", wildcard=wildcard, - style=wx.OPEN | wx.MULTIPLE | wx.CHANGE_DIR + style=wx.FD_OPEN | wx.FD_MULTIPLE | wx.FD_CHANGE_DIR ) as dlg: # Show the dialog and retrieve the user response. If it is the diff --git a/docs/sphinx/rest_substitutions/overviews/internationalization.rst b/docs/sphinx/rest_substitutions/overviews/internationalization.rst index be395a19..acf0b563 100644 --- a/docs/sphinx/rest_substitutions/overviews/internationalization.rst +++ b/docs/sphinx/rest_substitutions/overviews/internationalization.rst @@ -66,7 +66,7 @@ The ``.pot`` file is then provided to the translators and they use it to generate a ``.po`` file for the language they translate too or they can also use the ``.pot`` file to merge new/changed text strings to an existing ``.po`` file. -To do the actual translation we recomment `poEdit` [2]_ , it allows you to +To do the actual translation we recommend `poEdit` [2]_ , it allows you to create or update a translation catalog (``.po`` file) from the ``.pot`` file.