summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-12 11:42:31 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-12 11:42:31 -0800
commit639f1e741a5c9c96db1ab894cea7aa90cad82dbc (patch)
treeba8b7344083df1b3667eb394a163b07f0a0ef53e
parente81acce985b35602bf66ddbf9fe7fa5a065116c9 (diff)
Put quotes around the item titles in all the messages and more importantly actually display the original's title properly. Fixes ticket #966, but does now show us ticket #978
-rw-r--r--modules/notification/helpers/notification.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/notification/helpers/notification.php b/modules/notification/helpers/notification.php
index e9fc3f33..a2271b59 100644
--- a/modules/notification/helpers/notification.php
+++ b/modules/notification/helpers/notification.php
@@ -101,10 +101,10 @@ class notification {
$v = new View("item_updated.html");
$v->item = $item;
$v->subject = $item->is_album() ?
- t("Album %title updated", array("title" => $item->original("title"))) :
+ t("Album \"%title\" updated", array("title" => $item->original()->title)) :
($item->is_photo() ?
- t("Photo %title updated", array("title" => $item->original("title")))
- : t("Movie %title updated", array("title" => $item->original("title"))));
+ t("Photo \"%title\" updated", array("title" => $item->original()->title))
+ : t("Movie \"%title\" updated", array("title" => $item->original()->title)));
self::_notify($subscribers, $item, $v->render(), $v->subject);
}
@@ -119,12 +119,12 @@ class notification {
$v = new View("item_added.html");
$v->item = $item;
$v->subject = $item->is_album() ?
- t("Album %title added to %parent_title",
+ t("Album \"%title\" added to \"%parent_title\"",
array("title" => $item->title, "parent_title" => $parent->title)) :
($item->is_photo() ?
- t("Photo %title added to %parent_title",
+ t("Photo \"%title\" added to \"%parent_title\"",
array("title" => $item->title, "parent_title" => $parent->title)) :
- t("Movie %title added to %parent_title",
+ t("Movie \"%title\" added to \"%parent_title\"",
array("title" => $item->title, "parent_title" => $parent->title)));
self::_notify($subscribers, $item, $v->render(), $v->subject);
@@ -140,12 +140,12 @@ class notification {
$v = new View("item_deleted.html");
$v->item = $item;
$v->subject = $item->is_album() ?
- t("Album %title removed from %parent_title",
+ t("Album \"%title\" removed from \"%parent_title\"",
array("title" => $item->title, "parent_title" => $parent->title)) :
($item->is_photo() ?
- t("Photo %title removed from %parent_title",
+ t("Photo \"%title\" removed from \"%parent_title\"",
array("title" => $item->title, "parent_title" => $parent->title))
- : t("Movie %title removed from %parent_title",
+ : t("Movie \"%title\" removed from \"%parent_title\"",
array("title" => $item->title, "parent_title" => $parent->title)));
self::_notify($subscribers, $item, $v->render(), $v->subject);
@@ -161,10 +161,10 @@ class notification {
$v = new View("comment_published.html");
$v->comment = $comment;
$v->subject = $item->is_album() ?
- t("A new comment was published for album %title", array("title" => $item->title)) :
+ t("A new comment was published for album \"%title\"", array("title" => $item->title)) :
($item->is_photo() ?
- t("A new comment was published for photo %title", array("title" => $item->title))
- : t("A new comment was published for movie %title", array("title" => $item->title)));
+ t("A new comment was published for photo \"%title\"", array("title" => $item->title))
+ : t("A new comment was published for movie \"%title\"", array("title" => $item->title)));
self::_notify($subscribers, $item, $v->render(), $v->subject);
}