Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upin-page translation #2006
in-page translation #2006
Conversation
f07daee
to
5f54528
dd87208
to
c456ea9
browser/net/brave_translate_redirect_network_delegate_helper.cc
Outdated
Show resolved
Hide resolved
|
LGTM |
|
rebased on C74. |
| @@ -396,6 +396,10 @@ By installing this extension, you are agreeing to the Google Widevine Terms of U | |||
| <message name="IDS_SETTINGS_BRAVE_ON_EXIT" desc="Clear Browsing Data dialog On exit tab label"> | |||
| On exit | |||
| </message> | |||
| <!-- In-page Translation --> | |||
| <message name="IDS_BRAVE_TRANSLATE_BUBBLE_BEFORE_TRANSLATE_TITLE" desc="Title text for the translate bubble when asking to translate a page."> | |||
| Translate this page? This will send all text on this page to Microsoft for translation. | |||
This comment has been minimized.
This comment has been minimized.
jumde
Mar 25, 2019
Contributor
Do we plan to have a wiki that highlights the text will not be associated with any user identifiable information?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
diracdeltas
Mar 25, 2019
Member
not yet; maybe https://github.com/brave/brave-browser/wiki/Proxy-redirected-URLs could mention what data is sent in each of the proxied requests
|
LGTM |
…be sent to the MS server.
1. Fix typo 2. Use constant in system network delegate 3. Use BindRepeating instead of Bind
|
linux and mac passed: https://staging.ci.brave.com/job/brave-browser-build-pr/job/page-translate/3/flowGraphTable/ @emerick sorry the review is being dismissed again because I have to push again to try windows after reverting widevine PRs, no code changes here, please approve again then I'll merge. |
|
LGTM |
|
|
|
Great job with this, @yrliou! And thanks for being vigilant to make CI passes |
kmichelizzi
commented
Jun 6, 2019
|
Sorry, this is not working on MacOS 10.14.5 going to www.yandex.ru - it never shows the translate bubble. Doesn't have Translate in the context menu either. Neither does going to the specified verification webpage (deutschland.de/de) - if it is going to be difficult to enable, it isn't working in my book. This is with Brave Version 0.65.118 Chromium: 75.0.3770.80 (Official Build) (64-bit). |
|
@kmichelizzi Translation service is disabled on Release channel currently due to cost performance, we're still working on enabling it on Release channel. |
kmichelizzi
commented
Jun 6, 2019
|
Thanks, @yrliou - the Nightly, Dev, and Beta don't run on MacOS 10.14.5. All 3 versions just spin until crash on loading. |
|
@kmichelizzi I'm also on MacOS 10.14.5, Nightly, Dev, and Beta all works fine for me. |


yrliou commentedMar 19, 2019
•
edited
Fix brave/brave-browser#208
This PR re-enable entries of translate service, all incurred requests will be sent to go-translate server (https://github.com/brave/go-translate) to either be relayed to MS server or be proxied through Brave to avoid introducing direct connections to google.
go-translate is now running locally at localhost:8195 manually, the URL will be updated to a brave server once go-translate is deployed by devops.
Related PR:
brave/go-translate#1
Entry points of translation service
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests) onnpm run lint)git rebase master(if needed).git rebase -ito squash commits (if needed).Test Plan:
Navigate to https://www.deutschland.de/de and click translate when the translate bubble shows up. Continue surfing through this website and pages should be translated.
Open a new tab to navigate to https://www.deutschland.de/de, click "Translate to English" (depends on your local language) in the context menu, current page should be translated, when click away through links in this page, they will not be translated.
Reviewer Checklist: