changeset 470:67b064b600e9

Handling situation with page name translation string set to original page name.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Sun, 10 Jan 2010 15:13:08 +0300
parents 045b03f49a3e
children 992cfded6a60
files data/plugin/action/CheckTranslation.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/CheckTranslation.py	Mon Dec 21 20:36:26 2009 +0300
+++ b/data/plugin/action/CheckTranslation.py	Sun Jan 10 15:13:08 2010 +0300
@@ -108,7 +108,10 @@
                 info += " %(editor)s %(time)s" % last_edit
             trans_status.append(info)
 
-            if trans_page.exists():
+            if trans_page_name == orig_page_name:
+                 trans_status.append(_(u'/!\\ Page is untranslated.', wiki=True))
+
+            if trans_page_name != orig_page_name and trans_page.exists():
                 if trans_page.pi['language'] != lang:
                     trans_status.append(_('/!\\ Translated page language ("%(page_lang)s") is not "%(lang)s"', wiki=True) % {
                         'lang': request.formatter.text(lang),