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

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

    XMLWordPrintable

Details

    • 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}.

    Description

      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');
      

      Attachments

        Issue Links

          Activity

            People

              c.d.smith Clem Smith
              fred Frédéric Massart
              Adrian Greeve Adrian Greeve
              Dan Poltawski Dan Poltawski
              Mark Nelson Mark Nelson
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/16