def fake_pgettext(translations):
 def _pgettext(context, text):
  return translations.get((context, text), text)
 return _pgettext

def fake_pgettext ( translations ) : def _pgettext ( context , text ) : return translations . get ( ( context , text ) , text ) return _pgettext
create a fake implementation of pgettext .