<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_language(self, language):
 """ Sets the language. :param language: Language to set. :type language: Language :return: Method success. :rtype: bool """


        LOGGER.debug("> Setting editor language to '{0}'.".format(language.name))
        self.__language = language or umbra.ui.languages.PYTHON_LANGUAGE
        self.__set_language_description()
        self.language_changed.emit()
        return True