Page 1 of 1
S3 Translator Help
Posted: 2022-12-07, 12:52
by dtoxic
Does anyone have problems with this? Translate selected text works fine but translate page does not
any solution or updates for this extension? i have the version 5.35 on the latest Pale Moon
Edit:
Here is the Error thrown if this makes sense to anyone
Error: SyntaxError: An invalid or illegal string was specified
Source File:
https://translate.googleapis.com/_/tran ... /m=el_main
Line: 468
Re: S3 Translator Help
Posted: 2022-12-07, 16:41
by therube
Perhaps related to...
translate.google.com - website translation problem
viewtopic.php?f=70&t=29165
Re: S3 Translator Help
Posted: 2022-12-07, 16:49
by dtoxic
thx for the info,but i cant seem to get it to work
Re: S3 Translator Help
Posted: 2022-12-07, 17:39
by Moonchild
Yeah, same error, same file, same line.
Re: S3 Translator Help
Posted: 2022-12-07, 19:22
by dtoxic
So that's it for "translate page" option for now, i assume there wont be an update to address this for PM
Re: S3 Translator Help
Posted: 2022-12-07, 20:45
by Kris_88
about:config
dom.enable_performance_navigation_timing = false
Re: S3 Translator Help
Posted: 2022-12-07, 21:04
by dtoxic
huh? the hell did you come from with such an easy solution? what are you a necromancer....anyway..thank you
Re: S3 Translator Help
Posted: 2022-12-07, 21:20
by Kris_88
Re: S3 Translator Help
Posted: 2022-12-07, 21:32
by therube
OK, so just how did you come up with that?
And just what does that Pref do?
And why does flipping it make things work?
Thanks, by the way
.
Or... is it just that things happen to be working - at the moment?
Or... does it only help... certain sites... certain times... ?
As in, on one site it worked, yet another it didn't?
Re: S3 Translator Help
Posted: 2022-12-07, 21:45
by Kris_88
Probably something wrong with the performance.measure() function.
I did not dig deep...
https://developer.mozilla.org/en-US/doc ... ce/measure
I suppose that in previous versions of PM this function was not implemented at all, so the error did not occur.
Re: S3 Translator Help
Posted: 2022-12-08, 08:02
by gepus
Kris_88 wrote: ↑2022-12-07, 21:45
I suppose that in previous versions of PM this function was not implemented at all, so the error did not occur.
Nice catch.
This explains why Firefox 52 and Waterfox Classic AKA Firefox 56 don't have this issue with GoogleTranslate.
I checked and indeed 56 doesn't have this function implemented yet.
Re: S3 Translator Help
Posted: 2022-12-08, 10:11
by Moonchild
Looks like they changed the way measure() works very, very recently, adopting an "options" object (measureOptions parameter) and returning a different kind of object (Returns PerformanceMeasure). Firefox 103+
I'll probably flip the API off in the next version since it can also be used for tracking/profiling. If devs need it for their analysis, they can switch it back on.
Still, we should look into adopting the spec change to have an up-to-date implementation.
Re: S3 Translator Help
Posted: 2022-12-08, 10:12
by Moonchild
therube wrote: ↑2022-12-07, 21:32
OK, so just how did you come up with that?
By inspecting the code on the line indicated in the console, which is full of performance commands
Re: S3 Translator Help
Posted: 2022-12-09, 02:17
by gupaso
Hi guys, can you please write the path where the configurator is or where to set what for such a change?
Thank you.
Re: S3 Translator Help
Posted: 2022-12-09, 11:42
by Moonchild
- In the address bar, type about:config and press enter
- In the page that shows up then, in the Filter box, type "navigation" to quickly find the preference
- Double-click on the dom.enable_performance_navigation_timing preference to set it to false
Re: S3 Translator Help
Posted: 2022-12-23, 23:50
by back2themoon
Kris_88 wrote: ↑2022-12-07, 20:45
about:config
dom.enable_performance_navigation_timing = false
dtoxic wrote: ↑2022-12-07, 21:04
huh? the hell did you come from with such an easy solution? what are you a necromancer...
He sure is!