'Language menu'

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

    settings = current.deployment_settings
    if (not settings.get_L10n_display_toolbar()):
        return None
    languages = current.response.s3.l10n_languages
    request = current.request
    menu_lang = MM('Language', **attr)
    for language in languages:
        menu_lang.append(MM(languages[language], r=request, translate=False, selectable=False, vars={'_language': language}, ltr=True))
    return menu_lang
