dracosh 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/locales/en.json CHANGED
@@ -702,7 +702,7 @@
702
702
  "slashSwitch": "\"{text}\" would have to be typed, and in the quiz / opens the commands. Change that card first."
703
703
  },
704
704
  "cli": {
705
- "help": "Dracosh: a vocabulary and quiz trainer for your terminal\n\nUsage: dracosh [options]\n dracosh restore [number] list your backups, or bring one back\n\n --deck <name> quiz this deck, this run only (otherwise the one picked in /decks)\n --every <time> pause between questions: 30s, 10m, 1h (default: {interval})\n --no-sound turn sound effects off\n --volume <0-1> sound volume (default: {volume})\n --stats print progress and exit\n --data show where your cards, progress and backups are kept\n --preview browse every animation and screen on made-up data (nothing is saved)\n -y, --yes restore without asking first\n -h, --help show this help\n\nFlags override your saved settings for this run only. Change the saved ones with /settings.\n\nWhile running: Enter submits (with nothing typed it shows the answer, then 1 or 2), \"/\" opens the command menu (/add, /decks, /settings, /stats, /help…),\nEsc quits (clears the line first if you typed something). Ctrl+C also works.\nBetween cards: Enter asks the next one right away, q quits. /help explains the rest.",
705
+ "help": "Dracosh: a vocabulary and quiz trainer for your terminal\n\nUsage: dracosh [options]\n dracosh import <file|-> add cards from a file (.txt, .csv, .tsv, an Anki .apkg or .colpkg, Anki or Quizlet text exports, a .json backup), or \"-\" for standard input\n dracosh export <file> write your decks to .apkg (Anki), .txt, .tsv, .csv or .json (everything)\n dracosh restore [number] list your backups, or bring one back\n\n --deck <name> quiz this deck, this run only (otherwise the one picked in /decks);\n with import or export: the deck to fill or write\n --every <time> pause between questions: 30s, 10m, 1h (default: {interval})\n --no-sound turn sound effects off\n --volume <0-1> sound volume (default: {volume})\n --stats print progress and exit\n --data show where your cards, progress and backups are kept\n --preview browse every animation and screen on made-up data (nothing is saved)\n --update import: cards already there take the file's answers (otherwise you're asked)\n --split import: an answer listing several (\"cat, kitty\") becomes one answer each\n --separator <s> import: what splits the columns: tab, comma, semicolon, pipe, colon, space or a character\n --encoding <e> import: a file that isn't UTF-8, e.g. windows-1250\n --anki import or export: straight from or to a running Anki (AnkiConnect add-on)\n -y, --yes import, export or restore without asking first\n -h, --help show this help\n\nFlags override your saved settings for this run only. Change the saved ones with /settings.\n\nWhile running: Enter submits (with nothing typed it shows the answer, then 1 or 2), \"/\" opens the command menu (/add, /decks, /settings, /stats, /help…),\nEsc quits (clears the line first if you typed something). Ctrl+C also works.\nBetween cards: Enter asks the next one right away, q quits. /help explains the rest.",
706
706
  "badEvery": "Invalid --every \"{value}\". Use e.g. 30s, 10m, 1h.",
707
707
  "badVolume": "Invalid --volume \"{value}\". Use a number from 0 to 1.",
708
708
  "unknownCommand": "Unknown command \"{command}\". See dracosh --help.",
@@ -753,13 +753,16 @@
753
753
  "daily": "daily",
754
754
  "before-reset": "before reset",
755
755
  "before-delete": "before delete",
756
- "before-restore": "before restore"
756
+ "before-restore": "before restore",
757
+ "before-import": "before import"
757
758
  }
758
759
  },
759
760
  "backups": {
760
761
  "one": "{count} backup",
761
762
  "other": "{count} backups"
762
- }
763
+ },
764
+ "unknownOption": "Unknown option {option}. See dracosh --help.",
765
+ "oneFile": "dracosh {command} takes one file at a time."
763
766
  },
