Repository: st3v3nmw/obsidian-spaced-repetition
Pull request #1082 (2024-09-21 15:55:08)

update french translation
Changes in #1066 introduced new translation entries and removed 2, this updates the French locale to match.

Added:

- OBSIDIAN_INTEGRATION
- SHOW_STATUS_BAR
- SHOW_STATUS_BAR_DESC
- SHOW_RIBBON_ICON
- SHOW_RIBBON_ICON_DESC
- ENABLE_FILE_MENU_REVIEW_OPTIONS
- ENABLE_FILE_MENU_REVIEW_OPTIONS_DESC

Removed:

- DISABLE_FILE_MENU_REVIEW_OPTIONS
- DISABLE_FILE_MENU_REVIEW_OPTIONS_DESC

Follow up on #1080.


Patch:
diff --git a/README.md b/README.md
index afd2e2c..44bd0a4 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ Fight the forgetting curve & note aging by reviewing flashcards & notes using sp
 -   Check the [roadmap](https://github.com/st3v3nmw/obsidian-spaced-repetition/projects/3/) for upcoming features & fixes.
 -   Raise an issue [here](https://github.com/st3v3nmw/obsidian-spaced-repetition/issues/) if you have a feature request or a bug report.
 -   Visit the [discussions](https://github.com/st3v3nmw/obsidian-spaced-repetition/discussions/) section for Q&A help, feedback, and general discussion.
--   The plugin has been translated into _Arabic, Chinese, Czech, German, Italian, Korean, Japanese, Polish, Portuguese, Spanish, Russian, and Turkish_ by the Obsidian community 😄.
+-   The plugin has been translated into _Arabic, Chinese, Czech, French, German, Italian, Korean, Japanese, Polish, Portuguese, Spanish, Russian, and Turkish_ by the Obsidian community 😄.
     -   To help translate this plugin to your language, check the [translation guide here](https://www.stephenmwangi.com/obsidian-spaced-repetition/contributing/#translating_1).
 
 ## Features
diff --git a/docs/docs/en/contributing.md b/docs/docs/en/contributing.md
index b4da470..67c4965 100644
--- a/docs/docs/en/contributing.md
+++ b/docs/docs/en/contributing.md
@@ -16,6 +16,7 @@ The plugin has been translated into the following languages by the Obsidian comm
 -   Chinese (Simplified) / 简体中文
 -   Chinese (Traditional) / 繁體中文
 -   Czech / čeština
+-   French / français
 -   German / Deutsch
 -   Italian / Italiano
 -   Korean / 한국어
diff --git a/src/lang/locale/fr.ts b/src/lang/locale/fr.ts
index 2114054..e9a3b4c 100644
--- a/src/lang/locale/fr.ts
+++ b/src/lang/locale/fr.ts
@@ -10,9 +10,9 @@ export default {
     SKIP: "Sauter",
     EDIT_CARD: "Modifier la carte",
     RESET_CARD_PROGRESS: "Remettre à zéro le niveau de cette carte",
-    difficile: "Difficile",
+    HARD: "Difficile",
     GOOD: "Correct",
-    facile: "Facile",
+    EASY: "Facile",
     SHOW_ANSWER: "Montrer la réponse",
     CARD_PROGRESS_RESET: "Le niveau de la carte a été remis à zéro.",
     SAVE: "Sauvegarder",
@@ -74,13 +74,14 @@ export default {
     FOLDERS_TO_IGNORE: "Dossiers à ignorer",
     FOLDERS_TO_IGNORE_DESC: `Entrez les chemins des dossiers. Un chemin par ligne, ex. Templates Meta/Scripts.
 Ce réglage est le même pour les flashcards et les notes.`,
+    OBSIDIAN_INTEGRATION: "Integration into Obsidian",
     FLASHCARDS: "Flashcards",
-    FLASHCARD_facile_LABEL: "Bouton Facile",
+    FLASHCARD_EASY_LABEL: "Bouton Facile",
     FLASHCARD_GOOD_LABEL: "Bouton Correct",
-    FLASHCARD_difficile_LABEL: "Bouton Difficile",
-    FLASHCARD_facile_DESC: "Changez le texte du bouton Facile",
+    FLASHCARD_HARD_LABEL: "Bouton Difficile",
+    FLASHCARD_EASY_DESC: "Changez le texte du bouton Facile",
     FLASHCARD_GOOD_DESC: "Changez le texte du bouton Correct",
-    FLASHCARD_difficile_DESC: "Changez le texte du bouton Difficile",
+    FLASHCARD_HARD_DESC: "Changez le texte du bouton Difficile",
     FLASHCARD_TAGS: "Tags des flashcards",
     FLASHCARD_TAGS_DESC:
         "Entrez les tags séparés par un espace ou une ligne i.e. #flashcards #paquet2 #paquet3.",
@@ -134,14 +135,19 @@ Ce réglage est le même pour les flashcards et les notes.`,
     OPEN_RANDOM_NOTE_DESC:
         "Si vous désactivez cette option, les notes sont triées par importance (PageRank).",
     AUTO_NEXT_NOTE: "Ouvrir la prochaine note automatiquement après un apprentissage",
-    DISABLE_FILE_MENU_REVIEW_OPTIONS:
-        "Désactiver les options d'apprentissage dans le menu du fichier ex. Apprentissage : Facile Correct Difficile",
-    DISABLE_FILE_MENU_REVIEW_OPTIONS_DESC:
-        "Après avoir désactivé, vous pouvez utiliser les raccourcis clavier pour apprendre. Redémarrez d'abord Obsidian.",
     MAX_N_DAYS_REVIEW_QUEUE: "Jours maximum affichés dans la barre de droite",
     MIN_ONE_DAY: "Le nombre de jours doit être au moins 1.",
     VALID_NUMBER_WARNING: "Entrez un nombre valide.",
     UI_PREFERENCES: "Préférences UI",
+    SHOW_STATUS_BAR: "Show status bar",
+    SHOW_STATUS_BAR_DESC:
+        "Turn this off to hide the flashcard's review status in Obsidian's status bar",
+    SHOW_RIBBON_ICON: "Show icon in the ribbon bar",
+    SHOW_RIBBON_ICON_DESC: "Turn this off to hide the plugin icon from Obsidian's ribbon bar",
+    ENABLE_FILE_MENU_REVIEW_OPTIONS:
+        "Enable the review options in the file menu (e.g. Review: Easy, Good, Hard)",
+    ENABLE_FILE_MENU_REVIEW_OPTIONS_DESC:
+        "If you disable the review options in the file menu, you can review your notes using the plugin commands and, if you defined them, the associated command hotkeys.",
     INITIALLY_EXPAND_SUBDECKS_IN_TREE:
         "Les dossiers de paquets devraient initialement tous être ouverts",
     INITIALLY_EXPAND_SUBDECKS_IN_TREE_DESC:
@@ -155,10 +161,10 @@ Ce réglage est le même pour les flashcards et les notes.`,
     LAPSE_INTERVAL_CHANGE:
         "Changement d'intervalle quand vous indiquez qu'une flashcard/note a été difficile",
     LAPSE_INTERVAL_CHANGE_DESC: "nouvelIntervalle = ancienIntervalle * changementIntervalle / 100.",
-    facile_BONUS: "Bonus Facile",
-    facile_BONUS_DESC:
+    EASY_BONUS: "Bonus Facile",
+    EASY_BONUS_DESC:
         "Le bonus Facile vous permet d'augmenter l'intervalle entre une réponse Correct et une réponse Facile sur une flashcard/note (minimum = 100%).",
-    facile_BONUS_MIN_WARNING: "Le bonus Facile doit être au moins 100.",
+    EASY_BONUS_MIN_WARNING: "Le bonus Facile doit être au moins 100.",
     MAX_INTERVAL: "Intervalle maximum (en jours)",
     MAX_INTERVAL_DESC:
         "Vous permet de mettre une limite maximale sur l'intervalle (par défaut, 100 ans).",


Test patch:
diff --git a/tests/unit/lang/helpers.test.ts b/tests/unit/lang/helpers.test.ts
index 956c3aa..e4d1735 100644
--- a/tests/unit/lang/helpers.test.ts
+++ b/tests/unit/lang/helpers.test.ts
@@ -14,7 +14,7 @@ test("Check that localization entries are consistent across all files", () => {
             const extra_keys = locale_keys.filter((x) => !expected_keys.includes(x));
             expect(
                 extra_keys.length,
-                `The ${language_code} locale includes the following deprecated translations: ${extra_keys}.`,
+                `The ${language_code} locale includes the following translations that are no longer in use: ${extra_keys}.`,
             ).toBe(0);
         }
     });