def gettext(self, string, **variables):
        if variables:
            return self.translations.ugettext(string) % variables

        return self.translations.ugettext(string)
Translates a given string according to the current locale.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webapp2-2.3/webapp2_extras/i18n.py/I18n.gettext