Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
July 7, 2023 at 1:27 pm in reply to: Does automatically generated text appear only in English? #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 3, 2023 at 5:11 pm in reply to: Does automatically generated text appear only in English? #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!
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)