#format python """MoinMoin action for GoogleTranslate by yong27, 2006-04-19 """ from MoinMoin.Page import Page template = """
""" def execute(pagename, request): page = Page(request, pagename) actname = __name__.split('.')[-1] if actname in request.cfg.actions_excluded \ or not request.user.may.write(pagename) \ or not request.user.may.delete(pagename): return page.send_page(request, msg=_('You are not allowed to translate this page')) url=request.url.split('?')[0] return page.send_page(request, msg=template%url)