Back to index

moin  1.9.0~rc2
GetText.py
Go to the documentation of this file.
00001 # -*- coding: iso-8859-1 -*-
00002 """
00003     MoinMoin - Load I18N Text
00004 
00005     This macro has the main purpose of supporting Help* page authors
00006     to insert the texts that a user actually sees on his screen into
00007     the description of the related features (which otherwise could
00008     get very confusing).
00009 
00010     @copyright: 2001 Juergen Hermann <jh@web.de>
00011     @license: GNU GPL, see COPYING for details.
00012 """
00013 
00014 Dependencies = ["language"]
00015 
00016 def macro_GetText(macro, text=u''):
00017     """ Return a translation of args, or args as is """
00018     translation = macro.request.getText(text)
00019 
00020     return macro.formatter.text(translation)
00021