New issue
Advanced search Search tips

Issue 777369 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Problem with translate google pages on russian language

Reported by johndewi...@gmail.com, Oct 23 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Example URL:
https://www.google.com/about/appsecurity/

Steps to reproduce the problem:
1. Go to https://www.google.com/about/appsecurity/
2. Right click to bring up the context menu
3. Select item "Перевести на русский" (Translate from english to russian language)
4. Wait until the page is translated

What is the expected behavior?

What went wrong?
Page is not translated. I see browser notification box "Перевод страницы..." (Translation page...) during a long time.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 61.0.3163.100  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 27.0 r0

This on all pages: 
- Home: https://www.google.com/about/appsecurity/
- Learning: https://www.google.com/about/appsecurity/learning/xss/
- Reward Programs: https://www.google.com/about/appsecurity/programs-home/
- Hall of Fame: https://www.google.com/about/appsecurity/hall-of-fame/
- Research: https://www.google.com/about/appsecurity/research/
 
ScreenHunter_291 Oct. 23 14.37.jpg
203 KB View Download
Components: -Blink UI>Browser>Language>Translate
Status: Untriaged (was: Unconfirmed)
Can repro. The translation from context menu seems to be broken in M61. 
Owner: napper@chromium.org
Status: Available (was: Untriaged)

Comment 3 by napper@chromium.org, Oct 24 2017

Owner: claudiomagni@chromium.org

Comment 4 by napper@chromium.org, Oct 24 2017

Claudio, could you look into this please?

Comment 5 by napper@chromium.org, Oct 24 2017

Translating using the context menu from a number of different languages (Japanese, German, Spanish, French) to English worked for me (61.0.3163.100)

Comment 6 by napper@chromium.org, Oct 24 2017

I have also successfully translated a number of pages to Russian (but not using the context menu) using 61.0.3163.100.

Comment 7 by napper@chromium.org, Oct 24 2017

The issue seems to be related to the specific pages in the bug. If I go to an arbitrary page and click "Translate to English" it works fine (even if it is in English). If I go to any of the specific pages, "Translate to English" hangs. I suspect there is an issue in the translate element causing this.

Comment 8 by napper@chromium.org, Oct 24 2017

Owner: napper@chromium.org
Labels: Hotlist-TranslateElement
Owner: ----
Cc: yyushkina@chromium.org anthonyvd@chromium.org
Labels: -Pri-2 Pri-3
I confirm the issue encountered, e.g. on the website:

https://aviaforum.ru/forums/flight_safety/

Sometimes translation works, sometimes it doesn't, the failure is not predictable.

When it fails, it usually translates part of the page, then rolls back to the original Russian text and display "this page can not be translated".

I therefore suspect that some html tag/stuff in the lower sections of the page, perhaps in the bottom of the page, or scripts interfere causing the translation to abort and roll back.

It would be a lot better, if in this case the translation so far is kept and the disturbing element is just left out and translation continues after. Or if a script interferes the translation continues despite the interference.

The rollback (removing all translation and show the Russian original again) should not occur at all.


Okay, I think I just have found it.

I attach two screenshots, one the original which can not be translated and rolls back (russian_translation_original.jpg) and the modified one, which does translate (russian_translation_modified.jpg).

I found in the second list item the name of the last poster is "constructor" which apparently causes the roll back. When I modified all appearances of "constructor" in the two parts of the list item to "constuctor" the translation worked.

russian_translate_error_original.jpg
292 KB View Download
russian_translate_error_modified.jpg
280 KB View Download
For easier reconstruction without depending on dynamic content on that page, here's the page sources saved out of my debugger. Again original version which doesn't translate (*original.html) and then the modified version which does translate (*modified.html), difference: two 'r' characters are missing in the name "constructor"/"constuctor"

I suppose the word construct or constructor causes the havoc possibly being a protected word.


russian_translate_error_orginal.html
108 KB View Download
russian_translate_error_modified.html
108 KB View Download

Sign in to add a comment