• Resolved jstead

    (@jstead)


    Hi,
    Small one, we are creating multilingual h5p items and noticed the retry button string in Find the hotspot is missing.

    Only options are Title, Background Image, Task Description, correct feedback and incorrect feedback. But no Retry Button field as in other h5p elements.

    The retry button string is also missing from the content.json file in /exports/ that we are using to translate. (other h5p elements have it usually under params.UI or params.l10n)

    Thanks,
    Jason

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author icc0rz

    (@icc0rz)

    I had trouble finding it as well. It seems to have been placed under “Step 2 –?Hotspots” and then open the “Localization” group.

    Feel free to create an issue for moving this where the author can see it, on GitHub.

    Thread Starter jstead

    (@jstead)

    Is this GitHub for H5P in general or specifically the WordPress plugin. (or are they 1 and the same?)

    Comparing other H5P interactive content type libraries, it looks to be in a similar position compared to others. And the noneSelectedFeedback is a sibling field in the same location and is working.

    I then looked at code for the editing page of the Find the Hotspot element and noticed this section

    <div class="common hidden collapsed">
        <div class="h5peditor-label" title="Expand/Collapse" role="button" tabindex="0">
            <span class="icon"></span>Text overrides and translations
        </div>
        <div class="fields">
            <p class="desc">Here you can edit settings or translate texts used in this content.</p>
        </div>
    </div>

    hidden, but outside of the
    <div class="h5p-image-hotspot-question-editor content">
    section that looks to be created within image-hotspot-question-editor.js in the H5P wordpress plugin.
    In this file I could also find mention of noneSelectedFeedback but nothing for the l10n field.
    Is this the location that would need to be edited to add this field to the WordPress edit screen?

    Thanks,
    Jason

    Plugin Author icc0rz

    (@icc0rz)

    The page I linked to is only for the Find the Hotspot content type. Posting an issue there will notify those maintaining the content type.

    Did you not find the field when you pressed Step 2 or did it not work when changing it?
    To get this field into the same place as the other content types the authors would have to modify the semantics.json file.

    Thread Starter jstead

    (@jstead)

    Step 2 for me only had the above code (div.common hidden collapsed) for the “Text overrides and translations”… an empty wrapper with display:none; and no content.

    I think the content type is fine. The field is there where it should be in semantics.json. The field 2 up from it “noneSelectedField” appears in the plugin perfectly.

    In the “Interactive Content – H5P” plugin the image-hotspot-question-editor.js file, there is no reference to the l10n field (missing field) in semantic.json file where as the reference to noneSelectedField is there.

    So to fix the missing field, I beleive the l10n field needs to be added into image-hotspot-question-editor.js within the wordpress plugin, not the original H5P content type.

    Plugin Author thomasmars

    (@thomasmars)

    Hi,
    there’s no reason why the common fields should have the class “hidden”, like yours does, have you made any hooks for wordpress, themes or scripts that may be modifying the DOM ?
    I also think you’re looking the wrong place in the HTML, as the localization group containing the “retry” string is within the “.h5p-image-hotspot-question-editor content” element, specifically on the second step of the wizard, like icc pointed out.
    The “retry” localization field has the “.field-name-retryText” class, if you wish to search for that.

    Do you have a public page where we can observe the issue, to help you debug further?
    Could you also specify which version of the H5P plugin you’re using and what version of “Find the Hotspot” you’re using ?

    Thread Starter jstead

    (@jstead)

    Hi, no hooks or anything that should affect it. We use about 30 H5P elements across 20 lessons with this the only missing translation.

    Image 1 Is how I see step 2 when I first open it.

    Image 2 Shows the hidden section outside of the div.tree(blue) section.

    Image 3 Shows that if I disable display:none; and add clear:both; to this hidden field, I see the text override seciton, that I assume should have this button text?

    Image 4 Shows the relation to semantic.json to in that one field in the array works one doesn’t.

    Image 5 Shows how image-hotspot-question-editor.js within the wordpress plugin references the working field from semantic.js, but not the non working one.

    Sorry for tonne of images, but cant give access to this box unfortunatly.

    Using version 1.10.1 of the plugin and 1.5.0 of the library item

    Thanks,
    Jason

    Thread Starter jstead

    (@jstead)

    Hi, just seeing if the above images gave any more insight into the possible issue?

    Plugin Author thomasmars

    (@thomasmars)

    Hi,
    It seems like you have an old version of Image Hotspot Question, can you update to version 1.6 ? Can be found at https://h5p.org/image-hotspot-question
    I’m also curious to know if you’re using a specific language for WordPress ?

    Best regards, Thomas

    • This reply was modified 6 years, 8 months ago by thomasmars.
    Thread Starter jstead

    (@jstead)

    Great, that looks to have fixed it. Other edits to the content type look great too!

    Is there a single location anywhere we can see notifications of content updates (current version numbers) to keep track of them?

    Notice in the libraries section of the plugin there is a grayed out update icon… is this just stating that there is one available and to go to a link similar to above and download the latest version, install it (turning the greyed out icon green) then update?

    Just want to make sure this was the correct process

    Cheers,
    Jason

    Thread Starter jstead

    (@jstead)

    Ok found the update option within the newer “add content” hub as mentioned here : https://h5p.org/update-all-content-types

    Any change logs available to read prior to updating just in case significant changes may affect live content?

    Also forgot to answer, but our site base in English, but are also creating a German version using the WPML plugin

    Cheers,
    Jason

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Find Hotspot Field’ is closed to new replies.