Thomas Bruederli
2013-10-18 c344b64f13e7aa3c87c423cc14e57536d28c40b6
program/lib/Roundcube/rcube_spellcheck_enchant.php
@@ -31,6 +31,24 @@
    private $matches = array();
    /**
     * Return a list of languages supported by this backend
     *
     * @see rcube_spellcheck_engine::languages()
     */
    function languages()
    {
        $this->init();
        $langs = array();
        $dicts = enchant_broker_list_dicts($this->enchant_broker);
        foreach ($dicts as $dict) {
            $langs[] = preg_replace('/-.*$/', '', $dict['lang_tag']);
        }
        return array_unique($langs);
    }
    /**
     * Initializes Enchant dictionary
     */
    private function init()