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

        if current.auth.is_logged_in():
            return None

        #settings = current.deployment_settings
        #if not settings.get_L10n_display_toolbar():
        #    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,
                                # @ToDo: Fix this getting passed inside
                                # 'active' class gets applied to item.selected
                                _class=_class,
                                ))
        return menu_lang

# END =========================================================================
Language menu
dataset/ETHPy150Open sahana/eden/modules/templates/CRMT/menus.py/S3MainMenu.menu_lang