handle dictionary loading error
authorLaurent Mazet <mazet@softndesign.org>
Wed, 10 Jun 2020 20:19:34 +0000 (22:19 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Wed, 10 Jun 2020 20:22:48 +0000 (22:22 +0200)
l10n/po/fr/trivabble.po
l10n/pot/trivabble.pot
public/trivabble.js

index ebebaf079b3a8a3ffc56f4cec3542c3de77861c0..7b5f5b41627c2959ef6656befca54aa328559f97 100644 (file)
@@ -177,3 +177,6 @@ msgstr "Tous les mots sont corrects : {0}"
 
 msgid  "No new word found"
 msgstr "Aucun nouveau mot trouvĂ©"
+
+msgid  "Incorrect dictionary file."
+msgstr "Dictionaire incorrect."
index 1eed9addbb1c0f2767c45336b2727acaded8b022..862322c9c57b63bf5ea847416f3c899622b291da 100644 (file)
@@ -183,3 +183,6 @@ msgstr ""
 
 msgid  "No new word found"
 msgstr ""
+
+msgid  "Incorrect dictionary file."
+msgstr ""
index c614ab197d44a656d8ea763f4703d5eb408eb330..454d62e4db24be9d3f1262345f99efdd0231f97d 100644 (file)
                     dictionary = file.responseText.split("\n");
                     document.getElementById("check-spelling").disabled = false;
                 } catch (e) {
-                    console.error(e);
+                    myAlert(_("Incorrect dictionary file."));
                 }
             }
         };