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

User Tour: Language string ID is not working anymore

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-73188-master-3
    • 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: Read from language pack and Enter manually.
      6. Change the Content type select box to Read from language pack.
      7. Verify that we will have a new text area called Moodle language identifier.
      8. Verify that we do not see the Content text area editor.
      9. Change the Content type select box to Enter manually.
      10. Verify that we will not see the Moodle language identifier.
      11. 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: Read from language pack.
      6. Set the Moodle language identifier to: tour_activityinfo_course_teacher_content_abc,tool_usertours
      7. Click Save changes.
      8. Verify that you will see "Invalid language identifier".
      9. Set the Moodle language identifier to: tour_activityinfo_course_teacher_content,tool_usertours
      10. Click Save changes.
      11. Verify that you will see New: Activity information
      12. 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.
      13. Click on Edit link.
      14. Verify that Title's value is: tour_activityinfo_course_teacher_title,tool_usertours
      15. Verify that Moodle language identifier's value is: tour_activityinfo_course_teacher_content,tool_usertours

      Create a new step with manually entered 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: Enter manually.
      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).

      Users allow to create tour step that contain images only

      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: Enter manually.
      6. Drag image to upload to atto editor or use atto editor toolbar to upload the image.
      7. Do not input any other text into the editor.
      8. Click Save changes.
      9. Verify that you will see New: Activity information
      10. Verify that you will see the image that you was uploaded.
      11. Click on the Edit link.
      12. Verify that Title's value is: tour_activityinfo_course_teacher_title,tool_usertours
      13. Verify that the Content's value is: the image that you was uploaded.

       

      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: Read from language pack and Enter manually. Change the Content type select box to Read from language pack. Verify that we will have a new text area called Moodle language identifier. Verify that we do not see the Content text area editor. Change the Content type select box to Enter manually. Verify that we will not see the Moodle language identifier. 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: Read from language pack. Set the Moodle language identifier to: tour_activityinfo_course_teacher_content_abc,tool_usertours Click Save changes. Verify that you will see "Invalid language identifier". Set the Moodle language identifier to: tour_activityinfo_course_teacher_content,tool_usertours 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 Moodle language identifier's value is: tour_activityinfo_course_teacher_content,tool_usertours Create a new step with manually entered 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: Enter manually. 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). Users allow to create tour step that contain images only 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: Enter manually. Drag image to upload to atto editor or use atto editor toolbar to upload the image. Do not input any other text into the editor. Click Save changes. Verify that you will see New: Activity information Verify that you will see the image that you was uploaded. 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: the image that you was uploaded.  
    • 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

        1. Screenshot 1.png
          Screenshot 1.png
          45 kB
        2. Screenshot 2.png
          Screenshot 2.png
          56 kB
        3. Screenshot 3.PNG
          Screenshot 3.PNG
          37 kB

        Issue Links

          Activity

            People

              huongn@moodle.com Huong Nguyen
              huongn@moodle.com Huong Nguyen
              Shamim Rezaie Shamim Rezaie
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Gladys Basiana Gladys Basiana
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 2 days, 5 hours, 40 minutes
                  1w 2d 5h 40m