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

User Tour: Language string ID is not working anymore

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MDL-73188-master-2
    • Hide

      Initial setup

      1. Create a new user tour with below detail:
        • Name: First tour.
        • Description: My first tour.
        • Apply to URL match: /my/%
        • Tour is enabled: Checked.

      Users can choose the content type of the tour step

      1. Open the User tour setting page,
      2. Click on the View link of the My first tour.
      3. Click on the New step link.
      4. Verify that we will have a new Content type select box.
      5. Verify that the Content type select box should have 2 types of value: HTML and Moodle language string.
      6. Change the Content type select box to Moodle language string.
      7. Verify that we will have a new text field called Language identifier.
      8. Verify that we will have a new auto-complete text field called Component.
      9. Verify that we do not see the Content text area editor.
      10. Change the Content type select box to HTML.
      11. Verify that we will not see the Language identifier and Component.
      12. Verify that we will see the Content text area editor.

      Create a new step with Moodle language content type

      1. Open the User tour setting page.
      2. Click on the View link of the My first tour.
      3. Click on the New step link.
      4. Set the Title to: tour_activityinfo_course_teacher_title,tool_usertours
      5. Set the Content type select box to: Moodle language string.
      6. Set the Language identifier to: tour_activityinfo_course_teacher_content_abc
      7. Set the Component autocomplete to: User tours (tool_usertours).
      8. Click Save changes.
      9. Verify that you will see "Invalid language identifier".
      10. Set the Language identifier to: tour_activityinfo_course_teacher_content
      11. Click Save changes.
      12. Verify that you will see New: Activity information
      13. Verify that you will see New course settings 'Show completion conditions' and 'Show activity dates' enable you to choose whether activity completion conditions (if set) and/or dates are displayed for students on the course page.
      14. Click on Edit link.
      15. Verify that Title's value is: tour_activityinfo_course_teacher_title,tool_usertours
      16. Verify that Language identifier's value is: tour_activityinfo_course_teacher_content
      17. Verify that the Component auto complete's value is: User tours (tool_usertours).

      Create a new step with HTML content type

      1. Open the User tour setting page.
      2. Click on the View link of the My first tour.
      3. Click on the New step link.
      4. Set the Title to: tour_activityinfo_course_teacher_title,tool_usertours
      5. Set the Content type select box to: HTML.
      6. Set the Content field to: Test content (Feel free to use the Atto toolbar).
      7. Click Save changes.
      8. Verify that you will see New: Activity information
      9. Verify that you will see Test content (Or anything that was input).
      10. Click on the Edit link.
      11. Verify that Title's value is: tour_activityinfo_course_teacher_title,tool_usertours
      12. Verify that the Content's value is: Test content (Or anything that was input).

       

      Show
      Initial setup Create a new user tour with below detail: Name: First tour. Description: My first tour. Apply to URL match: /my/% Tour is enabled: Checked. Users can choose the content type of the tour step Open the User tour setting page, Click on the View link of the My first tour. Click on the New step link. Verify that we will have a new Content type select box. Verify that the Content type select box should have 2 types of value: HTML and Moodle language string. Change the Content type select box to Moodle language string. Verify that we will have a new text field called Language identifier. Verify that we will have a new auto-complete text field called Component. Verify that we do not see the Content text area editor. Change the Content type select box to HTML. Verify that we will not see the Language identifier and Component. Verify that we will see the Content text area editor. Create a new step with Moodle language content type Open the User tour setting page. Click on the View link of the My first tour. Click on the New step link. Set the Title to: tour_activityinfo_course_teacher_title,tool_usertours Set the Content type select box to: Moodle language string. Set the Language identifier to: tour_activityinfo_course_teacher_content_abc Set the Component autocomplete to: User tours (tool_usertours). Click Save changes. Verify that you will see "Invalid language identifier". Set the Language identifier to: tour_activityinfo_course_teacher_content Click Save changes. Verify that you will see New: Activity information Verify that you will see New course settings 'Show completion conditions' and 'Show activity dates' enable you to choose whether activity completion conditions (if set) and/or dates are displayed for students on the course page. Click on Edit link. Verify that Title's value is: tour_activityinfo_course_teacher_title,tool_usertours Verify that Language identifier's value is: tour_activityinfo_course_teacher_content Verify that the Component auto complete's value is: User tours (tool_usertours). Create a new step with HTML content type Open the User tour setting page. Click on the View link of the My first tour. Click on the New step link. Set the Title to: tour_activityinfo_course_teacher_title,tool_usertours Set the Content type select box to: HTML. Set the Content field to: Test content (Feel free to use the Atto toolbar). Click Save changes. Verify that you will see New: Activity information Verify that you will see Test content (Or anything that was input). Click on the Edit link. Verify that Title's value is: tour_activityinfo_course_teacher_title,tool_usertours Verify that the Content's value is: Test content (Or anything that was input).  
    • 1
    • HQ Team International CIH2-212, HQ Team International CIH2-213, HQ Team International CIH2-214, HQ Team International CIH2-215, HQ Team International CIH2-216

    Description

      After MDL-61674 has landed, the language string ID is not working anymore for the step's content.

      As discussed with dobedobedoh,

      We will have a UI:

      [Dropdown select]
      -> HTML
      -> Moodle language string

      Then have both the editor, and plain text box (or two) for identifier,component

      If the dropdown is set to HTML, hide the langstring option
      If it's set to string, hide the editor.

       

      And we do not support the langstring in the HTML Editor.

      Attachments

        Issue Links

          Activity

            People

              huongn@moodle.com Huong Nguyen
              huongn@moodle.com Huong Nguyen
              Shamim Rezaie Shamim Rezaie
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Mar/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 1 day, 6 hours
                  1w 1d 6h