From 7bf725163d70d760f66492a84dc94ca804de9bf4 Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Tue, 10 Jul 2018 05:53:26 +0200 Subject: [PATCH] Tweak output from GetTranslationsStatus.py --- Translations/GetTranslationsStatus.py | 37 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 19 deletions(-) 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('