code: def pgettext(self, context, string, domain=None, **variables):
          
          t = self.get_translations(domain)
          return t.upgettext(context, string) % variables
docs: Like :meth:`gettext` but with a context.