From 1ccc93fd699b34b7a89acecf9e59a526a5972bb8 Mon Sep 17 00:00:00 2001 From: Petr Prikryl Date: Mon, 16 Jun 2014 22:05:56 +0200 Subject: doc/translator.py -- minor updates --- doc/translator.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/translator.py b/doc/translator.py index 19277be..69e7de8 100644 --- a/doc/translator.py +++ b/doc/translator.py @@ -1796,7 +1796,9 @@ class TrManager: # 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 @@ if __name__ == '__main__': # 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() -- cgit v0.12