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

Option to display CLI upgrade messages in English

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: Installation
    • Labels:
    • Testing Instructions:
      Hide
      Help text
      1. Open a Terminal window & from your Moodle root execute
        php admin/cli/upgrade.php -h
        • Confirm that the help text contains a description for the --lang option.
      Case 1: The site's default language is set to English and lang parameter is not set.
      1. Login as admin and set the site's default language to English (Site administration ► Language ► Language settings).
      2. Open a Terminal window & from your Moodle root execute
        php admin/cli/upgrade.php
        • Confirm that the console outputs are displayed in English.
      Case 2: The site's default language is set to English and the lang parameter is set to another language that is installed.
      1. On the browser, login as an admin and install the Hebrew (he) language pack (Site administration ► Language ► Language packs)
      2. Back on the terminal, enter
        php admin/cli/upgrade.php lang=he
        • Confirm that the console outputs are displayed in Hebrew.
      Case 3: The site's default language is set to a non-English language and lang parameter is not set.
      1. On the browser, set the site's default language to Hebrew.
      2. Back on the terminal, enter
        php admin/cli/upgrade.php
        • Confirm that the console outputs are displayed in Hebrew.
      Case 4: The site's default language is set to a non-English language and lang parameter is set to a language that is not installed.
      1. Continuing from the previous case, enter
        php admin/cli/upgrade.php lang=unknownlanguage
        • Confirm that the console outputs are displayed in English.
      Case 5: The site's default language is set to a non-English language and lang parameter is set to a language that is installed.
      1. On the browser, install the Japanese (ja) language pack.
      2. Back on the terminal, run
        php admin/cli/upgrade.php lang=ja
        • Confirm that the console outputs are displayed in Japanese.
      Show
      Help text Open a Terminal window & from your Moodle root execute php admin/cli/upgrade.php -h Confirm that the help text contains a description for the --lang option. Case 1: The site's default language is set to English and lang parameter is not set. Login as admin and set the site's default language to English (Site administration ► Language ► Language settings). Open a Terminal window & from your Moodle root execute php admin/cli/upgrade.php Confirm that the console outputs are displayed in English. Case 2: The site's default language is set to English and the lang parameter is set to another language that is installed. On the browser, login as an admin and install the Hebrew (he) language pack (Site administration ► Language ► Language packs) Back on the terminal, enter php admin/cli/upgrade.php lang=he Confirm that the console outputs are displayed in Hebrew. Case 3: The site's default language is set to a non-English language and lang parameter is not set. On the browser, set the site's default language to Hebrew. Back on the terminal, enter php admin/cli/upgrade.php Confirm that the console outputs are displayed in Hebrew. Case 4: The site's default language is set to a non-English language and lang parameter is set to a language that is not installed. Continuing from the previous case, enter php admin/cli/upgrade.php lang=unknownlanguage Confirm that the console outputs are displayed in English. Case 5: The site's default language is set to a non-English language and lang parameter is set to a language that is installed. On the browser, install the Japanese (ja) language pack. Back on the terminal, run php admin/cli/upgrade.php lang=ja Confirm that the console outputs are displayed in Japanese.
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53260-master

      Description

      My admin user default web UI language is Hebrew, which is great for managing Moodle using the browser, but running CLI upgrades in the terminal (although it is UTF-8 enabled) is very challenging. So, it could be very useful to have an option to run the admin/cli/upgrade.php script with an option to temporarily see the upgrade process massages in English. (btw, I could be very useful feature to any of CLI scripts)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    23/May/16