New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 804185 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Sep 13
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Translate feature adds spaces to translated text

Reported by toec...@context-is.com, Jan 21 2018

Issue description

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

Steps to reproduce the problem:
1. Go to https://pomiweb.com/vmware-12-5-8-on-4-14-3-1-lts-kernel-manjaro/  //This is the web site I experienced the bug on
2. Note the code block starting with "sudo su"...  Note the commands, and the spaces that are there.
3. Do a translate on the page with the "Translate This Page" option.
4.  Note the same code block again, there are extra spaces in the command that were not there before.  THe big one is the last 'rm -r' command, which now will kill the root partition on a linux system, rather than kill a single directory.

What is the expected behavior?
It's expected that a translate would not add extra spaces to translated text.

What went wrong?
Translate shouldn't add spaces to stuff.

Did this work before? N/A 

Chrome version: 63.0.3239.132  Channel: stable
OS Version: 10.0
Flash Version:
 
After Translate.png
7.7 KB View Download
Before Translate.png
7.3 KB View Download
Cc: susanjun...@techmahindra.com
Labels: Needs-Feedback Triaged-ET Needs-Triage-M63
toecker@ Thanks for the issue.

Tested this issue on Windows 10 and Mac OS 10.12.6 on the latest Canary 66.0.3328.0 and Stable 63.0.3239.132 and unable to reproduce the issue by following the steps mentioned in the original comment.

On navigating to the given page and translated the page to English, observed the code block :The solution to vmnet is:..." and can see no change in spaces in before and after translating the page.
Attached is the screen cast for reference.

Request you to please let us know if anything is missed form our end in reproducing the issue.
Also request you to retry the issue on a new chrome profile without any flags/extensions and update the thread with the observations.

Thanks..
804185.webm
5.5 MB View Download
Hallo Susan,

It looks like you reproduced the issue just fine...  Look at the difference in spaces between the '/'s in your video.  You can see how the translate adds spaces to those completely changing the intent of the commands?

For instance, in the rm -f command at the bottom, after you translated the text turned from "rm -f vmnet-only/" into "rm -f vmnet-only /" with a space between 'only' and the '/'.  This happens for every '/' in that code block, each one has spaces added around it.  The additional space turns that rm command into a scary one.

I've attached another before and after to demonstrate:

Mike
Before.png
10.1 KB View Download
After.png
8.7 KB View Download
Project Member

Comment 3 by sheriffbot@chromium.org, Jan 22 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "susanjunia.boorgula@techmahindra.com" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: M-66 FoundIn-66 Target-66 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
toecker@ Thanks for the feedback.

Able to reproduce this issue on Windows 10, Mac OS 10.13.1 and Ubuntu 14.04 on the latest Stable 63.0.3239.132 and Canary 66.0.3329.0 as per comment #2.

On navigating to the web page https://pomiweb.com/vmware-12-5-8-on-4-14-3-1-lts-kernel-manjaro/ and translated the page to English, could observe extra space between a word and the '/' in the code block :The solution to vmnet is:..."

This behavior is observed from M60 chrome builds. 
Hence this is a Non-Regression issue and marking this as Untriaged for further updates form Dev.

Thanks..
Status: Archived (was: Untriaged)
Archiving old bugs that haven't been actively assigned in over 180 days.

If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!

Sign in to add a comment