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

Allow admin to define the language to use in links for documentation pages

    Details

    • Testing Instructions:
      Hide
      • With a clean Moodle install in english language, add at least one more language to it.
      • Create a new user and change it's language from english to the other one you have installed.
      • Make sure this user has "moodle/site:doclinks" allowed.
      • Go to Site Administration -> Appearance -> Moodle Docs and set "Language for docs" to english.
        ( Sign in as the user and go to "My Home". See that the "Moodle Docs for this page" link at the bottom of the page points to english version instead of the one in user's language.
      Show
      With a clean Moodle install in english language, add at least one more language to it. Create a new user and change it's language from english to the other one you have installed. Make sure this user has "moodle/site:doclinks" allowed. Go to Site Administration -> Appearance -> Moodle Docs and set "Language for docs" to english. ( Sign in as the user and go to "My Home". See that the "Moodle Docs for this page" link at the bottom of the page points to english version instead of the one in user's language.
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-23514-master

      Description

      There are two major reasons an admin would like to user force a language to docs:

      1. I am using an non standard language pack (let's say pt_br_my-institution-version), and would like to use it's parent language for docs, but it seems this is not how moodle works right now
      2. I think the wiki on my language has almost no documentation and i think that a reasonable part of his/her users can read the english version or maybe copy and parte it on an automatic translator so in the end it would be better to direct them to the english version

      I know that new features are not welcome in 1.9 anymore, but i didn't have the 2.0 code right now. I will port it to 2.0 in the next days.

      Hope you like.

      =)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14