def setup_notifications(app_name, png=None, icon=None, term_notify=(None, None)):

    if icon is not None and isinstance(icon, binary_type):
        icon = icon.decode('utf-8')

    if isinstance(app_name, binary_type):
        app_name = app_name.decode('utf-8')

    setup_growl(app_name, png, alert)
    setup(
        app_name,
        icon if _PLATFORM == "windows" else png,
        term_notify if _PLATFORM == "osx" else None
    )
Initializes the i18n provider for a request.
dataset/ETHPy150Open facelessuser/SubNotify/lib/notify/__init__.py/setup_notifications--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webapp2-2.3/webapp2_extras/i18n.py/I18n.__init__