changeset 355:5be8fa5a1ff6

CollectLists: i18n message for not existing pagename added
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 05 Feb 2009 11:07:44 +0100
parents 8b431b302c79
children 918af8ce7507
files data/plugin/macro/CollectLists.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/CollectLists.py	Thu Feb 05 10:58:08 2009 +0100
+++ b/data/plugin/macro/CollectLists.py	Thu Feb 05 11:07:44 2009 +0100
@@ -39,6 +39,7 @@
     """
     request = macro.request
     formatter = macro.formatter
+    _ = request.getText
 
     try:
         WikiParser = wikiutil.importPlugin(request.cfg, 'parser', parser, function="Parser")
@@ -60,7 +61,8 @@
     filterfn = re.compile(needle).search
     pages = request.rootpage.getPageList(exists=1, filter=filterfn)
     if not pages:
-        return ""
+        return _("Page '%(new_pagename)s' does not exist or you don't have enough rights.") % {"new_pagename": pagename}
+
     # only one level of subpages is used (no Template pages)
     filterfn = request.cfg.cache.page_template_regexact.search
     templates = request.rootpage.getPageList(filter=filterfn)