diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-05 14:46:06 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-05 14:46:06 +0000 |
commit | 47b3a072490903349922b565ec3b393a82f1c8a9 (patch) | |
tree | 9f0dbe0776dbb45f8704563d38ca2bbc02fa6ee3 /engine/lib/notification.php | |
parent | 31c42efb3fad99bef4916cfedfc99395ebfb087f (diff) | |
download | elgg-47b3a072490903349922b565ec3b393a82f1c8a9.tar.gz elgg-47b3a072490903349922b565ec3b393a82f1c8a9.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* More text internationalised
git-svn-id: https://code.elgg.org/elgg/trunk@804 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/notification.php')
-rw-r--r-- | engine/lib/notification.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php index c3bfb0745..d79266f51 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -63,13 +63,13 @@ $to = (int)$to; if (!$method) - throw new NotificationException("No notification method specified."); + throw new NotificationException(elgg_echo('NotificationException:NoNotificationMethod')); if (!is_array($method)) $method = array($method); if ((!array_key_exists($method, $NOTIFICATION_HANDLERS)) || (!is_callable($NOTIFICATION_HANDLERS[$method]))) - throw new NotificationExceptions("No handler found for '$method' or it was not callable."); + throw new NotificationExceptions(sprintf(elgg_echo('NotificationException:NoHandlerFound'), $method)); if (!is_array($to)) $to = array($to); @@ -78,7 +78,7 @@ { foreach ($method as $m) if (!$NOTIFICATION_HANDLERS[$m]((int)$guid, sanitise_string($m), $params)) - throw new NotificationException("There was an error while notifying $guid"); + throw new NotificationException(sprintf(elgg_echo('NotificationException:ErrorNotifyingGuid'), $guid)); } return true; @@ -103,7 +103,7 @@ $entity = get_entity($to_guid); if ((!($entity instanceof ElggUser)) || ($entity->email=="")) - throw new NotificationException("Could not get the email address for GUID:$to_guid"); + throw new NotificationException(sprintf(elgg_echo('NotificationException:NoEmailAddress'), $to_guid)); $to = $entity->email; |