예제 #1
0
    def dict_exists(self, tag):
        """Check availability of a dictionary.

        This method checks whether there is a dictionary available for
        the language specified by 'tag'.  It returns True if a dictionary
        is available, and False otherwise.
        """
        self._check_this()
        val = _e.broker_dict_exists(self._this, tag.encode())
        return bool(val)
예제 #2
0
 def dict_exists(self,tag):
     """Check availability of a dictionary.
     
     This method checks whether there is a dictionary available for
     the language specified by 'tag'.  It returns True if a dictionary
     is available, and False otherwise.
     """
     self._check_this()
     tag = EnchantStr(tag)
     val = _e.broker_dict_exists(self._this,tag.encode())
     return bool(val)