764
767
  "tips": {
765
768
  "keys-enter": {
@@ -1077,5 +1080,229 @@
1077
1080
  "learningArticles": "A missing or wrong article in it counts as \"almost\".",
1078
1081
  "savedWithLearning": "Languages of \"{deck}\": {pair}, learning {language}.",
1079
1082
  "learningUmlauts": "In German, so does an umlaut left plain."
1083
+ },
1084
+ "import": {
1085
+ "needFile": "Which file? dracosh import <file> (or - to read the cards from standard input)",
1086
+ "noFile": "There's no file {file}.",
1087
+ "unknownEncoding": "Unknown encoding \"{encoding}\". Try utf-8, utf-16, windows-1250 or windows-1252.",
1088
+ "notUtf8": "{file} isn't saved as UTF-8. Here is its first line with special letters, read as each likely encoding:",
1089
+ "notUtf8Hint": "Run the import again with the one that reads right, or save the file as UTF-8 (in Excel: CSV UTF-8).",
1090
+ "stdin": "standard input",
1091
+ "reading": "Reading {file}: {what}",
1092
+ "encoding": " (read as {encoding})",
1093
+ "formats": {
1094
+ "lines": "Dracosh lines (front = answer; other answer // example)",
1095
+ "dashes": "a list split by dashes (front - answer)",
1096
+ "table": "a table split by {separator}; columns: {columns}",
1097
+ "apkg": "an Anki package"
1098
+ },
1099
+ "separators": {
1100
+ "tab": "tabs",
1101
+ "comma": "commas",
1102
+ "semicolon": "semicolons",
1103
+ "pipe": "\"|\"",
1104
+ "colon": "colons",
1105
+ "space": "spaces"
1106
+ },
1107
+ "column": "{number} {role}",
1108
+ "roles": {
1109
+ "front": "front",
1110
+ "back": "answer",
1111
+ "example": "example",
1112
+ "deck": "deck"
1113
+ },
1114
+ "empty": "There are no cards in it.",
1115
+ "yourDecks": "Your decks: {decks}",
1116
+ "askDeck": "Which deck should they go into? Enter makes a new deck \"{deck}\", or type a name: ",
1117
+ "askDeckEmpty": "Which deck should they go into? Type a name: ",
1118
+ "needDeck": "Say which deck the cards go into: dracosh import - --deck <name>",
1119
+ "intoDeck": "Into {deck} ({cards} now):",
1120
+ "intoNewDeck": "Into a new deck, {deck}:",
1121
+ "more": {
1122
+ "one": "… and 1 more",
1123
+ "other": "… and {count} more"
1124
+ },
1125
+ "counts": {
1126
+ "new": {
1127
+ "one": "1 new card",
1128
+ "other": "{count} new cards"
1129
+ },
1130
+ "same": {
1131
+ "one": "1 already there",
1132
+ "other": "{count} already there"
1133
+ },
1134
+ "changed": {
1135
+ "one": "1 already there, different in the file",
1136
+ "other": "{count} already there, different in the file"
1137
+ }
1138
+ },
1139
+ "problems": {
1140
+ "one": "1 line can't be added:",
1141
+ "other": "{count} lines can't be added:"
1142
+ },
1143
+ "issues": {
1144
+ "noFront": "no front",
1145
+ "noBack": "no answer",
1146
+ "noDeck": "no deck",
1147
+ "twice": "also on line {line}",
1148
+ "slash": "an answer starts with /",
1149
+ "tooLong": "the deck name \"{deck}\" is longer than {max} characters: pick one with --deck",
1150
+ "tour": "\"{deck}\" is the tour deck: pick another name",
1151
+ "noSeparator": "no \" = \" between front and answer",
1152
+ "badDirection": "not a direction: use forward, backward or both",
1153
+ "twiceNote": "twice in the package",
1154
+ "picture": "a picture with parts to guess (image occlusion)",
1155
+ "mediaOnly": "only a picture or a sound, nothing to ask in text"
1156
+ },
1157
+ "ignored": {
1158
+ "one": "1 row has text in a column that isn't read (line {lines}): only front, answer and example are.",
1159
+ "other": "{count} rows have text in columns that aren't read (lines {lines}): only front, answer and example are."
1160
+ },
1161
+ "changedTitle": {
1162
+ "one": "1 card is already there and the file has it differently (now → in the file):",
1163
+ "other": "{count} cards are already there and the file has them differently (now → in the file):"
1164
+ },
1165
+ "updateAsk": {
1166
+ "one": "Update it to the file's version? Its progress stays.",
1167
+ "other": "Update these {count} to the file's version? Their progress stays."
1168
+ },
1169
+ "changedLeft": "They're left as they are (--update takes the file's version).",
1170
+ "nothing": "Nothing to add: the cards are already there, or can't be added as they are.",
1171
+ "directionTitle": "How should {deck} ask?",
1172
+ "directionAsk": "Pick 1, 2 or 3 (Enter: 1): ",
1173
+ "askSuffix": "[Y/n]",
1174
+ "doneNew": {
1175
+ "one": "Made the deck {deck} with 1 card.",
1176
+ "other": "Made the deck {deck} with {count} cards."
1177
+ },
1178
+ "done": {
1179
+ "one": "Added 1 card to {deck}.",
1180
+ "other": "Added {count} cards to {deck}."
1181
+ },
1182
+ "doneUpdated": {
1183
+ "one": " Updated 1.",
1184
+ "other": " Updated {count}."
1185
+ },
1186
+ "undo": "Undo it with \"dracosh restore 1\" (the backup taken just now).",
1187
+ "start": "Practise it with: dracosh --deck {deck}",
1188
+ "inDecks": "Dracosh is running: the new cards are in /decks.",
1189
+ "backupFile": "{file} is a full Dracosh backup: it brings back the cards, progress and settings it holds.",
1190
+ "backupAsk": "Bring it back?",
1191
+ "doneOnlyUpdated": {
1192
+ "one": "Updated 1 card in {deck}.",
1193
+ "other": "Updated {count} cards in {deck}."
1194
+ },
1195
+ "askDeckYours": "Which deck should they go into? Enter: {deck} (yours, {cards}), or type a name: ",
1196
+ "listed": {
1197
+ "one": "1 answer lists several, like \"{example}\".",
1198
+ "other": "{count} answers list several, like \"{example}\"."
1199
+ },
1200
+ "splitAsk": "Take each one as an answer of its own?",
1201
+ "splitHint": "Each stays one answer as written (--split takes each one on its own).",
1202
+ "directionTitleMany": "How should the {count} new decks ask?",
1203
+ "previewOnly": "Preview only, nothing saved. To import: {command}",
1204
+ "confirmAdd": {
1205
+ "one": "Add 1 card?",
1206
+ "other": "Add {count} cards?"
1207
+ },
1208
+ "confirmUpdate": {
1209
+ "one": "Update 1 card?",
1210
+ "other": "Update {count} cards?"
1211
+ },
1212
+ "confirmBoth": {
1213
+ "one": "Add {cards} and update 1?",
1214
+ "other": "Add {cards} and update {count}?"
1215
+ },
1216
+ "tourGone": "The Getting started tour made room for your own deck.",
1217
+ "badSeparator": "Unknown separator \"{value}\": use tab, comma, semicolon, pipe, colon, space or one character.",
1218
+ "languagesGuess": "Languages: {front} → {back} (a guess; change it in /decks)",
1219
+ "languagesUnsure": "Languages: not sure yet (set them in /decks)",
1220
+ "ankiNoHtml": "This Anki export has no HTML, so an answer and its example run together: export again with \"Include HTML and media references\" on.",
1221
+ "no": "n|no",
1222
+ "isFolder": "{file} is a folder: name a file in it.",
1223
+ "noPermission": "Dracosh may not read {file}.",
1224
+ "tooBig": "{file} is over {max} MB: that's not a deck. Split it, or check it's the right file.",
1225
+ "notText": "{file} isn't a text file. Dracosh imports text (Dracosh lines, CSV, TSV, Anki's and Quizlet's text exports) and Anki packages (.apkg, .colpkg).",
1226
+ "problemLine": "line {line} {issue}: {text}",
1227
+ "backupReplaces": "It takes the place of what you have now ({decks} · {cards}).",
1228
+ "mediaLeft": {
1229
+ "one": "1 note has pictures or sounds; only its text is imported.",
1230
+ "other": "{count} notes have pictures or sounds; only their text is imported."
1231
+ },
1232
+ "problemsNotes": {
1233
+ "one": "1 note can't be added:",
1234
+ "other": "{count} notes can't be added:"
1235
+ },
1236
+ "problemNote": "{issue}: {text}",
1237
+ "notAnki": "{file} isn't an Anki package Dracosh can read. In Anki, File → Export → Anki Deck Package (.apkg) makes one.",
1238
+ "needsNode": "Reading an Anki package needs Node {version} or newer (this is {current}). Update Node, or export the deck from Anki as Notes in Plain Text and import that.",
1239
+ "subdecks": "Anki's subdecks become decks of their own here, like \"{deck}\".",
1240
+ "hint": "(hint: {hint})",
1241
+ "notForPackage": "--separator and --encoding are for text files: an Anki package doesn't need them.",
1242
+ "anki": {
1243
+ "empty": "There are no cards in Anki to bring over.",
1244
+ "noDeck": "Anki has no deck \"{deck}\" with cards. Its decks: {decks}",
1245
+ "yourDecks": "Your decks in Anki:",
1246
+ "which": "Which ones? Numbers like 1 3, or Enter for all: ",
1247
+ "asking": "Getting {deck} from Anki…",
1248
+ "read": "From Anki: {decks}"
1249
+ }
1250
+ },
1251
+ "export": {
1252
+ "needFile": "Where to? dracosh export <file>: .apkg (Anki), .txt (Dracosh), .tsv (Anki text), .csv or .json (everything)",
1253
+ "unknownFormat": "{file}: pick the format with the file's ending: .apkg (Anki), .txt (Dracosh), .tsv (Anki text), .csv or .json (everything).",
1254
+ "needsNode": "An Anki package needs Node {version} or newer (this is {current}). Update Node, or export to .tsv instead.",
1255
+ "jsonAll": "A .json export holds everything (all decks, progress and settings): leave --deck out.",
1256
+ "noDecks": "No decks of your own to export yet.",
1257
+ "exists": "{file} is already there. Write over it?",
1258
+ "existsNeedsYes": "{file} is already there: add --yes to write over it.",
1259
+ "wrote": {
1260
+ "one": "Wrote 1 card to {file}.",
1261
+ "other": "Wrote {count} cards to {file}."
1262
+ },
1263
+ "wroteAll": "Wrote your cards, progress and settings to {file}.",
1264
+ "next": {
1265
+ "txt": "Read it back with: dracosh import {file}",
1266
+ "apkg": "In Anki: double-click {file}, or File → Import. Exporting again later updates the same notes.",
1267
+ "tsv": "In Anki: File → Import, pick {file}, and check the note type is Basic (named in your Anki's language).",
1268
+ "csv": "Opens in any spreadsheet; dracosh import {file} reads it back.",
1269
+ "json": "dracosh import {file} brings it all back, on this computer or another one."
1270
+ },
1271
+ "fileHeader": "Dracosh cards, {date}. One card per line: front = answer; other answer // example",
1272
+ "fileHowTo": "Read them back with: dracosh import <this file>",
1273
+ "inData": "That's in Dracosh's own folder ({home}): export somewhere else, so nothing there is written over.",
1274
+ "cantWrite": "Can't write {file}: {error}",
1275
+ "noFolder": "there's no such folder",
1276
+ "wroteCloze": {
1277
+ "one": "Wrote 1 cloze card to {file}.",
1278
+ "other": "Wrote {count} cloze cards to {file}."
1279
+ },
1280
+ "nextCloze": "Import it into Anki the same way, with the note type Cloze: Anki keeps the two kinds apart.",
1281
+ "anki": {
1282
+ "noFile": "--anki sends the cards straight to Anki, without a file: dracosh export --anki, or add --deck <name> for one deck.",
1283
+ "needsYes": "Sending to Anki changes your Anki collection: add --yes to do it without asking.",
1284
+ "ask": "Send to Anki: {cards} ({decks})?",
1285
+ "sent": "Sent to Anki: {cards} ({decks}). Notes it already had from Dracosh are updated.",
1286
+ "fromAnki": {
1287
+ "one": "1 card came from Anki and stays out: Anki has it already.",
1288
+ "other": "{count} cards came from Anki and stay out: Anki has them already."
1289
+ },
1290
+ "nothingNew": "Nothing to send: these cards all came from Anki, which has them already.",
1291
+ "changedNoteType": "The note type {type} in Anki has other fields now ({fields}): updating its notes would lose what's in them. Nothing was sent. To keep both, export to a file (dracosh export cards.apkg) and import it in Anki."
1292
+ },
1293
+ "fromAnkiCopies": {
1294
+ "one": "1 card in it came from Anki: imported into that same Anki, it's a second copy.",
1295
+ "other": "{count} cards in it came from Anki: imported into that same Anki, they're a second copy."
1296
+ }
1297
+ },
1298
+ "anki": {
1299
+ "notRunning": "Anki isn't answering. Open Anki with the AnkiConnect add-on (Tools → Add-ons → Get Add-ons..., code 2055492159, then restart Anki) and try again.",
1300
+ "old": "This AnkiConnect is too old for Dracosh: in Anki, Tools → Add-ons → Check for Updates.",
1301
+ "key": "AnkiConnect asks for its API key: run this again with DRACOSH_ANKI_KEY set to it.",
1302
+ "said": "Anki said: {detail}",
1303
+ "busy": "Anki took the call but isn't answering: it may be busy (syncing, checking its database) or asleep in the background. Bring Anki to the front and try again.",
1304
+ "badUrl": "DRACOSH_ANKI_URL isn't an address Dracosh can use ({detail}): it looks like http://127.0.0.1:8765.",
1305
+ "noDeck": "Anki has no deck \"{detail}\" any more.",
1306
+ "notImported": "Anki didn't take the cards: nothing was sent."
1080
1307
  }
1081
1308
  }
