Permalink
Browse files

doc/translator.py -- minor updates

  • Loading branch information...
pepr committed Jun 16, 2014
1 parent 21178ab commit 1ccc93fd699b34b7a89acecf9e59a526a5972bb8
Showing with 5 additions and 6 deletions.
  1. +5 −6 doc/translator.py
View
@@ -1796,7 +1796,9 @@ def generateLanguageDoc(self):
# document template.
tplDic = {}
s = 'Do not edit this file. It was generated by the %s script. * Instead edit %s and %s' % (self.script_name, self.languageTplFileName, self.maintainersFileName)
s = ('Do not edit this file. It was generated by the %s script.\n' +\
' * Edit the %s and %s files instead.') % (
self.script_name, self.languageTplFileName, self.maintainersFileName)
tplDic['editnote'] = s
tplDic['doxVersion'] = self.doxVersion
@@ -1987,17 +1989,14 @@ def generateLanguageDoc(self):
# The Python 2.6+ or 3.3+ is required.
major, minor, patch = (int(e) for e in platform.python_version_tuple())
print(major, minor, patch)
if (major == 2 and minor < 6) or (major == 3 and minor < 0):
print('Python 2.6+ or Python 3.0+ are required for the script')
sys.exit(1)
# The translator manager builds the transl objects, parses the related
# The translator manager builds the Transl objects, parses the related
# sources, and keeps them in memory.
trMan = TrManager()
# Generate the language.doc.
# Process the Transl objects and generate the output files.
trMan.generateLanguageDoc()
# Generate the translator report.
trMan.generateTranslatorReport()

0 comments on commit 1ccc93f

Please sign in to comment.