From 3420db26a583b898c1472ab40b38530faa3c0507 Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Mon, 31 Jul 2017 15:06:21 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B0564=20LoginWebPage=20title=20default=20v?= =?UTF-8?q?alue=20is=20now=20a=20dictionary=20entry=20('UI:Login:Title').?= =?UTF-8?q?=20Only=20english=20&=20french=20are=20available=20for=20now,?= =?UTF-8?q?=20feel=20free=20to=20contribute=20!=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[4850] --- application/loginwebpage.class.inc.php | 7 ++++++- dictionaries/dictionary.itop.ui.php | 1 + dictionaries/fr.dictionary.itop.ui.php | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index bb056d423f..83171d2308 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -56,8 +56,13 @@ class LoginWebPage extends NiceWebPage protected static $m_sLoginFailedMessage = ''; - public function __construct($sTitle = 'iTop Login') + public function __construct($sTitle = null) { + if($sTitle === null) + { + $sTitle = Dict::S('UI:Login:Title'); + } + parent::__construct($sTitle); $this->SetStyleSheet(); $this->add_header("Cache-control: no-cache"); diff --git a/dictionaries/dictionary.itop.ui.php b/dictionaries/dictionary.itop.ui.php index 4371d62e24..416ac97ed0 100644 --- a/dictionaries/dictionary.itop.ui.php +++ b/dictionaries/dictionary.itop.ui.php @@ -318,6 +318,7 @@ Dict::Add('EN US', 'English', 'English', array( Dict::Add('EN US', 'English', 'English', array( 'BooleanLabel:yes' => 'yes', 'BooleanLabel:no' => 'no', + 'UI:Login:Title' => 'iTop login', 'Menu:WelcomeMenu' => 'Welcome', // Duplicated into itop-welcome-itil (will be removed from here...) 'Menu:WelcomeMenu+' => 'Welcome to iTop', // Duplicated into itop-welcome-itil (will be removed from here...) 'Menu:WelcomeMenuPage' => 'Welcome', // Duplicated into itop-welcome-itil (will be removed from here...) diff --git a/dictionaries/fr.dictionary.itop.ui.php b/dictionaries/fr.dictionary.itop.ui.php index 7bb0925101..83d1bea164 100644 --- a/dictionaries/fr.dictionary.itop.ui.php +++ b/dictionaries/fr.dictionary.itop.ui.php @@ -201,6 +201,7 @@ Dict::Add('FR FR', 'French', 'Français', array( 'Class:URP_ClassProjection/Attribute:attribute+' => 'Target attribute code (optional)', 'BooleanLabel:yes' => 'oui', 'BooleanLabel:no' => 'non', + 'UI:Login:Title' => 'iTop login', 'Menu:WelcomeMenu' => 'Bienvenue', // Duplicated into itop-welcome-itil (will be removed from here...) 'Menu:WelcomeMenu+' => 'Bienvenue dans iTop', // Duplicated into itop-welcome-itil (will be removed from here...) 'Menu:WelcomeMenuPage' => 'Bienvenue', // Duplicated into itop-welcome-itil (will be removed from here...)