diff --git a/install.php b/install.php old mode 100644 new mode 100755 index d278b097..e70cf8ae --- a/install.php +++ b/install.php @@ -9,7 +9,7 @@ // Security constant define('BLUDIT', true); - + // Directory separator define('DS', DIRECTORY_SEPARATOR); @@ -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' ) - Bludit Installer + <?php echo $Language->get('Bludit Installer') ?> @@ -363,8 +367,8 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
-

Bludit Installer

-

Welcome to the Bludit installer

+

get('Bludit Installer') ?>

+

get('Welcome to the Bludit installer') ?>

-

Complete the form, choose a password for the username admin

+

get('Complete the form, choose a password for the username « admin »') ?>

@@ -392,15 +396,15 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )

- +

diff --git a/languages/en_US.json b/languages/en_US.json old mode 100644 new mode 100755 index 4fb8fe50..2e7e3dad --- a/languages/en_US.json +++ b/languages/en_US.json @@ -8,7 +8,12 @@ "email": "", "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", diff --git a/languages/es_AR.json b/languages/es_AR.json old mode 100644 new mode 100755 diff --git a/languages/es_VE.json b/languages/es_VE.json old mode 100644 new mode 100755 diff --git a/languages/fr_FR.json b/languages/fr_FR.json index 0aadd039..a4faffd0 100755 --- a/languages/fr_FR.json +++ b/languages/fr_FR.json @@ -8,7 +8,12 @@ "email": "", "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", diff --git a/languages/ja_JP.json b/languages/ja_JP.json old mode 100644 new mode 100755 diff --git a/languages/ru_RU.json b/languages/ru_RU.json old mode 100644 new mode 100755 diff --git a/languages/zh_TW.json b/languages/zh_TW.json old mode 100644 new mode 100755