From caf939bf5835556317f457cd33e666e2de1d7815 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 13 May 2022 14:06:11 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02504=20N=C2=B03169=20N=C2=B05102=20Add?= =?UTF-8?q?=20dictionaries?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dictionaries/en.dictionary.itop.ui.php | 16 ++++++++++++++++ .../OAuth/OAuthClientResultDisplayConf.php | 2 +- .../backoffice/oauth/DisplayConfig.html.twig | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/dictionaries/en.dictionary.itop.ui.php b/dictionaries/en.dictionary.itop.ui.php index 6206470ee..11d926e88 100644 --- a/dictionaries/en.dictionary.itop.ui.php +++ b/dictionaries/en.dictionary.itop.ui.php @@ -1599,3 +1599,19 @@ Dict::Add('EN US', 'English', 'English', array( 'UI:Newsroom:DisplayMessagesFor_Provider' => 'Display messages from %1$s', 'UI:Newsroom:DisplayAtMost_X_Messages' => 'Display up to %1$s messages in the %2$s menu.', )); + + +// OAuth +Dict::Add('EN US', 'English', 'English', array( + 'Menu:OAuthWizardMenu' => 'OAuth 2.0', + 'UI:OAuth:Wizard:Page:Title' => 'OAuth 2.0 Configuration', + 'UI:OAuth:Wizard:Form:Panel:Title' => 'OAuth 2.0 Configuration', + 'UI:OAuth:Wizard:Form:Input:ClientId:Label' => 'Client Id', + 'UI:OAuth:Wizard:Form:Input:ClientSecret:Label' => 'Client Secret', + 'UI:OAuth:Wizard:Form:Input:Scope:Label' => 'Scope', + 'UI:OAuth:Wizard:Form:Input:Additional:Label' => 'Additional parameters', + 'UI:OAuth:Wizard:Form:Input:RedirectUri:Label' => 'Redirect Uri', + 'UI:OAuth:Wizard:Form:Button:Submit:Label' => 'Authentication', + 'UI:OAuth:Wizard:ResultConf:Panel:Title' => 'Configuration for SMTP', + 'UI:OAuth:Wizard:ResultConf:Panel:Description' => 'Paste this content into your configuration file to use this OAuth connection for your outgoing emails', +)); \ No newline at end of file diff --git a/sources/Core/Authentication/Client/OAuth/OAuthClientResultDisplayConf.php b/sources/Core/Authentication/Client/OAuth/OAuthClientResultDisplayConf.php index 36ae42a26..a2e3c6507 100644 --- a/sources/Core/Authentication/Client/OAuth/OAuthClientResultDisplayConf.php +++ b/sources/Core/Authentication/Client/OAuth/OAuthClientResultDisplayConf.php @@ -12,7 +12,7 @@ class OAuthClientResultDisplayConf implements IOAuthClientResultDisplay $oConfResultPanel = new Panel(Dict::S('UI:OAuth:Wizard:ResultConf:Panel:Title'), [],Panel::DEFAULT_COLOR_SCHEME, 'ibo-oauth-wizard--conf--panel'); $oConfResultPanel->AddCSSClass('ibo-oauth-wizard--result--panel'); $oConfResultPanel->SetIsCollapsible(true); - $oConfResultPanel->AddHtml('

'.Dict::S('UI:OAuthEmailSynchro:Wizard:ResultConf:Panel:Description').'

'); + $oConfResultPanel->AddHtml('

'.Dict::S('UI:OAuth:Wizard:ResultConf:Panel:Description').'

'); $oConfResultPanel->AddHtml('
'); return $oConfResultPanel; } diff --git a/templates/pages/backoffice/oauth/DisplayConfig.html.twig b/templates/pages/backoffice/oauth/DisplayConfig.html.twig index ed018faee..185943da0 100644 --- a/templates/pages/backoffice/oauth/DisplayConfig.html.twig +++ b/templates/pages/backoffice/oauth/DisplayConfig.html.twig @@ -3,6 +3,6 @@
{{ 'UI:OAuth:Wizard:ResultConf:Panel:Title'|dict_s }} -

{{ 'UI:OAuthEmailSynchro:Wizard:ResultConf:Panel:Description'|dict_s }}

+

{{ 'UI:OAuth:Wizard:ResultConf:Panel:Description'|dict_s }}

\ No newline at end of file