Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1764

Task: submit confirmation mail doesn't handle 0 files all too well

    XMLWordPrintable

    Details

      Description

      the submit confirmation mail for the task course element doesn't work very well in the case of submissions without a file, which happens from time to time.
      In order to prevent such mails:

      The submission of the file "$filename" for Andreas Muster (amuster@trashmail.com) at 04.11.2015 has been confirmed.

      we should adapt
      1) the mail template text
      2) the way OO handles the variable "$filename" in case there was no file

      1)DE:
      old:
      Hiermit wird bestätigt, dass $first $last ($email) die Datei "$filename" am $date um $time hochgeladen hat.
      new:
      Hiermit wird bestätigt, dass $first $last ($email) [number of files] Datei(en) ($filename) am $date um $time hochgeladen hat.

      EN:
      old:
      The submission of the file "$filename" for $first $last ($email) at $date has been confirmed.
      new:
      The submission of [number of files] file(s) ($filename) for $first $last ($email) at $date, $time has been confirmed.

      2) if the number of files = 0, the variable is not replaced in the mail. This should not happen. Therefore, if 0 files were submitted, the variable $filename should be replaced with
      DE: Keine Datei hochgeladen
      EN: No file uploaded

      this translation should be checked against other instances where $filename is used, and reworked if necessary

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              kscherer Kirsten Scherer
              Tester:
              Kirsten Scherer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 15 seconds
                1h