($Author$)
* @version $Date$
*/
global $SQSPELL_VERSION;
$words_ary = $_POST['words_ary'];
$sqspell_use_app = $_POST['sqspell_use_app'];
/**
* If something needs to be deleted, then $words_ary will be
* non-zero length.
*/
if (sizeof($words_ary)){
$words=sqspell_getWords();
$lang_words = sqspell_getLang($words, $sqspell_use_app);
$msg = '
'
. sprintf(_("Deleting the following entries from %s dictionary:"), ''.$sqspell_use_app.'')
. '
'
. "\n";
for ($i=0; $i\n";
}
$new_words_ary=split("\n", $lang_words);
/**
* Wipe this lang, if only 2 members in array (no words left).
* # Language
* # End
*/
if (sizeof($new_words_ary)<=2) {
$lang_words='';
}
$new_lang_words = $lang_words;
/**
* Write the dictionary back to the disk.
*/
$langs=sqspell_getSettings($words);
$words_dic = "# SquirrelSpell User Dictionary $SQSPELL_VERSION\n# "
. "Last Revision: " . date("Y-m-d") . "\n# LANG: "
. join(", ", $langs) . "\n";
for ($i=0; $i\n";
sqspell_makePage(_("Personal Dictionary Updated"), null, $msg);
} else {
/**
* Click on some words first, Einstein!
*/
sqspell_makePage(_("Personal Dictionary"), null,
'' . _("No changes requested.") . '
');
}
/**
* For Emacs weenies:
* Local variables:
* mode: php
* End:
* vim: syntax=php
*/
?>