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

remotelangnotavailable lang string wording needs improving

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2, 3.2
    • Fix Version/s: 3.3
    • Component/s: Language
    • Labels:
    • Testing Instructions:
      Hide
      1. Simulate a situation where your site can't access the download server to fetch lang pack. This can be done by putting your machine with the test site offline, or setting curlsecurityallowedport so that it does not allow fetching from port 443 etc.
      2. Go to Site administration > Language > Language packs
      3. Check that the message "Unable to connect to the download server. It is not possible to install or update the language pakcs..." provides a link that takes you to the actual download page.
      Show
      Simulate a situation where your site can't access the download server to fetch lang pack. This can be done by putting your machine with the test site offline, or setting curlsecurityallowedport so that it does not allow fetching from port 443 etc. Go to Site administration > Language > Language packs Check that the message "Unable to connect to the download server. It is not possible to install or update the language pakcs..." provides a link that takes you to the actual download page.
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-56527-master

      Description

      The string remotelangnotavailable in tool_langimport.php points to a page that redirects to a location other than what you would expect:

      "Because Moodle cannot connect to download.moodle.org, it is not possible for language packs to be installed automatically. Please download the appropriate ZIP file(s) from <a href="https://download.moodle.org/langpack/">download.moodle.org/langpack</a>, copy them to your {$a} directory and unzip them manually."

      The link https://download.moodle.org/langpack redirects to https://docs.moodle.org/31/en/Language_packs, from where you can not download any langpacks. I have added a sub header (h3) to the documentation and modified the content a bit to make it easier to find the download link there, but I think it would be best also to change the text in the lang string remotelangnotavailable. It could be something like

      "Because Moodle cannot connect to download.moodle.org, it is not possible for language packs to be installed automatically. Please download the appropriate ZIP file(s). See <a href="https://download.moodle.org/langpack/">Language packs and manual download</a> in Moodle's documentation, for at link to the download page for your Moodle version."

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              benteo Bente Olsen
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              David Monllaó
              Tester:
              cameron1729
              Participants:
              Component watchers:
              cameron1729, David Mudrák (@mudrd8mz), Helen Foster
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/17