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

H5P editor: support content-type translations

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-68271-master
    • Hide

      Setup

      1. Login as admin.
      2. Access to "Site administration / H5P / Manage H5P content types" and upload the find-the-hotspot.h5p attached file as H5P content types.
      3. Check the "Find the Hotspot" library is displayed in the "Installed H5P content types" tab.
      4. Access to "Site administration / H5P / Manage H5P content types" and upload the chart.h5p attached file as H5P content types.
      5. Check the "Find the Hotspot" library is displayed in the "Installed H5P content types" tab.
      6. Download the test_editor.php file attached in MDL-68227 and put it into the root folder.
      7. Access to "Site administration / Language / Language packs" and install "Español - Internacional (es)" and "Euskara (eu)" language packs.

       

      Testing scenario 1: Find the Hotspot - English

      1. Load https://yoursite/test_editor.php.
      2. In the "Select a content to create" dropdown, choose the option "Find the Hotspot" and click the "Create" button.
      3. Check the editor is displayed.
      4. Check all the strings are displayed in English.
      5. Open the "Text overrides and translations" section (at the end of the form).
      6. Check the content in the text field below "Textual representation of the score bar for those using a readspeaker" is "You got :num out of :total points".
      7. Check the Language drop-down contains 36 entries.
      8. Select "Spanish (Español)" from the Language drop-down and Confirm the action.
      9. Check the content in the text field below "Textual representation of the score bar for those using a readspeaker" now is "Tienes :num :puntos totales". 

      Testing scenario 2: Find the Hotspot - Spanish

      1. Go to the Dashboard.
      2. Select "Español - Internacional (es)" as the default language (using the dropdown in the header, next to the Moodle site name).
      3. Load https://yoursite/test_editor.php.
      4. In the "Select a content to create" dropdown, choose the option "Find the Hotspot" and click the "Create" button.
      5. Check the editor is displayed.
      6. Check the strings are displayed in Spanish (so no English string is displayed).
      7. Open the "Text overrides and translations" section (at the end of the form).
      8. Check the content in the text field below "Representación textual de la barra de puntaje para aquellos que usan un revisor lector en voz alta" is "Tienes :num :puntos totales".
      9. Select "English" from the Language drop-down and Confirm the action.
      10. Check the content in the text field below "Representación textual de la barra de puntaje para aquellos que usan un revisor lector en voz alta" is "You got :num out of :total points".

      Testing scenario 3: Chart - Spanish

      1. Go to the Dashboard.
      2. Select "Euskara (eu)" as the default language (using the dropdown in the header, next to the Moodle site name).
      3. Load https://yoursite/test_editor.php.
      4. In the "Select a content to create" dropdown, choose the option "Chart" and click the "Create" button.
      5. Check the editor is displayed.
      6. Check the strings are displayed in Euskera (so no English string is displayed).
      7. Open the "Text overrides and translations" section (at the end of the form).
      8. Check the content in the text field below "Irakurtzen duen bozgorailuak irudia diagrama bezala definitzen duen testua." is "Diagrama".
      9. Check the Language drop-down contains 15 entries.
      10. Select "Finnish (Suomi)" from the Language drop-down and Confirm the action.
      11. Check the content in the text field below "Irakurtzen duen bozgorailuak irudia diagrama bezala definitzen duen testua." now is "Kaavio".

       

      Show
      Setup Login as admin. Access to "Site administration / H5P / Manage H5P content types" and upload the find-the-hotspot.h5p attached file as H5P content types. Check  the "Find the Hotspot" library is displayed in the "Installed H5P content types" tab. Access to "Site administration / H5P / Manage H5P content types" and upload the chart.h5p attached file as H5P content types. Check  the "Find the Hotspot" library is displayed in the "Installed H5P content types" tab. Download the  test_editor.php  file attached in  MDL-68227  and put it into the root folder. Access to "Site administration / Language / Language packs" and install "Español - Internacional (es)" and "Euskara (eu)" language packs.   Testing scenario 1: Find the Hotspot - English Load  https:// yoursite /test_editor.php. In the "Select a content to create" dropdown, choose the option "Find the Hotspot" and click the "Create" button. Check  the editor is displayed. Check  all the strings are displayed in English. Open the "Text overrides and translations" section (at the end of the form). Check the content in the text field below "Textual representation of the score bar for those using a readspeaker" is "You got :num out of :total points". Check the Language drop-down contains 36 entries. Select "Spanish (Español)" from the Language drop-down and Confirm the action. Check the content in the text field below "Textual representation of the score bar for those using a readspeaker" now is "Tienes :num :puntos totales".  Testing scenario 2: Find the Hotspot - Spanish Go to the Dashboard. Select "Español - Internacional (es)" as the default language (using the dropdown in the header, next to the Moodle site name). Load  https:// yoursite /test_editor.php. In the "Select a content to create" dropdown, choose the option "Find the Hotspot" and click the "Create" button. Check  the editor is displayed. Check  the strings are displayed in Spanish (so no English string is displayed). Open the "Text overrides and translations" section (at the end of the form). Check the content in the text field below "Representación textual de la barra de puntaje para aquellos que usan un revisor lector en voz alta" is "Tienes :num :puntos totales". Select "English" from the Language drop-down and Confirm the action. Check the content in the text field below "Representación textual de la barra de puntaje para aquellos que usan un revisor lector en voz alta" is "You got :num out of :total points". Testing scenario 3: Chart - Spanish Go to the Dashboard. Select "Euskara (eu)" as the default language (using the dropdown in the header, next to the Moodle site name). Load  https:// yoursite /test_editor.php. In the "Select a content to create" dropdown, choose the option "Chart" and click the "Create" button. Check  the editor is displayed. Check  the strings are displayed in Euskera (so no English string is displayed). Open the "Text overrides and translations" section (at the end of the form). Check the content in the text field below "Irakurtzen duen bozgorailuak irudia diagrama bezala definitzen duen testua." is "Diagrama". Check the Language drop-down contains 15 entries. Select "Finnish (Suomi)" from the Language drop-down and Confirm the action. Check the content in the text field below "Irakurtzen duen bozgorailuak irudia diagrama bezala definitzen duen testua." now is "Kaavio".  

      H5P content-type libraries have their own JS language files. For now, the very first version of the editor (MDL-67814) doesn't implement the required methods for loading and using the information on these language files.

      List of tasks

      • Implement the required methods for supporting content-type libraries localization.
      • Investigate the best approach to load this information: database table vs MUC.
      • Try to find a mechanism to let users upgrade language strings (depending on the final solution, this could be done on a separate issue).

        1. chart.h5p
          107 kB
          Sara Arjona (@sarjona)
        2. find-the-hotspot.h5p
          803 kB
          Sara Arjona (@sarjona)
        3. Screenshot_1.png
          125 kB
          Janelle Barcega
        4. Screenshot_2.png
          80 kB
          Janelle Barcega
        5. Screenshot_3.png
          114 kB
          Janelle Barcega

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 1 hour, 7 minutes
                3d 1h 7m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.