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

Add import to tool_customlang

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Test CLI version:
      1. Download the attached customlang_en.zip. Take note of its path.
      2. Open a terminal in your instance root path
      3. Execute the PHP command:

        php  admin/tool/customlang/cli/import.php --source=/path/to/customlang_en.zip
        

        1. Check "String core/administrationsite updated successfully." appears in the output
      4. Now execute: php  admin/tool/customlang/cli/import.php --checkin
        1. Check "Save changes to the language pack" appears in the output
      5. Open a browser and login in the instance as an admin
        1. Check that "Site administration" link (located in the drawer in Boost and in the settings block in Classic) is now "Uploaded custom string"
      Show
      Test CLI version: Download the attached  customlang_en.zip . Take note of its path. Open a terminal in your instance root path Execute the PHP command: php  admin/tool/customlang/cli/import.php --source=/path/to/customlang_en.zip Check "String core/administrationsite updated successfully." appears in the output Now execute: php  admin/tool/customlang/cli/import.php --checkin Check "Save changes to the language pack" appears in the output Open a browser and login in the instance as an admin Check that "Site administration" link (located in the drawer in Boost and in the settings block in Classic) is now "Uploaded custom string"
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE
    • Pull 3.10 Branch:
      MDL-69583-310
    • Pull Master Branch:
      MDL-69583-master
    • Sprint:
      Moppies Kanban

      Description

      Project from MootDACH20 - Devcamp. With this new feature, the tool_customlang could import zips or php with language customization. Libraries to parse the PHP file are based on the current AMOS implementation.

        Attachments

        1. image-2020-10-15-15-28-05-748.png
          82 kB
          Janelle Barcega

          Issue Links

            Activity

              People

              Assignee:
              tusefomal Ferran Recio
              Reporter:
              tusefomal Ferran Recio
              Peer reviewer:
              Carlos Escobedo
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days, 3 hours
                  4d 3h