Skip to content

Commit

Permalink
doc/translator.py -- minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pepr committed Jun 16, 2014
1 parent 21178ab commit 1ccc93f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions doc/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.