Thanks for the workaround, @jdeeve. Rather annoying that it pops open the browser’s print dialog automatically and removes much of the formatting but it’s better than a blank page. It would be nice if there was a query string parameter that forced the server side rendering Discourse falls back to when JS is disabled and for web index crawlers. Anyway whether it’s due to a google translate limitation or a discourse limitation this is something that works well with the old forum and doesn’t with this new one. I think ensuring there is an easy way for people to get a translation should be a priority.
Oof, there are a couple annoying things happening at once:
The version of Firefox (Android) I was using doesn’t actually support printing, so it worked fine for me.
The extent to which printing blocks the page is nonstandard. (Chrome begins to print the page when asked but keeps on running scripts.) If you cancel the print preview dialog, the translation will commence.
Google Translate isn’t content to read the <noscript> version of a page, it insists on being clever.
Google Translate no longer translates web pages server side, but delivers a page that translates chunks of text as they scroll into view, so you need to scroll to the bottom of the page for the entire text to get translated.
Instead of /print you can use ?_escaped_fragment_, but this does not deliver the whole topic on a single page.
For completeness, omitting the second number in the URL does work in Google translate on Android, although of course the context is completely lost you have to find the bit of the thread you were trying to translate.
Another thing that works is using Google Chrome.
Google Translate is tightly integrated in that browser and it doesn’t require the print workaround. Not an ideal solution for those of us who prefer other browsers though.
Thanks for the recommendation. I’ve just tried it out to see if it works better than the addon I’ve been using (To Google Translate). Unfortunately it seems like the full page translation works in the same way, and fails with client side rendering.
Is this working for you in some other way, or do you just select blocks of text to translate? Maybe that’s what you mean by “works great”. Translating post by post certainly works better than the other addon I’ve been using:
You can’t use Google Translate, because the site doesn’t work with that, but do you see the little “globe” below each post that you want to translate? Click that, on a post by post basis, and you can see translations.
It’s obviously not as flexible a solution, and the translations aren’t as good, but it does work.