Skip to content

Commit

Permalink
Changed a docstring slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Aug 29, 2011
1 parent 77ae1cf commit 61ae625
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flaskext/babel.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ def _date_format(formatter, obj, format, rebase, **extra):

def gettext(string, **variables):
"""Translates a string with the current locale and passes in the
given keyword arguments as mapping to a string formatting string::
given keyword arguments as mapping to a string formatting string.
::
gettext(u'Hello World!')
gettext(u'Hello %(name)s!', name='World')
Expand Down

0 comments on commit 61ae625

Please sign in to comment.