From: toyomoyo Date: Thu, 22 Nov 2007 01:05:36 +0000 (+0000) Subject: MDL-10028, adding a string X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a5c67cdf34f3aeba4656851a2343a8ca1876f40f;p=moodle.git MDL-10028, adding a string --- diff --git a/lang/en_utf8/message.php b/lang/en_utf8/message.php index 696dfff800..c84a327367 100644 --- a/lang/en_utf8/message.php +++ b/lang/en_utf8/message.php @@ -33,6 +33,7 @@ $string['message'] = 'Message'; $string['messagehistory'] = 'Message History'; $string['messages'] = 'Messages'; $string['messaging'] = 'Messaging'; +$string['messagingdisabled'] = 'Messaging is disabled on this site, emails will be sent instead'; $string['mycontacts'] = 'My Contacts'; $string['newsearch'] = 'New search'; $string['newonlymsg'] = 'Show only new'; diff --git a/user/messageselect.php b/user/messageselect.php index 28f1e89c6d..0228b632c2 100644 --- a/user/messageselect.php +++ b/user/messageselect.php @@ -71,7 +71,7 @@ // if messaging is disabled on site, we can still allow users with capabilities to send emails instead if (empty($CFG->messaging)) { - notify("Messaging is disabled on this site, emails will be sent instead"); + notify(get_string('messagingdisabled','message')); } if ($count) {