Slightly adjust version check on index page to be a bit more descriptive

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9889 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2009-07-29 09:26:50 +00:00
parent a1807c8ddd
commit 01fe852ad8
4 changed files with 24 additions and 20 deletions

View file

@ -14,21 +14,22 @@
<p>{L_ADMIN_INTRO}</p>
<!-- version check -->
<!-- IF S_VERSIONCHECK_FAIL -->
<div class="errorbox notice">
<p>{L_VERSIONCHECK_FAIL} - <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> - <a href="{U_VERSIONCHECK}">{L_MORE}</a></p>
</div>
<p>{L_VERSIONCHECK_FAIL}</p>
<!-- ELSE -->
<!-- IF S_VERSION_UP_TO_DATE -->
<div class="successbox">
<p>{L_VERSION_UP_TO_DATE_ACP} - <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> - <a href="{U_VERSIONCHECK}">{L_MORE}</a></p>
</div>
<p>{L_VERSION_UP_TO_DATE_ACP}</p>
<!-- ELSE -->
<div class="errorbox">
<p>{L_VERSION_NOT_UP_TO_DATE_ACP} - <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> - <a href="{U_VERSIONCHECK}">{L_MORE}</a></p>
<p>{L_VERSION_NOT_UP_TO_DATE_TITLE}</p>
<!-- ENDIF -->
<!-- ENDIF -->
<p><a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> &middot; <a href="{U_VERSIONCHECK}">{L_MORE_INFORMATION}</a></p>
</div>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_REMOVE_INSTALL -->
<div class="errorbox">

View file

@ -406,12 +406,13 @@ class acp_main
else
{
$latest_version_info = explode("\n", $latest_version_info);
$latest_version = trim($latest_version_info[0]);
$template->assign_var('S_VERSION_UP_TO_DATE',
version_compare(
str_replace('rc', 'RC', strtolower($config['version'])),
str_replace('rc', 'RC', strtolower($latest_version)),
'<') ? false : true);
$latest_version = str_replace('rc', 'RC', strtolower(trim($latest_version_info[0])));
$current_version = str_replace('rc', 'RC', strtolower($config['version']));
$template->assign_vars(array(
'S_VERSION_UP_TO_DATE' => version_compare($current_version, $latest_version, '<') ? false : true,
));
}
// Get forum statistics

View file

@ -250,7 +250,8 @@ $lang = array_merge($lang, array(
'MANAGE' => 'Manage',
'MENU_TOGGLE' => 'Hide or display the side menu',
'MORE' => 'More&nbsp;&raquo;',
'MORE' => 'More', // Not used at the moment
'MORE_INFORMATION' => 'More information &raquo;',
'MOVE_DOWN' => 'Move down',
'MOVE_UP' => 'Move up',
@ -377,7 +378,7 @@ $lang = array_merge($lang, array(
'USERS_PER_DAY' => 'Users per day',
'VALUE' => 'Value',
'VERSIONCHECK_FAIL' => 'Failed to obtain latest version',
'VERSIONCHECK_FAIL' => 'Failed to obtain latest version information.',
'VERSIONCHECK_FORCE_UPDATE' => 'Re-Check version',
'VIEW_ADMIN_LOG' => 'View administrator log',
'VIEW_INACTIVE_USERS' => 'View inactive users',

View file

@ -564,6 +564,7 @@ $lang = array_merge($lang, array(
'VERSION_CHECK_EXPLAIN' => 'Checks to see if the version of phpBB you are currently running is up to date.',
'VERSION_NOT_UP_TO_DATE' => 'Your version of phpBB is not up to date. Please continue the update process.',
'VERSION_NOT_UP_TO_DATE_ACP'=> 'Your version of phpBB is not up to date.<br />Below you will find a link to the release announcement for the latest version as well as instructions on how to perform the update.',
'VERSION_NOT_UP_TO_DATE_TITLE' => 'Your version of phpBB is not up to date.',
'VERSION_UP_TO_DATE' => 'Your installation is up to date, no updates are available for your version of phpBB. You may want to continue anyway to perform a file validity check.',
'VERSION_UP_TO_DATE_ACP' => 'Your installation is up to date, no updates are available for your version of phpBB. You do not need to update your installation.',
'VIEWING_FILE_CONTENTS' => 'Viewing file contents',