def get_idiomatic_name_in_language(cls, name, language):
        """ Get the name for the given language

            Args:
                name (str): the name to convert
                language (str): the language to use

            Returns:
                a name in the given language

            Example:
                get_idiomatic_name_in_language("EnterpriseNetwork", "python")
                >>> enterprise_network
        """
        if language in cls.idiomatic_methods_cache:
            m = cls.idiomatic_methods_cache[language]
            if not m:
                return name
            return m(name)

        found, method = load_language_plugins(language, 'get_idiomatic_name')
        if found:
            cls.idiomatic_methods_cache[language] = method
            if method:
                return method(name)
            else:
                return name

        module = importlib.import_module('.lang.%s' % language, package="monolithe.generators")

        if not hasattr(module, 'get_idiomatic_name'):
            cls.idiomatic_methods_cache[language] = None
            return name

        method = getattr(module, 'get_idiomatic_name')
        cls.idiomatic_methods_cache[language] = method
        return method(name)
def get_idiomatic_name_in_language ( cls , name , language ) : if language in cls . idiomatic_methods_cache : m = cls . idiomatic_methods_cache [ language ] if not m : return name return m ( name ) found , method = load_language_plugins ( language , 'get_idiomatic_name' ) if found : cls . idiomatic_methods_cache [ language ] = method if method : return method ( name ) else : return name module = importlib . import_module ( '.lang.%s' % language , package = "monolithe.generators" ) if not hasattr ( module , 'get_idiomatic_name' ) : cls . idiomatic_methods_cache [ language ] = None return name method = getattr ( module , 'get_idiomatic_name' ) cls . idiomatic_methods_cache [ language ] = method return method ( name )
Get the name for the given language

            Args:
                name (str): the name to convert
                language (str): the language to use

            Returns:
                a name in the given language

            Example:
                get_idiomatic_name_in_language("EnterpriseNetwork", "python")
                >>> enterprise_network