mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-26 18:43:33 +02:00
Merge pull request #2936 from nickvergessen/ticket/12976
[ticket/12976] Correctly use plurals for attachment count in UCP navigation * nickvergessen/ticket/12976: [ticket/12976] Correctly use plurals for attachment count in UCP navigation
This commit is contained in:
commit
c842583bbf
@ -182,6 +182,7 @@ class ucp_attachments
|
||||
|
||||
$template->assign_vars(array(
|
||||
'TOTAL_ATTACHMENTS' => $num_attachments,
|
||||
'NUM_ATTACHMENTS' => $user->lang('NUM_ATTACHMENTS', $num_attachments),
|
||||
|
||||
'L_TITLE' => $user->lang['UCP_ATTACHMENTS'],
|
||||
|
||||
|
@ -518,6 +518,10 @@ $lang = array_merge($lang, array(
|
||||
'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.
|
||||
'NUM_ATTACHMENTS' => array(
|
||||
1 => '%d attachment',
|
||||
2 => '%d attachments',
|
||||
),
|
||||
'NUM_POSTS_IN_QUEUE' => array(
|
||||
0 => 'No posts in queue', // 0
|
||||
1 => '1 post in queue', // 1
|
||||
|
@ -12,7 +12,7 @@
|
||||
<!-- IF .attachrow -->
|
||||
<div class="action-bar top">
|
||||
<div class="pagination">
|
||||
{TOTAL_ATTACHMENTS} {L_TITLE}
|
||||
{NUM_ATTACHMENTS}
|
||||
<!-- IF .pagination -->
|
||||
<!-- INCLUDE pagination.html -->
|
||||
<!-- ELSE -->
|
||||
|
@ -17,7 +17,7 @@
|
||||
<table width="100%" cellspacing="1">
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user