Check lang in install
This commit is contained in:
parent
7227a55044
commit
2bbd0aba16
|
@ -60,6 +60,10 @@ include(PATH_HELPERS.'text.class.php');
|
|||
include(PATH_ABSTRACT.'dbjson.class.php');
|
||||
include(PATH_KERNEL.'dblanguage.class.php');
|
||||
|
||||
// Load language
|
||||
$locale = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
$Language = new dbLanguage($locale);
|
||||
|
||||
// ============================================================================
|
||||
// FUNCTIONS
|
||||
// ============================================================================
|
||||
|
@ -351,7 +355,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Bludit Installer</title>
|
||||
<title><?php echo $Language->get('Bludit Installer') ?></title>
|
||||
|
||||
<link rel="stylesheet" href="./css/kube.min.css">
|
||||
<link rel="stylesheet" href="./css/installer.css">
|
||||
|
@ -363,8 +367,8 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
|
|||
<div class="units-row">
|
||||
<div class="unit-centered unit-60">
|
||||
<div class="main">
|
||||
<h1 class="title">Bludit Installer</h1>
|
||||
<p>Welcome to the Bludit installer</p>
|
||||
<h1 class="title"><?php echo $Language->get('Bludit Installer') ?></h1>
|
||||
<p><?php echo $Language->get('Welcome to the Bludit installer') ?></p>
|
||||
|
||||
<?php
|
||||
$system = checkSystem();
|
||||
|
@ -373,7 +377,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
|
|||
{
|
||||
?>
|
||||
|
||||
<p>Complete the form, choose a password for the username <strong>admin</strong></p>
|
||||
<p><?php echo $Language->get('Complete the form, choose a password for the username « admin »') ?></p>
|
||||
|
||||
<div class="unit-centered unit-40">
|
||||
|
||||
|
@ -392,15 +396,15 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
|
|||
</label>
|
||||
|
||||
<label>
|
||||
<input type="text" name="password" id="jspassword" placeholder="Password, visible field!" class="width-100" autocomplete="off" maxlength="100" value="<?php echo isset($_POST['password'])?$_POST['password']:'' ?>">
|
||||
<input type="text" name="password" id="jspassword" placeholder="<?php echo $Language->get('Password, visible field!') ?>" class="width-100" autocomplete="off" maxlength="100" value="<?php echo isset($_POST['password'])?$_POST['password']:'' ?>">
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input type="text" name="email" id="jsemail" placeholder="Email" class="width-100" autocomplete="off" maxlength="100">
|
||||
<input type="text" name="email" id="jsemail" placeholder="<?php echo $Language->get('Email') ?>" class="width-100" autocomplete="off" maxlength="100">
|
||||
</label>
|
||||
|
||||
<label for="jslanguage">
|
||||
<select id="jslanguage" name="language" class="width-100">
|
||||
<select id="jslanguage" name="language" class="width-100" onchange="this.form.submit()">
|
||||
<?php
|
||||
$htmlOptions = getLanguageList();
|
||||
foreach($htmlOptions as $locale=>$nativeName) {
|
||||
|
@ -411,7 +415,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
|
|||
</label>
|
||||
|
||||
<p>
|
||||
<button class="btn btn-blue width-100">Install</button>
|
||||
<button class="btn btn-blue width-100"><?php echo $Language->get('Install') ?></button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -9,6 +9,11 @@
|
|||
"website": ""
|
||||
},
|
||||
|
||||
"bludit-installer": "Bludit Installer",
|
||||
"welcome-to-the-bludit-installer": "Welcome to the Bludit installer",
|
||||
"complete-the-form,-choose-a-password-for-the-username-«-admin-»": "Complete the form, choose a password for the username « admin »",
|
||||
"password,-visible-field!": "Password, visible field!",
|
||||
"install": "Install",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"confirm-password": "Confirm Password",
|
||||
|
|
|
@ -9,6 +9,11 @@
|
|||
"website": ""
|
||||
},
|
||||
|
||||
"bludit-installer": "Installation de Bludit",
|
||||
"welcome-to-the-bludit-installer": "Bienvenue dans l’assistant d’installation de Bludit",
|
||||
"complete-the-form,-choose-a-password-for-the-username-«-admin-»": "Complétez le formulaire et choisissez un mot de passe pour l’utilisateur « admin »",
|
||||
"password,-visible-field!": "Mot de passe, champ visible !",
|
||||
"install": "Installer",
|
||||
"username": "Nom d’utilisateur",
|
||||
"password": "Mot de passe",
|
||||
"confirm-password": "Confirmation du mot de passe",
|
||||
|
|
Loading…
Reference in New Issue