aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-03-31 10:24:07 +0000
committermistic100 <mistic@piwigo.org>2012-03-31 10:24:07 +0000
commit182f2b93d9703ffa8c1d0bbe5a178dc0f3e2b2ec (patch)
treeb5358528570210fee030473d1d95e49041690e73
parent2f32322402defe6f8c52e577ae69caa31ad828b5 (diff)
feature 2586: simpler sort order labels on gallery side
git-svn-id: http://piwigo.org/svn/trunk@13839 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php29
-rw-r--r--language/en_UK/common.lang.php15
2 files changed, 29 insertions, 15 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 9685d225b..ec61b5c1a 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -219,21 +219,20 @@ SELECT *
function get_category_preferred_image_orders()
{
global $conf, $page;
-
- return trigger_event('get_category_preferred_image_orders',
- array(
- array(l10n('Default'), '', true),
- array(l10n('Rating score'), 'rating_score DESC', $conf['rate']),
- array(l10n('Most visited'), 'hit DESC', true),
- array(l10n('Creation date'), 'date_creation DESC', true),
- array(l10n('Post date'), 'date_available DESC', true),
- array(l10n('File name'), 'file ASC', true),
- array(
- l10n('Rank'),
- 'rank ASC',
- ('categories' == @$page['section'] and !isset($page['flat']) and !isset($page['chronology_field']) )
- ),
- array( l10n('Permissions'), 'level DESC', is_admin() )
+
+ return trigger_event('get_category_preferred_image_orders', array(
+ array(l10n('Default'), '', true),
+ array(l10n('Photo title, A &rarr; Z'), 'name ASC', true),
+ array(l10n('Photo title, Z &rarr; A'), 'name DESC', true),
+ array(l10n('Date created, new &rarr; old'), 'date_creation DESC', true),
+ array(l10n('Date created, old &rarr; new'), 'date_creation ASC', true),
+ array(l10n('Date posted, new &rarr; old'), 'date_available DESC', true),
+ array(l10n('Date posted, old &rarr; new'), 'date_available ASC', true),
+ array(l10n('Rating score, high &rarr; low'), 'rating_score DESC', $conf['rate']),
+ array(l10n('Rating score, low &rarr; high'), 'rating_score ASC', $conf['rate']),
+ array(l10n('Visits, high &rarr; low'), 'hit DESC', true),
+ array(l10n('Visits, low &rarr; high'), 'hit ASC', true),
+ array(l10n('Permissions'), 'level DESC', is_admin()),
));
}
diff --git a/language/en_UK/common.lang.php b/language/en_UK/common.lang.php
index a432ecda7..c05f9c424 100644
--- a/language/en_UK/common.lang.php
+++ b/language/en_UK/common.lang.php
@@ -388,4 +388,19 @@ $lang['Photo sizes'] = 'Photo sizes';
$lang['View in'] = 'View in';
$lang['Mobile'] = 'Mobile';
$lang['Desktop'] = 'Desktop';
+$lang['File name, A &rarr; Z'] = 'File name, A &rarr; Z';
+$lang['File name, Z &rarr; A'] = 'File name, Z &rarr; A';
+$lang['Photo title, A &rarr; Z'] = 'Photo title, A &rarr; Z';
+$lang['Photo title, Z &rarr; A'] = 'Photo title, Z &rarr; A';
+$lang['Date created, new &rarr; old'] = 'Date created, new &rarr; old';
+$lang['Date created, old &rarr; new'] = 'Date created, old &rarr; new';
+$lang['Date posted, new &rarr; old'] = 'Date posted, new &rarr; old';
+$lang['Date posted, old &rarr; new'] = 'Date posted, old &rarr; new';
+$lang['Rating score, high &rarr; low'] = 'Rating score, high &rarr; low';
+$lang['Rating score, low &rarr; high'] = 'Rating score, low &rarr; high';
+$lang['Visits, high &rarr; low'] = 'Visits, high &rarr; low';
+$lang['Visits, low &rarr; high'] = 'Visits, low &rarr; high';
+$lang['Numeric identifier, 1 &rarr; 9'] = 'Numeric identifier, 1 &rarr; 9';
+$lang['Numeric identifier, 9 &rarr; 1'] = 'Numeric identifier, 9 &rarr; 1';
+$lang['Manual sort order'] = 'Manual sort order';
?> \ No newline at end of file