original_string: private function set_notification_language($user) {
          global $CFG;
  
          // Copied from current_language().
          if (!empty($user->lang)) {
              $lang = $user->lang;
          } else if (isset($CFG->lang)) {
              $lang = $CFG->lang;
          } else {
              $lang = 'en';
          }
          force_current_language($lang);
      }
code: private function set_notification_language($user) {
          global $CFG;
  
          // Copied from current_language().
          if (!empty($user->lang)) {
              $lang = $user->lang;
          } else if (isset($CFG->lang)) {
              $lang = $CFG->lang;
          } else {
              $lang = 'en';
          }
          force_current_language($lang);
      }
code_tokens: private function set_notification_language ( $ user ) { global $ CFG ; // Copied from current_language(). if ( ! empty ( $ user -> lang ) ) { $ lang = $ user -> lang ; } else if ( isset ( $ CFG -> lang ) ) { $ lang = $ CFG -> lang ; } else { $ lang = 'en' ; } force_current_language ( $ lang ) ; }
docstring: Sets the session language to the language used by the notification receiver.
  
  @param  \stdClass $user The user who will receive the message
  @return null
docstring_tokens: Sets the session language to the language used by the notification receiver .