Rename "Age" search order to "Last modified"

Use a better description for sorting by modification time, as it is not
clear whether "Age" refers to the package creation date or to the
modification date.

The possibility to sort by "Age" is kept internally (but hidden from the
user interface) such that old links to search results still work.

Fixes FS#46319.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-09-20 11:03:15 +02:00
parent 0478a0a2da
commit f3ec4d1ef5
2 changed files with 5 additions and 1 deletions

View file

@ -755,7 +755,11 @@ function pkg_search_page($SID="") {
case 'm': case 'm':
$q_sort .= "Maintainer " . $order . ", "; $q_sort .= "Maintainer " . $order . ", ";
break; break;
case 'l':
$q_sort .= "ModifiedTS " . $order . ", ";
break;
case 'a': case 'a':
/* For compatibility with old search links. */
$q_sort .= "-ModifiedTS " . $order . ", "; $q_sort .= "-ModifiedTS " . $order . ", ";
break; break;
default: default:

View file

@ -24,7 +24,7 @@ $sortby = array(
'w' => __('Voted'), 'w' => __('Voted'),
'o' => __('Notify'), 'o' => __('Notify'),
'm' => __('Maintainer'), 'm' => __('Maintainer'),
'a' => __('Age') 'l' => __('Last modified')
); );
$orderby = array( $orderby = array(