PennController for IBEX › Forums › Support › Does automatically generated text appear only in English?
- This topic has 4 replies, 2 voices, and was last updated 2 years, 3 months ago by
Jeremy.
-
AuthorPosts
-
June 29, 2023 at 2:22 pm #10720
grachekParticipantHello!
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!
-DarbyJune 30, 2023 at 6:08 am #10721
JeremyKeymasterHello 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
July 3, 2023 at 5:11 pm #10722
grachekParticipantHello 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!
July 7, 2023 at 1:27 pm #10731
grachekParticipantoops 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 );July 10, 2023 at 11:13 am #10732
JeremyKeymasterHi,
The
sendingResultsMessageandprogressBarTextvariables 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
-
AuthorPosts
- You must be logged in to reply to this topic.