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

Allow searching of available language packs

    XMLWordPrintable

Details

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-70632-311
    • Hide

      Manual test

      1. Navigate to Language > Language packs in site administration
      2. Enter "spanish" in the Available language packs > Search field
      3. Confirm only Spanish language packs are listed
      4. Enter "german" in the Available language packs > Search field
      5. Confirm only German language packs are listed
      6. Select German / Deutsch (de)
      7. Press Install selected language pack(s)
      8. Confirm you see the message Language pack 'de' was successfully installed

      Behat test

      1. Add the following to your site config.php:

        define('TOOL_LANGIMPORT_REMOTE_TESTS', 1);
        

      2. Run the following (or equivalent), confirm passes:

        $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Manage language packs"
        

      Show
      Manual test Navigate to Language > Language packs in site administration Enter "spanish" in the Available language packs > Search field Confirm only Spanish language packs are listed Enter "german" in the Available language packs > Search field Confirm only German language packs are listed Select German / Deutsch (de) Press Install selected language pack(s) Confirm you see the message Language pack 'de' was successfully installed Behat test Add the following to your site config.php : define('TOOL_LANGIMPORT_REMOTE_TESTS', 1); Run the following (or equivalent), confirm passes: $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Manage language packs"

    Description

      MDL-70558 made it easier to locate available language packs from the language import tool. We can improve that further by allowing the list of language packs to be searched (in my case, I wanted to find all Workplace packs )

      At the same time I've set a height on the two <select> elements because some language pack options (e.g. those with Chinese characters) cause the select list to noticeably shrink/grow when using the JS search

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
              Andrew Lyons Andrew Lyons
              Anna Carissa Sadia Anna Carissa Sadia
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 55 minutes
                  5h 55m