You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def gettext(string, *args, **variables):
"""
gettext(u'Hello World!')
gettext(u'Hello %(name)s!', name='World')
gettext(u'Hello %s!', 'World')
"""
t = get_translations()
if t is None:
return string if not variables else string % variables
s = t.ugettext(string)
if args:
return s % args
else:
return s if not variables else s % variables
The text was updated successfully, but these errors were encountered:
like this:
The text was updated successfully, but these errors were encountered: