feature 2379: option to change comments order: change caption again, fix a bug in config page (induced by r13087)

git-svn-id: http://piwigo.org/svn/trunk@13224 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100 2012-02-17 19:30:52 +00:00
commit e474f947fa
9 changed files with 10 additions and 16 deletions

View file

@ -124,6 +124,11 @@ $sort_fields = array(
'rank ASC' => l10n('manual sort order'),
);
$comments_order = array(
'ASC' => l10n('Show oldest comments first'),
'DESC' => l10n('Show latest comment first'),
);
//------------------------------ verification and registration of modifications
if (isset($_POST['submit']))
@ -359,7 +364,7 @@ switch ($page['section'])
array(
'NB_COMMENTS_PAGE'=>$conf['nb_comment_page'],
'comments_order'=>$conf['comments_order'],
'comments_order_options'=> $sort_directions
'comments_order_options'=> $comments_order
)
);

View file

@ -134,7 +134,7 @@ SELECT
$template->assign(array(
'COMMENTS_ORDER_URL' => add_url_params( duplicate_picture_url(), array('comments_order'=> ($comments_order == 'ASC' ? 'DESC' : 'ASC') ) ),
'COMMENTS_ORDER_TITLE' => $comments_order == 'ASC' ? l10n('old → new') : l10n('new → old'),
'COMMENTS_ORDER_TITLE' => $comments_order == 'ASC' ? l10n('Show latest comment first') : l10n('Show oldest comments first'),
));
$query = '

View file

@ -382,6 +382,4 @@ $lang['xxlarge'] = 'огромен';
$lang['Your username has been successfully changed to : %s'] = 'Вашетопотребителско име беше успешно промененно на : %s';
$lang['%d rates'] = '%d оценки';
$lang['new → old'] = 'ново → старо';
$lang['old → new'] = 'старо → ново';
?>

View file

@ -381,7 +381,5 @@ $lang['Username: %s'] = 'Benutzername: %s';
$lang['xlarge'] = 'xgroß';
$lang['xxlarge'] = 'xxgroß';
$lang['Your username has been successfully changed to : %s'] = 'Dein Benutzername ist jetzt:';
$lang['new → old'] = 'neu → alt';
$lang['old → new'] = 'alt → neu';
$lang['Photo sizes'] = 'Bildgrößen';
?>

View file

@ -229,8 +229,6 @@ $lang['month'][8] = "August";
$lang['month'][9] = "September";
$lang['Most visited'] = "Most visited";
$lang['N/A'] = "N/A";
$lang['old → new'] = 'old → new';
$lang['new → old'] = 'new → old';
$lang['New on %s'] = "New on %s";
$lang['New password'] = "New password";
$lang['Next'] = "Next";
@ -314,6 +312,8 @@ $lang['set as album representative'] = "set as album thumbnail";
$lang['Show file metadata'] = "Show file metadata";
$lang['Show number of comments'] = "Show number of comments";
$lang['Show number of hits'] = "Show number of hits";
$lang['Show oldest comments first'] = 'Show oldest comments first';
$lang['Show latest comment first'] = 'Show latest comment first';
$lang['show tag cloud'] = "show tags cloud";
$lang['Since'] = "Since";
$lang['slideshow'] = "slideshow";

View file

@ -375,7 +375,4 @@ $lang['Email: %s'] = 'Email: %s';
$lang['If you think you\'ve received this email in error, please contact us at %s'] = 'Si vous pensez avoir reçu cet email par erreur, veuillez nous contacter %s';
$lang['Successfully registered, you will soon receive an email with your connection settings. Welcome!'] = 'Inscription réussie, vous recevrez bientôt un email avec vos identifiants. Bienvenue !';
$lang['Send my connection settings by email'] = 'Recevoir mes identifiants par email';
$lang['new → old'] = 'nouveau → ancien';
$lang['old → new'] = 'ancien → nouveau';
?>

View file

@ -380,7 +380,5 @@ $lang['Here are your connection settings'] = 'Ось Ваші налаштува
$lang['Password: %s'] = 'Пароль: %s';
$lang['Username: %s'] = 'Ім\'я користувача: %s';
$lang['If you think you\'ve received this email in error, please contact us at %s'] = 'Якщо Ви думаєте, що Ви отримали цей лист помилково, будь ласка, зв\'яжіться з нами за адресою %s';
$lang['new → old'] = 'нові → старі';
$lang['old → new'] = 'старі → нові';
$lang['Photo sizes'] = 'Розміри фотографій';
?>

View file

@ -383,7 +383,5 @@ $lang['Username: %s'] = '用户名:%s';
$lang['xlarge'] = '很大尺寸';
$lang['xxlarge'] = '非常大尺寸';
$lang['Your username has been successfully changed to : %s'] = '您的用户名成功修改为:%s';
$lang['new → old'] = '新 → 旧';
$lang['old → new'] = '旧 → 新';
$lang['Photo sizes'] = '';
?>

View file

@ -274,7 +274,7 @@ y.callService(
{if $COMMENT_COUNT > 0}
<h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3>
{if $COMMENT_COUNT > 2}
{'Sort order'|@translate}: <a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow">{$COMMENTS_ORDER_TITLE}</a>
<a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow">{$COMMENTS_ORDER_TITLE}</a>
{/if}
{/if}
{if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}