def gettext(string):
  translations = get_translations()
  if translations is None:
    return unicode(string)
  return translations.gettext(string)
Translate a given string to the language of the application.
dataset/ETHPy150Open IanLewis/kay/kay/i18n/__init__.py/gettext