msgid "Check spelling for new words"
msgstr "Vérifier l'orthographe des mots nouveaux"
-msgid "Incorrect speeling for {0}"
-msgstr "Orthographe incorrecte pour {0}"
+msgid "Incorrect speeling for {0} from {1}"
+msgstr "Orthographe incorrecte pour {0} parmi {1}"
+
+msgid "All words are correct: {0}"
+msgstr "Tous les mots sont corrects : {0}"
msgid "Check spelling for new words"
msgstr ""
-msgid "Incorrect speeling for {0}"
+msgid "Incorrect speeling for {0} from {1}"
+msgstr ""
+
+msgid "All words are correct: {0}"
msgstr ""
let words = searchNewWords();
/* Check if words are in dictionnary */
- for (const k of Object.keys(words)) {
- if (dictionnary.includes(words[k])) {
- delete words[k];
+ let badWords = words.slice();
+ for (const k of Object.keys(badWords)) {
+ if (dictionnary.includes(badWords[k])) {
+ delete badWords[k];
}
}
- words = words.join(" ");
+ words = words.join(" ").replace(/^ */, "").replace(/ *$/, "");
+ badWords = badWords.join(" ").replace(/^ */, "").replace(/ *$/, "");
/* Advice on erroneous spelling */
- if (words.length > 0) {
- myAlert(format(_("Incorrect speeling for {0}"), words));
+ if (badWords.length > 0) {
+ myAlert(format(_("Incorrect speeling for {0} from {1}"), badWords, words));
+ } else if (words.length > 0) {
+ myAlert(format(_("All words are correct: {0}"), words));
}
}