From 78c135de1c09b3bd49afdfd3a20fed42d25f7760 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Jakse?= Date: Sat, 29 Aug 2020 12:26:05 +0200 Subject: [PATCH] work on settings and spell checker UI/UX --- l10n/po/fr/trivabble.po | 12 ++--- l10n/pot/trivabble.pot | 8 +-- public/config.js.sample | 4 +- public/index.html | 17 ++++--- public/trivabble.css | 30 ++++++++++- public/trivabble.js | 100 +++++++++++++++++++------------------ server/trivabble-server.js | 3 +- 7 files changed, 102 insertions(+), 72 deletions(-) diff --git a/l10n/po/fr/trivabble.po b/l10n/po/fr/trivabble.po index 8e4292f..752e8bb 100644 --- a/l10n/po/fr/trivabble.po +++ b/l10n/po/fr/trivabble.po @@ -187,11 +187,11 @@ msgstr "Impossible de charger le dictionnaire" msgid "Enable spell checker" msgstr "Activer le vérificateur orthographique" -msgid "Spell checking requires Trivabble to download a dictionary. This dictionary is based on Aspell. Do you confirm?" -msgstr "La vérification orthographique nécessite que Trivabble télécharge un dictionnaire. Ce dictionnaire est construit grâce à Aspell. Confirmez-vous ?" +msgid "Spell checking requires Trivabble to download a dictionary. Do you confirm?" +msgstr "La vérification orthographique nécessite que Trivabble télécharge un dictionnaire. Confirmez-vous ?" -msgid "Configuration" -msgstr "Options de configuration" +msgid "Spell checking is based on:" +msgstr "La vérification orthographique est basée sur :" -msgid "Configuration window" -msgstr "Fenêtre de configuration" +msgid "Settings" +msgstr "Paramètres" \ No newline at end of file diff --git a/l10n/pot/trivabble.pot b/l10n/pot/trivabble.pot index 7d95428..e830002 100644 --- a/l10n/pot/trivabble.pot +++ b/l10n/pot/trivabble.pot @@ -193,11 +193,11 @@ msgstr "" msgid "Enable spell checker" msgstr "" -msgid "Spell checking requires Trivabble to download a dictionary. This dictionary is based on Aspell. Do you confirm?" +msgid "Spell checking requires Trivabble to download a dictionary. Do you confirm?" msgstr "" -msgid "Configuration" +msgid "Spell checking is based on:" msgstr "" -msgid "Configuration window" -msgstr "" +msgid "Settings" +msgstr "" \ No newline at end of file diff --git a/public/config.js.sample b/public/config.js.sample index 2a69af5..bdd7845 100644 --- a/public/config.js.sample +++ b/public/config.js.sample @@ -17,8 +17,8 @@ window.TrivabbleConf = { // to tweak only if your webserver is shared with other conflicting resources at / ( ex: yunohost integration ) APP_PATH: "", - // Whether Check spelling is enabled (dictionaries must be downloaded on the server before enabling this option - ENABLE_CHECK_SPELLING: false, + // Whether the spell checker is enabled (dictionaries must be downloaded on the server before enabling this option) + ENABLE_SPELL_CHECKER: false, // I don't like trailing commas, here is a nice message for you reading this file :-) HAVE_FUN: true diff --git a/public/index.html b/public/index.html index be8dd23..a809646 100644 --- a/public/index.html +++ b/public/index.html @@ -44,20 +44,20 @@ -