Update install documentation link to localized version for French, Spanish and Italian

1.10.x
Yannick Warnier 10 years ago
parent 407a226209
commit 3887d26ed8
  1. 19
      main/install/index.php

@ -66,10 +66,25 @@ if (!array_key_exists($install_language, get_language_folder_list())) {
$install_language = 'english'; $install_language = 'english';
} }
$installationGuideLink = '../../documentation/installation_guide.html';
// Loading language files. // Loading language files.
require api_get_path(SYS_LANG_PATH).'english/trad4all.inc.php'; require api_get_path(SYS_LANG_PATH).'english/trad4all.inc.php';
if ($install_language != 'english') { if ($install_language != 'english') {
include_once api_get_path(SYS_LANG_PATH).$install_language.'/trad4all.inc.php'; include_once api_get_path(SYS_LANG_PATH).$install_language.'/trad4all.inc.php';
switch ($install_language) {
case 'french':
$installationGuideLink = '../../documentation/installation_guide_fr_FR.html';
break;
case 'spanish':
$installationGuideLink = '../../documentation/installation_guide_es_ES.html';
break;
case 'italian':
$installationGuideLink = '../../documentation/installation_guide_it_IT.html';
break;
default:
break;
}
} }
// These global variables must be set for proper working of the function get_lang(...) during the installation. // These global variables must be set for proper working of the function get_lang(...) during the installation.
@ -270,6 +285,8 @@ if (!$_POST) {
$current_step = 5; $current_step = 5;
} elseif (!empty($_POST['step5'])) { } elseif (!empty($_POST['step5'])) {
$current_step = 6; $current_step = 6;
} elseif (@$_POST['step6']) {
$current_step = 7;
} }
// Managing the $encryptPassForm // Managing the $encryptPassForm
@ -388,7 +405,7 @@ if ($encryptPassForm == '1') {
</ol> </ol>
</div> </div>
<div id="note"> <div id="note">
<a class="btn btn-default" href="../../documentation/installation_guide.html" target="_blank"> <a class="btn btn-default" href="<?php echo $installationGuideLink; ?>" target="_blank">
<i class="fa fa-file-text-o"></i> <?php echo get_lang('ReadTheInstallationGuide'); ?> <i class="fa fa-file-text-o"></i> <?php echo get_lang('ReadTheInstallationGuide'); ?>
</a> </a>
</div> </div>

Loading…
Cancel
Save