mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-29 20:29:22 +02:00
[ticket/12976] Correctly use plurals for attachment count in UCP navigation
PHPBB3-12976
This commit is contained in:
parent
12398d65fd
commit
d9f36ae7e1
phpBB
includes/ucp
language/en
styles
@ -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'],
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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 -->
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<table width="100%" cellspacing="1">
|
<table width="100%" cellspacing="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
|
||||||
<td class="gensmall" nowrap="nowrap"> [ {TOTAL_ATTACHMENTS} ] </td>
|
<td class="gensmall" nowrap="nowrap"> [ {NUM_ATTACHMENTS} ] </td>
|
||||||
<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
|
<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user