Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37124 META: Language packs installation/update improvements
  3. MDL-46210

Provide option to update installed language packs as a scheduled task

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7, 2.8
    • Fix Version/s: 2.8
    • Component/s: Language
    • Testing Instructions:
      Hide
      1. Run behat tests with --tags=@tool_langimport
      2. VERIFY they are skipped (as TOOL_LANGIMPORT_REMOTE_TESTS is not defined)
      3. Define TOOL_LANGIMPORT_REMOTE_TESTS in config.php
      4. Run behat with --tags=@tool_langimport and VERIFY all tests pass
      5. Install a few language packs on your site
      6. Manually outdate your langpacks by editing the file $CFG->dataroot/lang/$langcode/$langcode.md5 and changing the checksum
      7. Run the scheduled task manually by running php admin/tool/task/cli/schedule_task.php --execute=\\tool_langimport\\task
        update_langpacks_task
      8. Remove a few langpacks
      Show
      Run behat tests with --tags=@tool_langimport VERIFY they are skipped (as TOOL_LANGIMPORT_REMOTE_TESTS is not defined) Define TOOL_LANGIMPORT_REMOTE_TESTS in config.php Run behat with --tags=@tool_langimport and VERIFY all tests pass Install a few language packs on your site Manually outdate your langpacks by editing the file $CFG->dataroot/lang/$langcode/$langcode.md5 and changing the checksum Run the scheduled task manually by running php admin/tool/task/cli/schedule_task.php --execute=\\tool_langimport\\task update_langpacks_task Remove a few langpacks
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-46210-master

      Description

      Quoting germanvaleroelizondo: "There are too many Moodle servers with outdated language packs worldwide."

      An option to automatically update installed lang packs would prevent Moodle admins to forget to do so.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              mina Nicolas Martignoni
              Peer reviewer:
              David Mudrák (@mudrd8mz)
              Integrator:
              Marina Glancy
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              cameron1729, David Mudrák (@mudrd8mz), Helen Foster
              Votes:
              11 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14