N°564 LoginWebPage title default value is now a dictionary entry ('UI:Login:Title'). Only english & french are available for now, feel free to contribute ! :)

SVN:trunk[4850]
This commit is contained in:
Guillaume Lajarige
2017-07-31 15:06:21 +00:00
parent c27cafb02f
commit 3420db26a5
3 changed files with 8 additions and 1 deletions

View File

@@ -56,8 +56,13 @@ class LoginWebPage extends NiceWebPage
protected static $m_sLoginFailedMessage = ''; 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); parent::__construct($sTitle);
$this->SetStyleSheet(); $this->SetStyleSheet();
$this->add_header("Cache-control: no-cache"); $this->add_header("Cache-control: no-cache");

View File

@@ -318,6 +318,7 @@ Dict::Add('EN US', 'English', 'English', array(
Dict::Add('EN US', 'English', 'English', array( Dict::Add('EN US', 'English', 'English', array(
'BooleanLabel:yes' => 'yes', 'BooleanLabel:yes' => 'yes',
'BooleanLabel:no' => 'no', 'BooleanLabel:no' => 'no',
'UI:Login:Title' => 'iTop login',
'Menu:WelcomeMenu' => 'Welcome', // Duplicated into itop-welcome-itil (will be removed from here...) '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: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...) 'Menu:WelcomeMenuPage' => 'Welcome', // Duplicated into itop-welcome-itil (will be removed from here...)

View File

@@ -201,6 +201,7 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Class:URP_ClassProjection/Attribute:attribute+' => 'Target attribute code (optional)', 'Class:URP_ClassProjection/Attribute:attribute+' => 'Target attribute code (optional)',
'BooleanLabel:yes' => 'oui', 'BooleanLabel:yes' => 'oui',
'BooleanLabel:no' => 'non', 'BooleanLabel:no' => 'non',
'UI:Login:Title' => 'iTop login',
'Menu:WelcomeMenu' => 'Bienvenue', // Duplicated into itop-welcome-itil (will be removed from here...) '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: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...) 'Menu:WelcomeMenuPage' => 'Bienvenue', // Duplicated into itop-welcome-itil (will be removed from here...)