package/locales/fr.json CHANGED
@@ -758,7 +758,7 @@
758
758
  "slashSwitch": "Il faudrait taper « {text} », et dans le quiz / ouvre les commandes. Modifie d'abord cette carte."
759
759
  },
760
760
  "cli": {
761
- "help": "Dracosh : un entraîneur de vocabulaire et de quiz pour ton terminal\n\nUsage : dracosh [options]\n dracosh restore [numéro] liste tes sauvegardes, ou en restaure une\n\n --deck <nom> réviser ce paquet, pour cette fois seulement (sinon celui choisi dans /decks)\n --every <durée> pause entre les questions : 30s, 10m, 1h (par défaut : {interval})\n --no-sound couper les sons\n --volume <0-1> volume du son (par défaut : {volume})\n --stats afficher la progression et quitter\n --data montrer où sont gardées tes cartes, ta progression et tes sauvegardes\n --preview parcourir toutes les animations et tous les écrans sur des données inventées (rien n'est enregistré)\n -y, --yes restaurer sans demander\n -h, --help afficher cette aide\n\nLes options remplacent tes réglages enregistrés pour ce lancement seulement. Change-les pour de bon dans /settings.\n\nPendant l'utilisation : Entrée valide (à vide, elle montre la réponse, puis 1 ou 2), « / » ouvre le menu des commandes (/add, /decks, /settings, /stats, /help…),\nÉchap quitte (efface d'abord ce que tu as tapé). Ctrl+C marche aussi.\nEntre deux cartes : Entrée demande la suivante tout de suite, q quitte. /help explique le reste.",
761
+ "help": "Dracosh : un entraîneur de vocabulaire et de quiz pour ton terminal\n\nUsage : dracosh [options]\n dracosh import <fichier|-> ajouter des cartes depuis un fichier (.txt, .csv, .tsv, un paquet Anki .apkg ou .colpkg, exports texte Anki ou Quizlet, une sauvegarde .json), ou « - » pour l'entrée standard\n dracosh export <fichier> écrire tes paquets en .apkg (Anki), .txt, .tsv, .csv ou .json (tout)\n dracosh restore [numéro] liste tes sauvegardes, ou en restaure une\n\n --deck <nom> réviser ce paquet, pour cette fois seulement (sinon celui choisi dans /decks)\n avec import ou export : le paquet à remplir ou à écrire\n --every <durée> pause entre les questions : 30s, 10m, 1h (par défaut : {interval})\n --no-sound couper les sons\n --volume <0-1> volume du son (par défaut : {volume})\n --stats afficher la progression et quitter\n --data montrer où sont gardées tes cartes, ta progression et tes sauvegardes\n --preview parcourir toutes les animations et tous les écrans sur des données inventées (rien n'est enregistré)\n --update import : les cartes déjà là prennent les réponses du fichier (sinon on te demande)\n --split import : une réponse qui en liste plusieurs (« cat, kitty ») devient une réponse par mot\n --separator <s> import : ce qui sépare les colonnes : tab, comma, semicolon, pipe, colon, space ou un caractère\n --encoding <e> import : un fichier qui n'est pas en UTF-8, p. ex. windows-1252\n --anki import ou export : directement depuis ou vers un Anki ouvert (greffon AnkiConnect)\n -y, --yes importer, exporter ou restaurer sans demander\n -h, --help afficher cette aide\n\nLes options remplacent tes réglages enregistrés pour ce lancement seulement. Change-les pour de bon dans /settings.\n\nPendant l'utilisation : Entrée valide (à vide, elle montre la réponse, puis 1 ou 2), « / » ouvre le menu des commandes (/add, /decks, /settings, /stats, /help…),\nÉchap quitte (efface d'abord ce que tu as tapé). Ctrl+C marche aussi.\nEntre deux cartes : Entrée demande la suivante tout de suite, q quitte. /help explique le reste.",
762
762
  "badEvery": "--every « {value} » invalide. Utilise par ex. 30s, 10m, 1h.",
763
763
  "badVolume": "--volume « {value} » invalide. Utilise un nombre de 0 à 1.",
764
764
  "unknownCommand": "Commande inconnue « {command} ». Voir dracosh --help.",
@@ -814,14 +814,17 @@
814
814
  "daily": "quotidienne",
815
815
  "before-reset": "avant réinit.",
816
816
  "before-delete": "avant suppression",
817
- "before-restore": "avant restauration"
817
+ "before-restore": "avant restauration",
818
+ "before-import": "avant import"
818
819
  }
