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

# def ngettext(singular, plural, num, **variables):
#     """ Translate a singular/plural string based on the number 'num'."""
#     translations = get_translations()
#     variables.setdefault('num', num)
#     if translations:
#         return translations.ungettext(singular, plural, num) % variables
#     return (singular if num == 1 else plural) % variables
Create markup (a POM object tree) from Python objects.
dataset/ETHPy150Open lingthio/Flask-User/flask_user/translations.py/gettext--crossover with--dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/XHTML.py/FlowMixin.create_markup