QueenB Posted August 9, 2019 Report Share Posted August 9, 2019 I'm looking for any possible way on how to let users to switch Language in my DataPages. Any suggestions on how to achieve this? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
0 cheonsa Posted August 9, 2019 Report Share Posted August 9, 2019 Hi @QueenB, By default, computer browsers has an ability to translate the language of the pages automatically. One other possible solution is to create different DataPages for different Languages. Then, you will have an HTML block with a link inside that will redirect to the other DataPage based on the selected language. Hope this helps. -kristina QueenB 1 Quote Link to comment Share on other sites More sharing options...
0 SinJunYoung Posted August 9, 2019 Report Share Posted August 9, 2019 My suggestion is to also create this inside a Header and Footer of the DataPage (reference: Header and Footer) and create the link and paste it from there as HTML block will be generated for each records that is placed inside the DataPage. Quote Link to comment Share on other sites More sharing options...
0 Armopankaj Posted May 29, 2021 Report Share Posted May 29, 2021 But if we want to change the functionality in a page then we need to repeat the process too tedious for a practical use case DaveS 1 Quote Link to comment Share on other sites More sharing options...
0 Inscriptor Posted November 8, 2021 Report Share Posted November 8, 2021 Hi QueenB, Please consider using Google Translate Button widget. Check the guide at w3school: https://www.w3schools.com/howto/howto_google_translate.asp The details on usage of this widget are in this Google Developers' Blog post: https://developers.google.com/search/blog/2020/05/google-translates-website-translator It might worth sing-up your subdomain in the form by the link in the article, as it is required by Google. I have put the JS code in the Footer of Form, Report and HTML DataPage and it works as expected. All the DataPage text content is being translated to the language chosen in the widget. Regards, Quote Link to comment Share on other sites More sharing options...
0 futurist Posted January 9, 2023 Report Share Posted January 9, 2023 Hi everyone! I thought of sharing it here since this seems kind of related, but if you wish to prevent certain elements (HTML elements, field labels, etc.) on a DataPage to be translated by the web page's translate option, you can use the "translate" attribute and set it to "no": For custom elements created on HTML blocks, they would look something like: <p translate="no">Company name</p> For labels of DataPage fields, it would require script. You would first have to select the element you want to be prevented from translation using a document.querySelector and use the setAttribute() method to add the "translate" attribute and set its value to "no", like so: <script> document.querySelector("[for='InsertRecordField1']").setAttribute("translate", "no"); </script> before translation: after translation, without the solution indicated above (texts are translated from english to filipino by the way): after translating, with the solution applied on "Company name" and "Field1": Quote Link to comment Share on other sites More sharing options...
Question
QueenB
I'm looking for any possible way on how to let users to switch Language in my DataPages. Any suggestions on how to achieve this?
Thanks in advance.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.