comparison MoinMoin/macro/__init__.py @ 3123:5cb80bd604b4

refactored _() getText calls to match new api
author Radomir Dopieralski <moindev@sheep.art.pl>
date Wed, 27 Feb 2008 00:28:28 +0100
parents 8608b258f8e6
children a7bf8ff3f517
comparison
equal deleted inserted replaced
3122:a1322262398a 3123:5cb80bd604b4
164 # If called with empty or no argument, default to regex search for .+, the full page list. 164 # If called with empty or no argument, default to regex search for .+, the full page list.
165 needle = wikiutil.get_unicode(self.request, needle, 'needle', u'regex:.+') 165 needle = wikiutil.get_unicode(self.request, needle, 'needle', u'regex:.+')
166 166
167 # With whitespace argument, return same error message as FullSearch 167 # With whitespace argument, return same error message as FullSearch
168 if not needle.strip(): 168 if not needle.strip():
169 err = _('Please use a more selective search term instead of {{{"%s"}}}') % needle 169 err = _('Please use a more selective search term instead of {{{"%s"}}}', wiki=True) % needle
170 return '<span class="error">%s</span>' % err 170 return '<span class="error">%s</span>' % err
171 171
172 # Return a title search for needle, sorted by name. 172 # Return a title search for needle, sorted by name.
173 results = search.searchPages(self.request, needle, 173 results = search.searchPages(self.request, needle,
174 titlesearch=1, case=case, sort='page_name') 174 titlesearch=1, case=case, sort='page_name')