Does automatically generated text appear only in English?

PennController for IBEX Forums Support Does automatically generated text appear only in English?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10720
    grachek
    Participant

    Hello!

    I have a question about whether text that is automatically generated by PC Ibex (like the support bar and the resource loading message) appears in the language of the user’s computer, or if it is set to English by default. I’m running a task with Japanese speakers and want to make sure they can read messages about things loading and results sending to the server.

    Thank you!
    -Darby

    #10721
    Jeremy
    Keymaster

    Hello Darby,

    Some messages can be customized, for example those coming from the original IBEX engine. For other texts with no pre-set method to edit them, you can use the trick described in this post

    Jeremy

    #10722
    grachek
    Participant

    Hello Jeremy,

    Thank you! The trick from the post you linked to worked perfectly for the preloading message! It didn’t seem to work for the sendingResultsMessage or the progressBarText though. Is there something else that I have to do to change the text in those elements? Here is the code I tried for the progress bar for reference:

    //change progress bar text
    const replaceProgressBarText = ()=>{
        const progressBarText = $(".PennController-PennController > div");
        if (progressBarText.length > 0 && preloadingMessage[0].innerHTML.match(/^<p>progress/))
            progressBarText.html("<p>プログレスバー</p>");
        window.requestAnimationFrame( replaceProgressBarText );
    };
    window.requestAnimationFrame( replaceProgressBarText );

    Thanks!

    #10731
    grachek
    Participant

    oops replying again because of a typo in my previous code example

    //change progress bar text
    const replaceProgressBarText = ()=>{
      const progressBarText = $(“.PennController-PennController > div”);
      if (progressBarText.length > 0 && progressBarText[0].innerHTML.match(/^<p>progress/))
        progressBarText.html(“<p>プログレスバー</p>”);
      window.requestAnimationFrame( replaceProgressBarText );
    };
    window.requestAnimationFrame( replaceProgressBarText );
    #10732
    Jeremy
    Keymaster

    Hi,

    The sendingResultsMessage and progressBarText variables need to be set to the text you want to display, as explained in the IBEX documentation, eg:

    var sendingResultsMessage = "Envoi des résultats en cours...";
    var progressBarText = "Progression";

    Jeremy

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.