Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-50824

core_message::send_instance_messages does not translate {$a} in strings

XMLWordPrintable

    • MOODLE_29_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • wip-MDL-50824-master
    • Hide
      1. Log into Moodle Mobile on a non-administrator account.
      2. Attempt to send a message to another user who is not on your contact list and has 'Prevent non-contacts from messaging me' checked in their messaging preference.
      3. Verify you receive an error message that does not read '{$a} only accepts messages from their contacts.'; the fullname of the user you attempted to message should be in place of {$a}.
      Show
      Log into Moodle Mobile on a non-administrator account. Attempt to send a message to another user who is not on your contact list and has 'Prevent non-contacts from messaging me' checked in their messaging preference. Verify you receive an error message that does not read '{$a} only accepts messages from their contacts.'; the fullname of the user you attempted to message should be in place of {$a}.

      The external function core_message::send_instance_messages does not properly translate the error string when the recipient does not accept messages from non contacts.

      The following code should pass the recipient full name:

      $errormessage = get_string('userisblockingyounoncontact', 'message');
      

            c.d.smith Clem Smith
            fred Frédéric Massart
            Adrian Greeve Adrian Greeve
            Dan Poltawski Dan Poltawski
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.