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

Allow to specify aliases for languages names to be displayed in the language menu

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Install several language packs
      2. Make sure they appear in the language selector
      3. Modify configuration setting 'langlist' to include only some of the languages (at least 2)
      4. Make sure only selected languages are now displayed in the selector
      5. Add aliases to some languages as in the configuration setting example
      6. Make sure the aliases are displayed instead of the full names in the language selector (check both the user's language preference in preferences, as well as the language selector in the boost header)

      If left blank, all languages installed on the site will be displayed in the language menu. Alternatively, the language menu may be shortened by entering a list of language codes separated by commas e.g. en,de,fr. If desired, a different name for the language than the language pack name may be specified using the format: language code|language name e.g. en_kids|English,de_kids|Deutsch.

      Show
      Install several language packs Make sure they appear in the language selector Modify configuration setting 'langlist' to include only some of the languages (at least 2) Make sure only selected languages are now displayed in the selector Add aliases to some languages as in the configuration setting example Make sure the aliases are displayed instead of the full names in the language selector (check both the user's language preference in preferences, as well as the language selector in the boost header) If left blank, all languages installed on the site will be displayed in the language menu. Alternatively, the language menu may be shortened by entering a list of language codes separated by commas e.g. en,de,fr. If desired, a different name for the language than the language pack name may be specified using the format: language code|language name e.g. en_kids|English,de_kids|Deutsch.
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-65236-master

      Description

      Currently the names of the languages often act as descriptions of language variant in the "Language packs" list. For example, in this list there are 3 German languages, five English language variants and 6 Spanish.

      But normally the site admin would install only one of the Spanish variants, one of the English variants, etc. And they want to call them in the menu simply "English" and "Español" (or even "Castellano"), without any suffixes or Moodle internal language codes.

      We already have a setting "Languages on language menu" that lists the languages to be used in the menu, why not use the same setting to give languages aliases.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 10 minutes
                  4h 10m