diff --git a/src/Manager/WiktionaryManager.php b/src/Manager/WiktionaryManager.php index 8eec9ecc77d5a3fc841cc265c9adebf528629dc8..90b0a48277c94107f24b3229d90bed8495f69827 100644 --- a/src/Manager/WiktionaryManager.php +++ b/src/Manager/WiktionaryManager.php @@ -115,6 +115,7 @@ class WiktionaryManager $posData = $pos[$word]; $item = []; + $item['Id'] = $pos['id']; $item['PartOfSpeech'] = $posData['pos']; $morphologicalLabels[] = $posData['pos']; @@ -138,6 +139,7 @@ class WiktionaryManager $result = []; foreach ($wikPronunciations as $wikPronunciation) { $pronunciation = [ + 'id' => $wikPronunciation['id'], 'api' => $wikPronunciation['transcript'], ]; if (isset($wikPronunciation['accent'])) { @@ -155,8 +157,9 @@ class WiktionaryManager public function getDefinitions($wikSenses) { $result = []; - foreach ($wikSenses as $wikSense) { + foreach ($wikSenses as $id => $wikSense) { $definition = [ + 'id' => $id, 'Def' => $wikSense['Definitions'][0]['definition'], ]; diff --git a/templates/lexicon/showNewWords.html.twig b/templates/lexicon/showNewWords.html.twig index ec8234b15f69de88717d129418cc141cf9bf8f29..1b88d0b5dc73203c251fb3ede13b1540d2085a45 100644 --- a/templates/lexicon/showNewWords.html.twig +++ b/templates/lexicon/showNewWords.html.twig @@ -11,6 +11,7 @@ <h1 class=""> {{ lexicon|badgeXl }} {{ "Agora Des Néologismes"|trans }} </h1> + <p>{{ "Ce lexique permet à tous de proposer des mots n'existant ni dans le wiktionnaire ni dans la base de l'application BaLex. Si une entrée obtient 7 votes de alidation, elle sera ajoutée au lexique de BaLex et rendue disponible aux autres utilisateurs."|trans }}</p> <div class="row mt-4"> <div class="col-sm-3">