summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--privatemsg.module10
1 files changed, 4 insertions, 6 deletions
diff --git a/privatemsg.module b/privatemsg.module
index 63c07fd..75ef7e1 100644
--- 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');
}