Skip to content

Commit

Permalink
Update install documentation link to localized version for French, Sp…
Browse files Browse the repository at this point in the history
…anish and Italian
  • Loading branch information
ywarnier committed Aug 21, 2015
1 parent 407a226 commit 3887d26
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion main/install/index.php
Expand Up @@ -66,10 +66,25 @@
$install_language = 'english';
}

$installationGuideLink = '../../documentation/installation_guide.html';

// Loading language files.
require api_get_path(SYS_LANG_PATH).'english/trad4all.inc.php';
if ($install_language != 'english') {
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.
Expand Down Expand Up @@ -270,6 +285,8 @@
$current_step = 5;
} elseif (!empty($_POST['step5'])) {
$current_step = 6;
} elseif (@$_POST['step6']) {
$current_step = 7;
}

// Managing the $encryptPassForm
Expand Down Expand Up @@ -388,7 +405,7 @@ function send_contact_information() {
</ol>
</div>
<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'); ?>
</a>
</div>
Expand Down

0 comments on commit 3887d26

Please sign in to comment.