819
820
  },
820
821
  "backups": {
821
822
  "one": "{count} sauvegarde",
822
823
  "many": "{count} sauvegardes",
823
824
  "other": "{count} sauvegardes"
824
- }
825
+ },
826
+ "unknownOption": "Option inconnue {option}. Voir dracosh --help.",
827
+ "oneFile": "dracosh {command} prend un fichier à la fois."
825
828
  },
826
829
  "tips": {
827
830
  "keys-enter": {
@@ -1144,5 +1147,251 @@
1144
1147
  "learningArticles": "Un article manquant ou faux y compte comme « presque ».",
1145
1148
  "savedWithLearning": "Langues de « {deck} » : {pair}, langue apprise : {language}.",
1146
1149
  "learningUmlauts": "En allemand, un tréma oublié aussi."
1150
+ },
1151
+ "import": {
1152
+ "needFile": "Quel fichier ? dracosh import <fichier> (ou - pour lire les cartes sur l'entrée standard)",
1153
+ "noFile": "Le fichier {file} n'existe pas.",
1154
+ "unknownEncoding": "Encodage inconnu « {encoding} ». Essaie utf-8, utf-16, windows-1250 ou windows-1252.",
1155
+ "notUtf8": "{file} n'est pas enregistré en UTF-8. Voici sa première ligne avec des caractères spéciaux, lue dans chaque encodage probable :",
1156
+ "notUtf8Hint": "Relance l'import avec celui qui se lit bien, ou enregistre le fichier en UTF-8 (dans Excel : CSV UTF-8).",
1157
+ "stdin": "l'entrée standard",
1158
+ "reading": "Lecture de {file} : {what}",
1159
+ "encoding": " (lu en {encoding})",
1160
+ "formats": {
1161
+ "lines": "des lignes Dracosh (recto = réponse; autre réponse // exemple)",
1162
+ "dashes": "une liste avec des tirets (recto - réponse)",
1163
+ "table": "un tableau séparé par des {separator} ; colonnes : {columns}",
1164
+ "apkg": "un paquet Anki"
1165
+ },
1166
+ "separators": {
1167
+ "tab": "tabulations",
1168
+ "comma": "virgules",
1169
+ "semicolon": "points-virgules",
1170
+ "pipe": "« | »",
1171
+ "colon": "deux-points",
1172
+ "space": "espaces"
1173
+ },
1174
+ "column": "{number} {role}",
1175
+ "roles": {
1176
+ "front": "recto",
1177
+ "back": "réponse",
1178
+ "example": "exemple",
1179
+ "deck": "paquet"
1180
+ },
1181
+ "empty": "Il ne contient aucune carte.",
1182
+ "yourDecks": "Tes paquets : {decks}",
1183
+ "askDeck": "Dans quel paquet ? Entrée crée un nouveau paquet « {deck} », ou tape un nom : ",
1184
+ "askDeckEmpty": "Dans quel paquet ? Tape un nom : ",
1185
+ "needDeck": "Indique le paquet des cartes : dracosh import - --deck <nom>",
1186
+ "intoDeck": "Dans {deck} ({cards} pour l'instant) :",
1187
+ "intoNewDeck": "Dans un nouveau paquet, {deck} :",
1188
+ "more": {
1189
+ "one": "… et 1 de plus",
1190
+ "many": "… et {count} de plus",
1191
+ "other": "… et {count} de plus"
1192
+ },
1193
+ "counts": {
1194
+ "new": {
1195
+ "one": "1 nouvelle carte",
1196
+ "many": "{count} nouvelles cartes",
1197
+ "other": "{count} nouvelles cartes"
1198
+ },
1199
+ "same": {
1200
+ "one": "1 déjà là",
1201
+ "many": "{count} déjà là",
1202
+ "other": "{count} déjà là"
1203
+ },
1204
+ "changed": {
1205
+ "one": "1 déjà là, différente dans le fichier",
1206
+ "many": "{count} déjà là, différentes dans le fichier",
1207
+ "other": "{count} déjà là, différentes dans le fichier"
1208
+ }
1209
+ },
1210
+ "problems": {
1211
+ "one": "1 ligne ne peut pas être ajoutée :",
1212
+ "many": "{count} lignes ne peuvent pas être ajoutées :",
1213
+ "other": "{count} lignes ne peuvent pas être ajoutées :"
1214
+ },
1215
+ "issues": {
1216
+ "noFront": "pas de recto",
1217
+ "noBack": "pas de réponse",
1218
+ "noDeck": "pas de paquet",
1219
+ "twice": "aussi à la ligne {line}",
1220
+ "slash": "une réponse commence par /",
1221
+ "tooLong": "le nom de paquet « {deck} » dépasse {max} caractères : choisis-en un avec --deck",
1222
+ "tour": "« {deck} » est le paquet de découverte : choisis un autre nom",
1223
+ "noSeparator": "pas de « = » entre le recto et la réponse",
1224
+ "badDirection": "pas un sens : utilise forward, backward ou both",
1225
+ "twiceNote": "deux fois dans le paquet",
1226
+ "picture": "une image avec des parties à deviner (schéma à remplir)",
1227
+ "mediaOnly": "seulement une image ou un son, pas de texte à demander"
1228
+ },
1229
+ "ignored": {
1230
+ "one": "1 ligne a du texte dans une colonne qui n'est pas lue (ligne {lines}) : seuls le recto, la réponse et l'exemple le sont.",
1231
+ "many": "{count} lignes ont du texte dans des colonnes qui ne sont pas lues (lignes {lines}) : seuls le recto, la réponse et l'exemple le sont.",
1232
+ "other": "{count} lignes ont du texte dans des colonnes qui ne sont pas lues (lignes {lines}) : seuls le recto, la réponse et l'exemple le sont."
1233
+ },
1234
+ "changedTitle": {
1235
+ "one": "1 carte est déjà là et le fichier l'a autrement (maintenant → dans le fichier) :",
1236
+ "many": "{count} cartes sont déjà là et le fichier les a autrement (maintenant → dans le fichier) :",
1237
+ "other": "{count} cartes sont déjà là et le fichier les a autrement (maintenant → dans le fichier) :"
1238
+ },
1239
+ "updateAsk": {
1240
+ "one": "La mettre à jour avec la version du fichier ? Sa progression reste.",
1241
+ "many": "Mettre ces {count} à jour avec la version du fichier ? Leur progression reste.",
1242
+ "other": "Mettre ces {count} à jour avec la version du fichier ? Leur progression reste."
1243
+ },
1244
+ "changedLeft": "Elles restent telles quelles (--update prend la version du fichier).",
1245
+ "nothing": "Rien à ajouter : les cartes sont déjà là, ou ne peuvent pas être ajoutées telles quelles.",
1246
+ "directionTitle": "Comment {deck} doit-il interroger ?",
1247
+ "directionAsk": "Choisis 1, 2 ou 3 (Entrée : 1) : ",
1248
+ "askSuffix": "[O/n]",
1249
+ "doneNew": {
1250
+ "one": "Paquet {deck} créé avec 1 carte.",
1251
+ "many": "Paquet {deck} créé avec {count} cartes.",
1252
+ "other": "Paquet {deck} créé avec {count} cartes."
1253
+ },
1254
+ "done": {
1255
+ "one": "1 carte ajoutée à {deck}.",
1256
+ "many": "{count} cartes ajoutées à {deck}.",
1257
+ "other": "{count} cartes ajoutées à {deck}."
1258
+ },
1259
+ "doneUpdated": {
1260
+ "one": " 1 mise à jour.",
1261
+ "many": " {count} mises à jour.",
1262
+ "other": " {count} mises à jour."
1263
+ },
1264
+ "doneOnlyUpdated": {
1265
+ "one": "1 carte mise à jour dans {deck}.",
1266
+ "many": "{count} cartes mises à jour dans {deck}.",
1267
+ "other": "{count} cartes mises à jour dans {deck}."
1268
+ },
1269
+ "undo": "Pour annuler : « dracosh restore 1 » (la sauvegarde faite à l'instant).",
1270
+ "start": "Pour réviser : dracosh --deck {deck}",
1271
+ "inDecks": "Dracosh est ouvert : les nouvelles cartes sont dans /decks.",
1272
+ "backupFile": "{file} est une sauvegarde complète de Dracosh : elle restaure les cartes, la progression et les réglages qu'elle contient.",
1273
+ "backupAsk": "La restaurer ?",
1274
+ "askDeckYours": "Dans quel paquet ? Entrée : {deck} (le tien, {cards}), ou tape un nom : ",
1275
+ "listed": {
1276
+ "one": "1 réponse en liste plusieurs, comme « {example} ».",
1277
+ "many": "{count} réponses en listent plusieurs, comme « {example} ».",
1278
+ "other": "{count} réponses en listent plusieurs, comme « {example} »."
1279
+ },
1280
+ "splitAsk": "Prendre chacune comme une réponse à part ?",
1281
+ "splitHint": "Chacune reste une seule réponse, telle qu'écrite (--split les sépare).",
1282
+ "directionTitleMany": "Comment les {count} nouveaux paquets doivent-ils interroger ?",
1283
+ "previewOnly": "Simple aperçu, rien n'est enregistré. Pour importer : {command}",
1284
+ "confirmAdd": {
1285
+ "one": "Ajouter 1 carte ?",
1286
+ "many": "Ajouter {count} cartes ?",
1287
+ "other": "Ajouter {count} cartes ?"
1288
+ },
1289
+ "confirmUpdate": {
1290
+ "one": "Mettre à jour 1 carte ?",
1291
+ "many": "Mettre à jour {count} cartes ?",
1292
+ "other": "Mettre à jour {count} cartes ?"
1293
+ },
1294
+ "confirmBoth": {
1295
+ "one": "Ajouter {cards} et en mettre 1 à jour ?",
1296
+ "many": "Ajouter {cards} et en mettre {count} à jour ?",
1297
+ "other": "Ajouter {cards} et en mettre {count} à jour ?"
1298
+ },
1299
+ "tourGone": "Le paquet de découverte a laissé la place au tien.",
1300
+ "badSeparator": "Séparateur inconnu « {value} » : utilise tab, comma, semicolon, pipe, colon, space ou un caractère.",
1301
+ "languagesGuess": "Langues : {front} → {back} (une supposition ; à changer dans /decks)",
1302
+ "languagesUnsure": "Langues : pas encore sûr (à régler dans /decks)",
1303
+ "ankiNoHtml": "Cet export Anki n'a pas de HTML, la réponse et son exemple se mélangent : exporte de nouveau avec l'option HTML activée.",
1304
+ "no": "n|non|no",
1305
+ "isFolder": "{file} est un dossier : indique un fichier dedans.",
1306
+ "noPermission": "Dracosh n'a pas le droit de lire {file}.",
1307
+ "tooBig": "{file} dépasse {max} Mo : ce n'est pas un paquet. Découpe-le, ou vérifie que c'est le bon fichier.",
1308
+ "notText": "{file} n'est pas un fichier texte. Dracosh importe du texte (lignes Dracosh, CSV, TSV, exports texte d'Anki et de Quizlet) et les paquets Anki (.apkg, .colpkg).",
1309
+ "problemLine": "ligne {line} {issue} : {text}",
1310
+ "backupReplaces": "Elle remplace ce que tu as maintenant ({decks} · {cards}).",
1311
+ "mediaLeft": {
1312
+ "one": "1 note a des images ou des sons ; seul son texte est importé.",
1313
+ "many": "{count} notes ont des images ou des sons ; seul leur texte est importé.",
1314
+ "other": "{count} notes ont des images ou des sons ; seul leur texte est importé."
1315
+ },
1316
+ "problemsNotes": {
1317
+ "one": "1 note ne peut pas être ajoutée :",
1318
+ "many": "{count} notes ne peuvent pas être ajoutées :",
1319
+ "other": "{count} notes ne peuvent pas être ajoutées :"
1320
+ },
1321
+ "problemNote": "{issue} : {text}",
1322
+ "notAnki": "{file} n'est pas un paquet Anki que Dracosh sait lire. Dans Anki, Fichier → Exporter → Paquet de paquets Anki (.apkg) en crée un.",
1323
+ "needsNode": "Lire un paquet Anki demande Node {version} ou plus récent (ici : {current}). Mets Node à jour, ou exporte le paquet depuis Anki en « Notes en texte » et importe ce fichier.",
1324
+ "subdecks": "Les sous-paquets d'Anki deviennent ici des paquets à part, comme « {deck} ».",
1325
+ "hint": "(indice : {hint})",
1326
+ "notForPackage": "--separator et --encoding servent aux fichiers texte : un paquet Anki n'en a pas besoin.",
1327
+ "anki": {
1328
+ "empty": "Il n'y a pas de cartes à reprendre dans Anki.",
1329
+ "noDeck": "Anki n'a pas de paquet « {deck} » avec des cartes. Ses paquets : {decks}",
1330
+ "yourDecks": "Tes paquets dans Anki :",
1331
+ "which": "Lesquels ? Des numéros comme 1 3, ou Entrée pour tous : ",
1332
+ "asking": "Récupération de {deck} depuis Anki…",
1333
+ "read": "Depuis Anki : {decks}"
1334
+ }
1335
+ },
1336
+ "export": {
1337
+ "needFile": "Où ? dracosh export <fichier> : .apkg (Anki), .txt (Dracosh), .tsv (texte pour Anki), .csv ou .json (tout)",
1338
+ "unknownFormat": "{file} : le format dépend de l'extension : .apkg (Anki), .txt (Dracosh), .tsv (texte pour Anki), .csv ou .json (tout).",
1339
+ "needsNode": "Un paquet Anki demande Node {version} ou plus récent (ici : {current}). Mets Node à jour, ou exporte plutôt en .tsv.",
1340
+ "jsonAll": "Un export .json contient tout (tous les paquets, la progression et les réglages) : enlève --deck.",
1341
+ "noDecks": "Pas encore de paquet à toi à exporter.",
1342
+ "exists": "{file} existe déjà. L'écraser ?",
1343
+ "existsNeedsYes": "{file} existe déjà : ajoute --yes pour l'écraser.",
1344
+ "wrote": {
1345
+ "one": "1 carte écrite dans {file}.",
1346
+ "many": "{count} cartes écrites dans {file}.",
1347
+ "other": "{count} cartes écrites dans {file}."
1348
+ },
1349
+ "wroteAll": "Cartes, progression et réglages écrits dans {file}.",
1350
+ "next": {
1351
+ "txt": "Pour le relire : dracosh import {file}",
1352
+ "apkg": "Dans Anki : double-clique sur {file}, ou Fichier → Importer. Un nouvel export mettra à jour les mêmes notes.",
1353
+ "tsv": "Dans Anki : Fichier → Importer, choisis {file} et vérifie que le type de note est Basique.",
1354
+ "csv": "S'ouvre dans n'importe quel tableur ; dracosh import {file} le relit.",
1355
+ "json": "dracosh import {file} restaure tout, sur cet ordinateur ou un autre."
1356
+ },
1357
+ "fileHeader": "Cartes Dracosh, {date}. Une carte par ligne : recto = réponse; autre réponse // exemple",
1358
+ "fileHowTo": "Pour les relire : dracosh import <ce fichier>",
1359
+ "inData": "C'est le dossier de Dracosh ({home}) : exporte ailleurs, pour que rien n'y soit écrasé.",
1360
+ "cantWrite": "Impossible d'écrire {file} : {error}",
1361
+ "noFolder": "ce dossier n'existe pas",
1362
+ "wroteCloze": {
1363
+ "one": "1 carte à trous écrite dans {file}.",
1364
+ "many": "{count} cartes à trous écrites dans {file}.",
1365
+ "other": "{count} cartes à trous écrites dans {file}."
1366
+ },
1367
+ "nextCloze": "Importe-le dans Anki de la même façon, avec le type de note Texte à trous : Anki garde les deux sortes à part.",
1368
+ "anki": {
1369
+ "noFile": "--anki envoie les cartes directement à Anki, sans fichier : dracosh export --anki, ou ajoute --deck <nom> pour un seul paquet.",
1370
+ "needsYes": "L'envoi à Anki modifie ta collection Anki : ajoute --yes pour le faire sans demander.",
1371
+ "ask": "Envoyer à Anki : {cards} ({decks}) ?",
1372
+ "sent": "Envoyé à Anki : {cards} ({decks}). Les notes de Dracosh qu'Anki avait déjà sont mises à jour.",
1373
+ "fromAnki": {
1374
+ "one": "1 carte vient d'Anki et reste de côté : Anki l'a déjà.",
1375
+ "many": "{count} cartes viennent d'Anki et restent de côté : Anki les a déjà.",
1376
+ "other": "{count} cartes viennent d'Anki et restent de côté : Anki les a déjà."
1377
+ },
1378
+ "nothingNew": "Rien à envoyer : toutes ces cartes viennent d'Anki, qui les a déjà.",
1379
+ "changedNoteType": "Le type de note {type} a maintenant d'autres champs dans Anki ({fields}) : mettre ses notes à jour perdrait leur contenu. Rien n'a été envoyé. Pour garder les deux, exporte dans un fichier (dracosh export cartes.apkg) et importe-le dans Anki."
1380
+ },
1381
+ "fromAnkiCopies": {
1382
+ "one": "1 carte du fichier vient d'Anki : importée dans ce même Anki, ce sera un doublon.",
1383
+ "many": "{count} cartes du fichier viennent d'Anki : importées dans ce même Anki, ce seront des doublons.",
1384
+ "other": "{count} cartes du fichier viennent d'Anki : importées dans ce même Anki, ce seront des doublons."
1385
+ }
1386
+ },
1387
+ "anki": {
1388
+ "notRunning": "Anki ne répond pas. Ouvre Anki avec le greffon AnkiConnect (Outils → Greffons → Acquérir des greffons..., code 2055492159, puis redémarre Anki) et réessaie.",
1389
+ "old": "Cet AnkiConnect est trop ancien pour Dracosh : dans Anki, Outils → Greffons → Vérifier les mises à jour.",
1390
+ "key": "AnkiConnect demande sa clé API : relance avec DRACOSH_ANKI_KEY défini.",
1391
+ "said": "Anki répond : {detail}",
1392
+ "busy": "Anki a pris l'appel mais ne répond pas : il est peut-être occupé (synchronisation, vérification de la base) ou endormi en arrière-plan. Mets Anki au premier plan et réessaie.",
1393
+ "badUrl": "DRACOSH_ANKI_URL n'est pas une adresse que Dracosh peut utiliser ({detail}) : elle ressemble à http://127.0.0.1:8765.",
1394
+ "noDeck": "Anki n'a plus de paquet « {detail} ».",
1395
+ "notImported": "Anki n'a pas pris les cartes : rien n'a été envoyé."
1147
1396
  }
1148
1397
  }