S3 Translator Help Topic is solved

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
dtoxic
Moon lover
Moon lover
Posts: 83
Joined: 2017-10-04, 00:14
Location: Tau Ceti

S3 Translator Help

Unread post by dtoxic » 2022-12-07, 12:52

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
Last edited by dtoxic on 2022-12-07, 16:59, edited 1 time in total.
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
therube
Board Warrior
Board Warrior
Posts: 1490
Joined: 2018-06-08, 17:02

Re: S3 Translator Help

Unread post by therube » 2022-12-07, 16:41

Perhaps related to...

translate.google.com - website translation problem
viewtopic.php?f=70&t=29165

User avatar
dtoxic
Moon lover
Moon lover
Posts: 83
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: S3 Translator Help

Unread post by dtoxic » 2022-12-07, 16:49

thx for the info,but i cant seem to get it to work
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 33273
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: S3 Translator Help

Unread post by Moonchild » 2022-12-07, 17:39

Yeah, same error, same file, same line.
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
dtoxic
Moon lover
Moon lover
Posts: 83
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: S3 Translator Help

Unread post by dtoxic » 2022-12-07, 19:22

So that's it for "translate page" option for now, i assume there wont be an update to address this for PM
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
Kris_88
Lunatic
Lunatic
Posts: 418
Joined: 2021-01-26, 11:18

Re: S3 Translator Help

Unread post by Kris_88 » 2022-12-07, 20:45

about:config
dom.enable_performance_navigation_timing = false

User avatar
dtoxic
Moon lover
Moon lover
Posts: 83
Joined: 2017-10-04, 00:14
Location: Tau Ceti

Re: S3 Translator Help

Unread post by dtoxic » 2022-12-07, 21:04

huh? the hell did you come from with such an easy solution? what are you a necromancer....anyway..thank you
Windows 7 SP1 X64
Windows 10 LTSC X64

User avatar
Kris_88
Lunatic
Lunatic
Posts: 418
Joined: 2021-01-26, 11:18

Re: S3 Translator Help

Unread post by Kris_88 » 2022-12-07, 21:20

:D

User avatar
therube
Board Warrior
Board Warrior
Posts: 1490
Joined: 2018-06-08, 17:02

Re: S3 Translator Help

Unread post by therube » 2022-12-07, 21:32

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?

User avatar
Kris_88
Lunatic
Lunatic
Posts: 418
Joined: 2021-01-26, 11:18

Re: S3 Translator Help

Unread post by Kris_88 » 2022-12-07, 21:45

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.

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 841
Joined: 2017-12-14, 12:59

Re: S3 Translator Help

Unread post by gepus » 2022-12-08, 08:02

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. :thumbup:
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.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 33273
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: S3 Translator Help

Unread post by Moonchild » 2022-12-08, 10:11

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.
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 33273
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: S3 Translator Help

Unread post by Moonchild » 2022-12-08, 10:12

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 ;)
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
gupaso
New to the forum
New to the forum
Posts: 1
Joined: 2022-12-09, 02:03

Re: S3 Translator Help

Unread post by gupaso » 2022-12-09, 02:17

Hi guys, can you please write the path where the configurator is or where to set what for such a change?

Thank you.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 33273
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: S3 Translator Help

Unread post by Moonchild » 2022-12-09, 11:42

  1. In the address bar, type about:config and press enter
  2. In the page that shows up then, in the Filter box, type "navigation" to quickly find the preference
  3. Double-click on the dom.enable_performance_navigation_timing preference to set it to false
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2123
Joined: 2012-08-19, 20:32

Re: S3 Translator Help

Unread post by back2themoon » 2022-12-23, 23:50

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!

Post Reply