changeset 3269:398ab9187a50

getText calls: fix some percent=... args
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 16 Mar 2008 17:11:12 +0100
parents cd28d66afe11
children e06e15e90ba7
files MoinMoin/PageEditor.py MoinMoin/PageGraphicalEditor.py MoinMoin/action/fullsearch.py
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Sun Mar 16 16:02:15 2008 +0100
+++ b/MoinMoin/PageEditor.py	Sun Mar 16 17:11:12 2008 +0100
@@ -371,7 +371,7 @@
 If you don't want that, hit '''%(cancel_button_text)s''' to cancel your changes.""", wiki=True) % {
                 'save_button_text': save_button_text,
                 'cancel_button_text': cancel_button_text,
-                     'license_link': wikiutil.getLocalizedPage(request, self.cfg.page_license_page).link_to(request),
+                'license_link': wikiutil.getLocalizedPage(request, self.cfg.page_license_page).link_to(request),
             }, '</em></p>')
 
 
--- a/MoinMoin/PageGraphicalEditor.py	Sun Mar 16 16:02:15 2008 +0100
+++ b/MoinMoin/PageGraphicalEditor.py	Sun Mar 16 17:11:12 2008 +0100
@@ -263,7 +263,7 @@
         if self.cfg.page_license_enabled:
             request.write('<p><em>', _(
 """By hitting '''%(save_button_text)s''' you put your changes under the %(license_link)s.
-If you don't want that, hit '''%(cancel_button_text)s''' to cancel your changes.""", wiki=True, percent=True) % {
+If you don't want that, hit '''%(cancel_button_text)s''' to cancel your changes.""", wiki=True) % {
                 'save_button_text': save_button_text,
                 'cancel_button_text': cancel_button_text,
                 'license_link': wikiutil.getLocalizedPage(request, self.cfg.page_license_page).link_to(request),
--- a/MoinMoin/action/fullsearch.py	Sun Mar 16 16:02:15 2008 +0100
+++ b/MoinMoin/action/fullsearch.py	Sun Mar 16 17:11:12 2008 +0100
@@ -186,7 +186,7 @@
         results = searchPages(request, query, sort, mtime, historysearch)
     except ValueError: # catch errors in the search query
         request.theme.add_msg(_('Your search query {{{"%s"}}} is invalid. Please refer to '
-                'HelpOnSearching for more information.', wiki=True) % wikiutil.escape(needle), "error")
+                'HelpOnSearching for more information.', wiki=True, percent=True) % wikiutil.escape(needle), "error")
         Page(request, pagename).send_page()
         return