aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-01-25 12:47:39 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-01-25 12:47:39 +0100
commit9de716591917c23fba3ebb9950c1ee9f09f396db (patch)
treeab54805b0eddbf238ffdc822211f0aa3d2ac7f0b
parent7a4861334ef768f59944ac380927b783b69769ed (diff)
Infos mise à jour plus verbeux et déplacés
Un message explicite indique la fin de la mise à jour. Le message a été déplacé au-dessus de la zone des boutons. Voir #377
-rw-r--r--app/i18n/install.en.php2
-rw-r--r--app/i18n/install.fr.php1
-rw-r--r--p/i/install.php17
3 files changed, 16 insertions, 4 deletions
diff --git a/app/i18n/install.en.php b/app/i18n/install.en.php
index 1c24c7d7e..0311ee9a4 100644
--- a/app/i18n/install.en.php
+++ b/app/i18n/install.en.php
@@ -58,6 +58,8 @@ return array (
'update_start' => 'Start update process',
'update_long' => 'This can take a long time, depending on the size of your database. You may have to wait for this page to time out (~5 minutes) and then refresh this page.',
+ 'update_end' => 'Update process is completed, now you can go to the final step.',
+
'installation_is_ok' => 'The installation process was successful.<br />The final step will now attempt to delete the <kbd>./p/i/install.php</kbd> file and any database backup created during the update process.<br />You may choose to skip this step and delete <kbd>./p/i/install.php</kbd> manually.',
'finish_installation' => 'Complete installation',
diff --git a/app/i18n/install.fr.php b/app/i18n/install.fr.php
index 68927df6d..bb183642f 100644
--- a/app/i18n/install.fr.php
+++ b/app/i18n/install.fr.php
@@ -58,6 +58,7 @@ return array (
'update_start' => 'Lancer la mise à jour',
'update_long' => 'Ce processus peut prendre longtemps, selon la taille de votre base de données. Vous aurez peut-être à attendre que cette page dépasse son temps maximum d’exécution (~5 minutes) puis à la recharger.',
+ 'update_end' => 'La mise à jour est terminée, vous pouvez maintenant passer à l’étape finale.',
'installation_is_ok' => 'L’installation s’est bien passée.<br />La dernière étape va maintenant tenter de supprimer le fichier <kbd>./p/i/install.php</kbd>, ainsi que d’éventuelles copies de base de données créées durant le processus de mise à jour.<br />Vous pouvez choisir de sauter cette étape et de supprimer <kbd>./p/i/install.php</kbd> manuellement.',
'finish_installation' => 'Terminer l’installation',
diff --git a/p/i/install.php b/p/i/install.php
index a8ea75c9c..331eda4ff 100644
--- a/p/i/install.php
+++ b/p/i/install.php
@@ -924,17 +924,26 @@ function printStep4 () {
?>
<form action="index.php?step=4" method="post">
<legend><?php echo _t ('version_update'); ?></legend>
+
+ <?php if (updateDatabase(false)) { ?>
+ <p class="alert"><?php echo _t ('update_long'); ?></p>
+
<div class="form-group form-actions">
<div class="group-controls">
- <?php if (updateDatabase(false)) { ?>
<input type="hidden" name="updateDatabase" value="1" />
<button type="submit" class="btn btn-important"><?php echo _t ('update_start'); ?></button>
- <p><?php echo _t ('update_long'); ?></p>
- <?php } else { ?>
+ </div>
+ </div>
+
+ <?php } else { ?>
+ <p class="alert"><?php echo _t ('update_end'); ?></p>
+
+ <div class="form-group form-actions">
+ <div class="group-controls">
<a class="btn btn-important next-step" href="?step=5"><?php echo _t ('next_step'); ?></a>
- <?php } ?>
</div>
</div>
+ <?php } ?>
</form>
<?php
}