Browse files

MDL-36162 core_message: string clean up

  • Loading branch information...
1 parent 8b72167 commit 138025470fd16787a939c6b26e5d5fe0d5ea02c8 @andyjdavis andyjdavis committed with Sam Hemelryk Nov 1, 2012
Showing with 4 additions and 5 deletions.
  1. +0 −1 lang/en/message.php
  2. +1 −1 lib/navigationlib.php
  3. +3 −3 message/edit.php
View
1 lang/en/message.php
@@ -48,7 +48,6 @@
$string['disabled'] = 'Messaging is disabled on this site';
$string['disallowed'] = 'Disallowed';
$string['discussion'] = 'Discussion';
-$string['editmymessage'] = 'Messaging';
$string['emailmessages'] = 'Email messages when I am offline';
$string['emailtagline'] = 'This is a copy of a message sent to you at "{$a->sitename}". Go to {$a->url} to reply.';
$string['emptysearchstring'] = 'You must search for something';
View
2 lib/navigationlib.php
@@ -3979,7 +3979,7 @@ protected function generate_user_settings($courseid, $userid, $gstitle='usercurr
// Messaging
if (($currentuser && has_capability('moodle/user:editownmessageprofile', $systemcontext)) || (!isguestuser($user) && has_capability('moodle/user:editmessageprofile', $usercontext) && !is_primary_admin($user->id))) {
$url = new moodle_url('/message/edit.php', array('id'=>$user->id));
- $usersetting->add(get_string('editmymessage', 'message'), $url, self::TYPE_SETTING);
+ $usersetting->add(get_string('messaging', 'message'), $url, self::TYPE_SETTING);
}
// Blogs
View
6 message/edit.php
@@ -158,9 +158,9 @@
//$preferences->beepnewmessage = get_user_preferences( 'message_beepnewmessage', '', $user->id);
/// Display page header
-$streditmymessage = get_string('editmymessage', 'message');
-$PAGE->set_title($streditmymessage);
-$PAGE->set_heading($streditmymessage);
+$strmessaging = get_string('messaging', 'message');
+$PAGE->set_title($strmessaging);
+$PAGE->set_heading($strmessaging);
// Grab the renderer
$renderer = $PAGE->get_renderer('core', 'message');

0 comments on commit 1380254

Please sign in to comment.