def activate(language):
    if isinstance(language, basestring) and language == 'no':
        warnings.warn(
            "The use of the language code 'no' is deprecated. "
            "Please use the 'nb' translation instead.",
            PendingDeprecationWarning
        )
    _active[currentThread()] = translation(language)
Fetches the translation object for a given tuple of application name and
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/utils/translation/trans_real.py/activate