From: Tim Gerundt Date: Tue, 10 Jul 2018 03:53:26 +0000 (+0200) Subject: Tweak output from GetTranslationsStatus.py X-Git-Tag: 2.16.5~682^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7bf725163d70d760f66492a84dc94ca804de9bf4;p=winmerge-jp%2Fwinmerge-jp.git Tweak output from GetTranslationsStatus.py --- diff --git a/Translations/GetTranslationsStatus.py b/Translations/GetTranslationsStatus.py index 7ed3d73c2..fc33551ea 100644 --- a/Translations/GetTranslationsStatus.py +++ b/Translations/GetTranslationsStatus.py @@ -3,7 +3,7 @@ # The MIT License # -# Copyright (c) 2009 Tim Gerundt +# Copyright (c) 2009-2018 Tim Gerundt # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -77,7 +77,8 @@ class TranslationsStatus(object): xmlfile.write(' %s\n' % (time.strftime('%Y-%m-%d'))) for project in self._projects: #For all projects... xmlfile.write(' \n' % (project.name)) - for status1 in project.status: #For all status... + for language in self.languages: #For all (sorted) languages... + status1 = project[language] if status1.template: #If a template file... xmlfile.write(' \n') xmlfile.write(' %s\n' % (status1.language)) @@ -121,35 +122,32 @@ class TranslationsStatus(object): def writeToHtmlFile(self, htmlpath): htmlfile = codecs.open(htmlpath, 'w', 'utf-8') - htmlfile.write('\n') - htmlfile.write('\n') + htmlfile.write('\n') + htmlfile.write('\n') htmlfile.write('\n') htmlfile.write(' Translations Status\n') htmlfile.write(' \n') - htmlfile.write('