From 53091fc5dfcea7220425a76e6ef3e0b3e3d62427 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Wed, 21 Dec 2022 09:03:16 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04756=20-=20Ease=20extensibility=20for=20?= =?UTF-8?q?CRUD=20operations=20:=20:globe=5Fwith=5Fmeridians:=20dictionari?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dictionaries/en.dictionary.itop.ui.php | 5 +++++ dictionaries/fr.dictionary.itop.ui.php | 10 ++++++++++ pages/schema.php | 12 ++++++------ 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/dictionaries/en.dictionary.itop.ui.php b/dictionaries/en.dictionary.itop.ui.php index 598cdbc52..0d6f93156 100644 --- a/dictionaries/en.dictionary.itop.ui.php +++ b/dictionaries/en.dictionary.itop.ui.php @@ -826,6 +826,11 @@ We hope you’ll enjoy this version as much as we enjoyed imagining and creating 'UI:Schema:Events:NoEvent' => 'No event defined', 'UI:Schema:Events:Listeners' => 'Event listeners', 'UI:Schema:Events:NoListener' => 'No event listener', + 'UI:Schema:Events:Event' => 'Event', + 'UI:Schema:Events:Description' => 'Description', + 'UI:Schema:Events:Listener' => 'Listener', + 'UI:Schema:Events:Rank' => 'Rank', + 'UI:Schema:Events:Module' => 'Module', 'UI:LinksWidget:Autocomplete+' => 'Type the first 3 characters...', 'UI:Edit:SearchQuery' => 'Select a predefined query', 'UI:Edit:TestQuery' => 'Test query', diff --git a/dictionaries/fr.dictionary.itop.ui.php b/dictionaries/fr.dictionary.itop.ui.php index 70b7dd2f9..1f4d7225c 100644 --- a/dictionaries/fr.dictionary.itop.ui.php +++ b/dictionaries/fr.dictionary.itop.ui.php @@ -802,6 +802,16 @@ Nous espérons que vous aimerez cette version autant que nous avons eu du plaisi 'UI:Schema:DisplaySelector/Code' => 'Code', 'UI:Schema:Attribute/Filter' => 'Filtre', 'UI:Schema:DefaultNullValue' => 'Valeur null par défaut : "%1$s"', + 'UI:Schema:Events' => 'Événements', + 'UI:Schema:Events:Defined' => 'Événements', + 'UI:Schema:Events:NoEvent' => 'Aucun événement défini', + 'UI:Schema:Events:Listeners' => 'Récepteurs d\'événements', + 'UI:Schema:Events:NoListener' => 'Aucun récepteur d\'événements', + 'UI:Schema:Events:Event' => 'Événement', + 'UI:Schema:Events:Description' => 'Description', + 'UI:Schema:Events:Listener' => 'Récepteur', + 'UI:Schema:Events:Rank' => 'Rang', + 'UI:Schema:Events:Module' => 'Module', 'UI:LinksWidget:Autocomplete+' => 'Tapez les 3 premiers caractères...', 'UI:Edit:SearchQuery' => 'Sélectionner une requête prédéfinie', 'UI:Edit:TestQuery' => 'Tester la requête', diff --git a/pages/schema.php b/pages/schema.php index a2206d476..4b1a3a12f 100644 --- a/pages/schema.php +++ b/pages/schema.php @@ -269,8 +269,8 @@ function DisplayEvents(WebPage $oPage, $sClass) { $aEvents = EventService::GetEventsByClass($sClass); $aColumns = [ - 'event' => ['label' => 'Event'], - 'description' => ['label' => 'Description'], + 'event' => ['label' => Dict::S('UI:Schema:Events:Event')], + 'description' => ['label' => Dict::S('UI:Schema:Events:Description')], ]; $aRows = []; foreach ($aEvents as $sEvent => $aEventInfo) { @@ -318,10 +318,10 @@ function DisplayEvents(WebPage $oPage, $sClass) return ($a['event'] > $b['event']) ? 1 : -1; }); $aColumns = [ - 'event' => ['label' => 'Event'], - 'listener' => ['label' => 'Listener'], - 'priority' => ['label' => 'Rank'], - 'module' => ['label' => 'Module'], + 'event' => ['label' => Dict::S('UI:Schema:Events:Event')], + 'listener' => ['label' => Dict::S('UI:Schema:Events:Listener')], + 'priority' => ['label' => Dict::S('UI:Schema:Events:Rank')], + 'module' => ['label' => Dict::S('UI:Schema:Events:Module')], ]; $aRows = []; $oReflectionClass = new ReflectionClass($sClass);