changeset 544:02470d83aab9

action.CheckTranslation: the master page revision is identified by the timestamp given at master-date. Only if the translated page is older it should give a hint about that
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 07 Jan 2011 22:03:20 +0100
parents 8893fdfafd75
children 946737f9eb1b
files data/plugin/action/CheckTranslation.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/CheckTranslation.py	Fri Jul 16 15:50:26 2010 +0200
+++ b/data/plugin/action/CheckTranslation.py	Fri Jan 07 22:03:20 2011 +0100
@@ -5,7 +5,7 @@
     shows a table of System Pages and their translations to the users language
     if the users language is anything else than en
 
-    @copyright: 2009 MoinMoin:ReimarBauer,
+    @copyright: 2009-2010 MoinMoin:ReimarBauer,
                 2009 MoinMoin:ThomasWaldmann,
                 2009 MoinMoin:EugeneSyromyatnikov
     @license: GNU GPL, see COPYING for details.
@@ -203,7 +203,7 @@
                         orig_date = time.gmtime(orig_page.mtime_usecs() / 1000000.0)
                         orig_date_s = time.strftime('%Y-%m-%d %H:%M:%S', orig_date)
 
-                        if master_date < orig_date:
+                        if master_date <= orig_date:
                             trans_status.append(_('(!) Translated page is outdated: it has master date %(master_date)s, but original page last edited at %(orig_date)s. %(diff_link)s.', wiki=True) % {
                                 'orig_date': request.formatter.text(orig_date_s),
                                 'master_date': request.formatter.text(time.strftime('%Y-%m-%d %H:%M:%S', master_date)),