Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Pushpendra Singh Chauhan Posted June 28, 2023 Posted June 28, 2023 Hi, I want my site in 3 languages.Is this possible to change language through language translation APIs? If yes, pls suggest which one is supported by IPS?
Jim M Posted June 28, 2023 Posted June 28, 2023 Sorry there are no means to translate languages through an API. There are already made language packs available in our Marketplace though: https://invisioncommunity.com/files/category/161-translations/
Pushpendra Singh Chauhan Posted June 29, 2023 Author Posted June 29, 2023 15 hours ago, Jim M said: There are already made language packs available in our Marketplace though: https://invisioncommunity.com/files/category/161-translations/ As I know these packs translate pre defined data. What if I have pages or forum and I want real-time translation in two languages? How can I achieve this?
Marc Posted June 29, 2023 Posted June 29, 2023 13 minutes ago, Pushpendra Singh Chauhan said: As I know these packs translate pre defined data. What if I have pages or forum and I want real-time translation in two languages? How can I achieve this? Sorry, we do not provide any such real time translation capabilities at present
Randy Calvert Posted June 29, 2023 Posted June 29, 2023 You might look at Google translate. https://www.dummies.com/article/technology/notable-websites/google/how-to-install-google-translates-website-translator-plugin-145074/
Nathan Explosion Posted June 29, 2023 Posted June 29, 2023 (edited) This post was recognized by Marc! "Neat :)" Nathan Explosion was awarded the badge 'Helpful' and 5 points. If you have Pages, create a custom block using Manual HTML and add the following code in the content (if your existing language isn't English then change the 'en' element - https://cloud.google.com/translate/docs/languages) <div id="google_translate_element"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement( {pageLanguage: 'en'}, 'google_translate_element' ); } </script> <script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> Once created, drag it in place onto your site: Be aware that sometimes Google decide to make that unavailable. Edited June 29, 2023 by Nathan Explosion Meddysong 1
Pushpendra Singh Chauhan Posted July 5, 2023 Author Posted July 5, 2023 On 6/29/2023 at 6:17 PM, Nathan Explosion said: If you have Pages, create a custom block using Manual HTML and add the following code in the content (if your existing language isn't English then change the 'en' element - This is good but does not solve the purpose. What if I have a third-party API for language translation? Is there any possibility to integrate this with my website with some custom modifications?
Nathan Explosion Posted July 5, 2023 Posted July 5, 2023 (edited) Just to clarify, then...what you are seeking is a feature that translates the entire page at the time of the user requesting the page, so that the served page is entirely in their language? Edited July 5, 2023 by Nathan Explosion
Pushpendra Singh Chauhan Posted July 5, 2023 Author Posted July 5, 2023 (edited) 14 minutes ago, Nathan Explosion said: Just to clarify, then...what you are seeking is a feature that translates the entire page at the time of the user requesting the page, so that the served page is entirely in their language? Yes but Google Translate is not on my list. Edited July 5, 2023 by Pushpendra Singh Chauhan
Nathan Explosion Posted July 5, 2023 Posted July 5, 2023 What third-party API are you looking to use?
Pushpendra Singh Chauhan Posted July 5, 2023 Author Posted July 5, 2023 1 minute ago, Nathan Explosion said: What third-party API are you looking to use? I have the option to use some Indian government-approved APIs or you may suggest a better option.
Nathan Explosion Posted July 5, 2023 Posted July 5, 2023 Oh no...I'm not suggesting anything at all. I was just going to point you towards the plans/pricing details for your chosen option to provide you an indication of how expensive your requirement may become.
Pushpendra Singh Chauhan Posted July 5, 2023 Author Posted July 5, 2023 Just now, Nathan Explosion said: Oh no...I'm not suggesting anything at all. I was just going to point you towards the plans/pricing details for your chosen option to provide you an indication of how expensive your requirement may become. Expense is ok but is this doable with Invision Community Suite? I did not get any clue from the IPS team in this regard.
Nathan Explosion Posted July 5, 2023 Posted July 5, 2023 (edited) Yep - it's theoretically doable. Note: that's not me offering to do it, by the way. Edited July 5, 2023 by Nathan Explosion
Pushpendra Singh Chauhan Posted July 5, 2023 Author Posted July 5, 2023 7 minutes ago, Nathan Explosion said: Yep - it's theoretically doable. Thanks. Actually, First I tried the language localization of IPS, in phrases and html/php pages this is working fine. But in db pages, if I use {lang="cust_service"} in the source this does not work as the editor changes this to {lang="cust_service"}
JustinHawk Posted July 5, 2023 Posted July 5, 2023 24 minutes ago, Pushpendra Singh Chauhan said: Actually, First I tried the language localization of IPS, in phrases and html/php pages this is working fine. But in db pages, if I use {lang="cust_service"} in the source this does not work as the editor changes this to {lang="cust_service"} Why not just then simply create three different fields in pages for input and use those as for language translation and then modify template of pages to show as per user selected language. And if you want the translation to be done via some api that you can do via extending the pages app and save those values in that fields. Or use IPS API and do translation at local, post and save in new fields. This way you can easily have your data in api as well as you can also make changes in template to display as per right language. 53 minutes ago, Pushpendra Singh Chauhan said: Expense is ok If expense is not an issue drop me dm, I will help. --- Ignore typos sent via mobile.
Recommended Posts