Merge branch 'develop-ascraeus' into develop

* develop-ascraeus:
  [ticket/12976] Correctly use plurals for attachment count in UCP navigation

Conflicts:
	phpBB/styles/subsilver2/template/ucp_attachments.html
This commit is contained in:
Tristan Darricau 2014-09-10 20:02:20 +02:00
commit d465e7e438
3 changed files with 6 additions and 1 deletions

View file

@ -182,6 +182,7 @@ class ucp_attachments
$template->assign_vars(array( $template->assign_vars(array(
'TOTAL_ATTACHMENTS' => $num_attachments, 'TOTAL_ATTACHMENTS' => $num_attachments,
'NUM_ATTACHMENTS' => $user->lang('NUM_ATTACHMENTS', $num_attachments),
'L_TITLE' => $user->lang['UCP_ATTACHMENTS'], 'L_TITLE' => $user->lang['UCP_ATTACHMENTS'],

View file

@ -518,6 +518,10 @@ $lang = array_merge($lang, array(
'NO_USER_SPECIFIED' => 'No username was specified.', 'NO_USER_SPECIFIED' => 'No username was specified.',
// Nullar/Singular/Plural language entry. The key numbers define the number range in which a certain grammatical expression is valid. // Nullar/Singular/Plural language entry. The key numbers define the number range in which a certain grammatical expression is valid.
'NUM_ATTACHMENTS' => array(
1 => '%d attachment',
2 => '%d attachments',
),
'NUM_POSTS_IN_QUEUE' => array( 'NUM_POSTS_IN_QUEUE' => array(
0 => 'No posts in queue', // 0 0 => 'No posts in queue', // 0
1 => '1 post in queue', // 1 1 => '1 post in queue', // 1

View file

@ -12,7 +12,7 @@
<!-- IF .attachrow --> <!-- IF .attachrow -->
<div class="action-bar top"> <div class="action-bar top">
<div class="pagination"> <div class="pagination">
{TOTAL_ATTACHMENTS} {L_TITLE} {NUM_ATTACHMENTS}
<!-- IF .pagination --> <!-- IF .pagination -->
<!-- INCLUDE pagination.html --> <!-- INCLUDE pagination.html -->
<!-- ELSE --> <!-- ELSE -->