From 39de56a91b1c6265693c7451d00a68a08bd08cb8 Mon Sep 17 00:00:00 2001 From: CAPEL Maxime <83071634+fortyup@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:16:32 +0100 Subject: [PATCH] Change typography --- src/main/kotlin/main/Glossary.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/main/Glossary.kt b/src/main/kotlin/main/Glossary.kt index 05bf36b..e408af8 100644 --- a/src/main/kotlin/main/Glossary.kt +++ b/src/main/kotlin/main/Glossary.kt @@ -335,7 +335,7 @@ fun selectFile(extensions: Set, onFileSelected: (String) -> Unit) { fun exportToCSV(glossary: Glossary, csvFilePath: String) { val glossary = loadDatasFromFile(glossary.jsonFilePath) val csvContent = buildString { - appendLine("Mot;Description;Contexte principal;Contexte 2;Lié à;Synonyme;Antonyme;") + appendLine("Mot;Description;Contexte principal;Contexte secondaire;Lié à;Synonyme;Antonyme;") glossary.forEach { entry -> appendLine( "${entry.name};${entry.description};${entry.mainContext};" + @@ -393,7 +393,7 @@ fun importCSVFile(glossary : Glossary, filePath: String) { name = mot["Mot"]!!, description = mot["Description"]!!, mainContext = mot["Contexte principal"]!!, - secondaryContext = mot["Contexte 2"]!!, + secondaryContext = mot["Contexte secondaire"]!!, relatedTo = mot["Lié à"]!!, synonymous = mot["Synonyme"]!!, antonym = mot["Antonyme"]!! @@ -462,7 +462,7 @@ private fun importXLSXFile(glossary: Glossary, cheminFichier: String) { name = line["Mot"] ?: "", description = line["Description"] ?: "", mainContext = line["Contexte principal"] ?: "", - secondaryContext = line["Contexte 2"] ?: "", + secondaryContext = line["Contexte secondaire"] ?: "", relatedTo = line["Lié à"] ?: "", synonymous = line["Synonyme"] ?: "", antonym = line["Antonyme"] ?: "" @@ -484,7 +484,7 @@ fun verifyRequiredFields(mot: Map): Boolean { "Mot", "Description", "Contexte principal", - "Contexte 2", + "Contexte secondaire", "Lié à", "Synonyme", "Antonyme"