Rahulrrao / franker

Automatically exported from code.google.com/p/franker
0 stars 0 forks source link

stops working in long texts #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.in site such as www.gutenberg.org access html version of an ebook
2.either select entire text or click Frankate Page button
3.translation starts but stops after 20% of text

What is the expected output? What do you see instead?

Expect full text translation sentence by sentence. Only translates about 20% of 
text.

What version of the product are you using? On what operating system?
Mac Os 10.5.8/ Safari 5.0.6/ Franker 1.1.2

Please provide any additional information below.

Tried several ebooks; one example is http://www.gutenberg.org/ebooks/12065

Error console log reads:

12Unsafe JavaScript attempt to access frame with URL 
http://translate.googleusercontent.com/translate_c?hl=en&ie=UTF8&rurl=translate.
google.com&tl=en&u=http://www.gutenberg.org/files/12065/12065-h/12065-h.htm&usg=
ALkJrhgN9FlZpd-vQ2hSizWD-xigcQvhlQ from frame with URL 
http://translate.google.com/translate_p?hl=en&ie=UTF8&tl=en&u=http://www.gutenbe
rg.org/files/12065/12065-h/12065-h.htm&usg=ALkJrhhOufldASPFlzVEDkQsqBRgzw6GBA. 
Domains, protocols and ports must match

Original issue reported on code.google.com by juca.ber...@gmail.com on 11 Aug 2011 at 8:27

GoogleCodeExporter commented 9 years ago
This is expected behavior for "frankating" selection.
The point is to be nice to Google translation service and avoid translating 
"endlessly" and stop even if that was a mistake from user.
That is expected you translate as you read, block of text after block of text. 
I advise you translate by paragraphs.

"Frankate Page" works differently. Franker just inlines translation bubbles 
produced by Google.
A in this case that is Google themself who stop.

Original comment by ysol...@gmail.com on 11 Aug 2011 at 9:15

GoogleCodeExporter commented 9 years ago
Ok, got it. Though it would be great to translate whole text at once...

Btw, thank you for a great app.

Original comment by juca.ber...@gmail.com on 12 Aug 2011 at 2:20