1
// Spell checking dictionary for Mozilla Thunderbird
2
// Script written by rockstiff. Dictionary from openoffice.org
4
const APP_DISPLAY_NAME = "{LANGNAME} ({REGIONNAME}) dictionary";
5
const APP_NAME = "spell-{LANG}-{REGION}";
6
const APP_PACKAGE = "dictionaries.mozdev.org/spell-{LANG}-{REGION}";
7
const APP_VERSION = "{VERSION}";
9
var err = initInstall(APP_NAME, APP_PACKAGE, APP_VERSION);
12
// Copy files to Components/myspell
13
var myspell_folder = getFolder("Components", "myspell");
14
addFile(APP_NAME, "{LANG}-{REGION}.dic", myspell_folder, "");
15
addFile(APP_NAME, "{LANG}-{REGION}.aff", myspell_folder, "");
16
addFile(APP_NAME, "README-{LANG}-{REGION}.txt", myspell_folder, "");
18
err = performInstall();
19
if(err == SUCCESS || err == 999) {
20
alert(APP_DISPLAY_NAME+" (v "+APP_VERSION+") has been succesfully installed.\n");
23
alert("Installation failed. Error:" + err);