summaryrefslogtreecommitdiff
path: root/public/install.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-22 14:54:10 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-22 14:54:10 +0100
commitb90a6be35f8996b27719cf493b47d1592d09ae6d (patch)
tree00c9bdf03cf0fae106e228e15fcf8e6a8bcfd703 /public/install.php
parent7ad124c69f774a96663132b24c8e309142d57b01 (diff)
i18n install.php pour mise à jour
Termine https://github.com/marienfressinaud/FreshRSS/issues/255 Sépare i18n de install.php dans des fichiers dédiés
Diffstat (limited to 'public/install.php')
-rw-r--r--public/install.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/public/install.php b/public/install.php
index 2823a269a..133e7fbe4 100644
--- a/public/install.php
+++ b/public/install.php
@@ -155,8 +155,13 @@ function initTranslate () {
$actual = isset($_SESSION['language']) ? $_SESSION['language'] : getBetterLanguage('en');
$file = APP_PATH . '/i18n/' . $actual . '.php';
- if (file_exists ($file)) {
- $translates = include ($file);
+ if (file_exists($file)) {
+ $translates = array_merge($translates, include($file));
+ }
+
+ $file = APP_PATH . '/i18n/install.' . $actual . '.php';
+ if (file_exists($file)) {
+ $translates = array_merge($translates, include($file));
}
}
function getBetterLanguage ($fallback) {
@@ -888,12 +893,13 @@ function printStep3 () {
function printStep4 () {
?>
<form action="index.php?step=4" method="post">
- <legend><?php echo _t ('bdd_update'); ?></legend>
+ <legend><?php echo _t ('version_update'); ?></legend>
<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 ('start'); ?></button> (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.)
+ <button type="submit" class="btn btn-important"><?php echo _t ('update_start'); ?></button>
+ <p><?php echo _t ('update_long'); ?></p>
<?php } else { ?>
<a class="btn btn-important next-step" href="?step=5"><?php echo _t ('next_step'); ?></a>
<?php } ?>
@@ -970,7 +976,7 @@ case 6:
<li class="item<?php echo STEP == 1 ? ' active' : ''; ?>"><a href="?step=1"><?php echo _t ('checks'); ?></a></li>
<li class="item<?php echo STEP == 2 ? ' active' : ''; ?>"><a href="?step=2"><?php echo _t ('general_configuration'); ?></a></li>
<li class="item<?php echo STEP == 3 ? ' active' : ''; ?>"><a href="?step=3"><?php echo _t ('bdd_configuration'); ?></a></li>
- <li class="item<?php echo STEP == 4 ? ' active' : ''; ?>"><a href="?step=4"><?php echo _t ('bdd_update'); ?></a></li>
+ <li class="item<?php echo STEP == 4 ? ' active' : ''; ?>"><a href="?step=4"><?php echo _t ('version_update'); ?></a></li>
<li class="item<?php echo STEP == 5 ? ' active' : ''; ?>"><a href="?step=5"><?php echo _t ('this_is_the_end'); ?></a></li>
</ul>