def check_for_language(lang_code):
    from django.conf import settings
    globalpath = os.path.join(os.path.dirname(sys.modules[settings.__module__].__file__), 'locale')
    if gettext_module.find('django', globalpath, [to_locale(lang_code)]) is not None:
        return True
    else:
        return False
Initialize a function control widget on tkframe master.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/utils/translation/trans_real.py/check_for_language--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/util/wx_gradient_editor.py/wxFunctionControl.__init__