<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def i18n_app(providername):
 """ import this function at the top of each provider netshow component that has cli output functions. Example from netshow.netshow import i18n_app as _ """

    install_location = pkg_resources.require('netshow-core-lib')[0].location
    translation_loc = os.path.join(install_location, '..', '..', '..', 'share', 'locale')

    _translate = gettext.translation(providername, translation_loc,
                                     fallback=True)

    return _translate.lgettext