'Language menu'

@classmethod
def menu_lang(cls, **attr):

    if current.auth.is_logged_in():
        return None
    request = current.request
    s3 = current.response.s3
    languages = s3.l10n_languages
    current_language = s3.language
    menu_lang = MM('Language', **attr)
    for language in languages:
        if (language == current_language):
            _class = 'active'
        else:
            _class = ''
        menu_lang.append(MM(languages[language], r=request, translate=False, selectable=False, vars={'_language': language}, ltr=True, _class=_class))
    return menu_lang
