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

Async backup notifications not localisable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5, 5.0
    • Backup
    • MOODLE_405_STABLE, MOODLE_500_STABLE
    • MDL-84470-main
    • Hide
      1. Go to Site administration -> Courses -> Backups -> Asynchronous backup/restore
        • Set backup_async_message_subject to:

          <span lang="en" class="multilang">Moodle {operation} completed successfully</span>
          <span lang="de" class="multilang">Moodle {operation} erfolgreich abgeschlossen</span>
          

        • Set backup_async_message to:

          <span lang="en" class="multilang">Your {operation} (ID: {backupid}) has completed successfully. You can access it here: {link}.</span>
          <span lang="de" class="multilang">{operation} (ID: {backupid}) ist erfolgreich abgeschlossen. Sie können über die URL darauf zugreifen: {link}.</span>
          

          • Insert in source mode (in TinyMCE: Tools -> Source code), not in WYSIWYG mode!
      2. Go to Site administration -> Plugins -> Filters -> Manage filters
      3. For Multi-language content
        • Active?: On
        • Apply to: Content and headings
      4. Create a course.
      5. Create a backup of that course.
      6. Run cron.php

        php admin/cli/cron.php
        

      7. Check your mail inbox for the notification
        • Popup notifications currently don't work. See MDL-84451

      Expected result: The email subject and body only contain the English text and don't contain the multilang <span>s.

      Show
      Go to Site administration -> Courses -> Backups -> Asynchronous backup/restore Set backup_async_message_subject to: <span lang="en" class="multilang">Moodle {operation} completed successfully</span> <span lang="de" class="multilang">Moodle {operation} erfolgreich abgeschlossen</span> Set backup_async_message to: <span lang="en" class="multilang">Your {operation} (ID: {backupid}) has completed successfully. You can access it here: {link}.</span> <span lang="de" class="multilang">{operation} (ID: {backupid}) ist erfolgreich abgeschlossen. Sie können über die URL darauf zugreifen: {link}.</span> Insert in source mode (in TinyMCE: Tools -> Source code), not in WYSIWYG mode! Go to Site administration -> Plugins -> Filters -> Manage filters For Multi-language content Active?: On Apply to: Content and headings Create a course. Create a backup of that course. Run cron.php php admin/cli/cron.php Check your mail inbox for the notification Popup notifications currently don't work. See MDL-84451 Expected result: The email subject and body only contain the English text and don't contain the multilang <span>s.
    • Hide

      Code verified against automated checks.

      Checked MDL-84470 using repository: https://github.com/t-schroeder/moodle.git

      More information about this report

      Built on: Fri Feb 7 12:51:52 PM UTC 2025

      Show
      Code verified against automated checks. Checked MDL-84470 using repository: https://github.com/t-schroeder/moodle.git main (0 errors / 0 warnings) [branch: MDL-84470-main | CI Job ] More information about this report Built on: Fri Feb 7 12:51:52 PM UTC 2025

      The notification subject and text can be customized through settings. But it's not possible to use multilang or multilang2 filters to localise these.

            tschroeder Tim Schroeder
            tschroeder Tim Schroeder
            Meirza Meirza
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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