projects
/
project/privatemsg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
446de5a
)
#337989 by Berdir: Translation of messages menu breaks display of unread messages
author
Oleg Terenchuk
Wed, 14 Jan 2009 19:12:49 +0000 (19:12 +0000)
committer
Oleg Terenchuk
Wed, 14 Jan 2009 19:12:49 +0000 (19:12 +0000)
privatemsg.module
patch
|
blob
|
blame
|
history
diff --git
a/privatemsg.module
b/privatemsg.module
index
63c07fd
..
75ef7e1
100644
(file)
--- a/
privatemsg.module
+++ b/
privatemsg.module
@@
-861,13
+861,11
@@
function privatemsg_block($op = 'list', $delta = 0, $edit = array()) {
function privatemsg_title_callback($title) {
$count = privatemsg_unread_count();
- $new = '';
- if ($count) {
- $new = " ({$count})";
- }
- $title .= $new;
- return $title;
+ if ($count > 0) {
+ return t('Messages (@count)', array('@count' => $count));
+ }
+ return t('Messages');
}