Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ef0e3ffb
Commit
ef0e3ffb
authored
Jan 08, 2006
by
Steven Wittens
Browse files
-
#33128
: Format plural for %n new
parent
1b66966a
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/tracker.module
View file @
ef0e3ffb
...
...
@@ -101,7 +101,7 @@ function tracker_page($uid = 0) {
if
(
$new
=
comment_num_new
(
$node
->
nid
))
{
$comments
.
=
'<br />'
;
$comments
.
=
l
(
t
(
'%num new'
,
array
(
'%num'
=>
$
new
)
),
"node/
$node->nid
"
,
NULL
,
NULL
,
'new'
);
$comments
.
=
l
(
format_plural
(
$new
,
'1 new'
,
'%num
new
'
),
"node/
$node->nid
"
,
NULL
,
NULL
,
'new'
);
}
}
...
...
modules/tracker/tracker.module
View file @
ef0e3ffb
...
...
@@ -101,7 +101,7 @@ function tracker_page($uid = 0) {
if
(
$new
=
comment_num_new
(
$node
->
nid
))
{
$comments
.
=
'<br />'
;
$comments
.
=
l
(
t
(
'%num new'
,
array
(
'%num'
=>
$
new
)
),
"node/
$node->nid
"
,
NULL
,
NULL
,
'new'
);
$comments
.
=
l
(
format_plural
(
$new
,
'1 new'
,
'%num
new
'
),
"node/
$node->nid
"
,
NULL
,
NULL
,
'new'
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment