Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Issue 16141002: Add "Don't translate" preference to chrome://settings/languages (Closed)

Created:
7 years, 6 months ago by hajimehoshi
Modified:
7 years, 6 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, dbeam+watch-options_chromium.org, nona+watch_chromium.org, arv+watch_chromium.org, yusukes+watch_chromium.org, kenjibaheux, Takashi Toyoshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add "Don't translate" preference to chrome://settings/languages This preference allows us to configure whether or not a language should be translated. Currently, this configuration is available only at chrome://translate-internals. This CL is provisional. The known problems are below: 1. New resource files are needed for a new string. 2. For now, this preference doesn't have any effect because the languages listed in the left column are not translated. I'll fix this logic along with the design doc. UX Proposal: https://docs.google.com/a/google.com/presentation/d/1se75vXwUSttlR6AMrJO2vJIWzT8Rp8eUAh_Xav3gDl0 Design Doc: https://docs.google.com/a/google.com/document/d/1mxM00l1h2e59HKPVZR_1DY07jeCg4RwHWu7JDvmWx3w BUG=243235 TEST=Manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203380

Patch Set 1 #

Total comments: 10

Patch Set 2 : Modified styles #

Patch Set 3 : Replaced 'dontTranslate' with 'dontTranslateInThisLanguage' along with the other resource names #

Total comments: 2

Patch Set 4 : (Rebasing) #

Patch Set 5 : Bug fix: Added id to the input element #

Patch Set 6 : Bug fix: Modified language_options.html for Mac OS X #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -48 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/language_options.html View 1 2 3 4 5 4 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/language_options.js View 1 2 3 4 16 chunks +167 lines, -40 lines 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/language_options_handler_common.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
hajimehoshi
Can you take a look at this CL? Thank you in advance.
7 years, 6 months ago (2013-05-28 09:46:20 UTC) #1
Evan Stade
looks pretty good. In the CL description, s/configurate/configure https://codereview.chromium.org/16141002/diff/1/chrome/browser/resources/options/language_options.html File chrome/browser/resources/options/language_options.html (right): https://codereview.chromium.org/16141002/diff/1/chrome/browser/resources/options/language_options.html#newcode75 chrome/browser/resources/options/language_options.html:75: i18n-content="dont_translate"></span> ...
7 years, 6 months ago (2013-05-28 17:08:10 UTC) #2
hajimehoshi
Thank you! https://codereview.chromium.org/16141002/diff/1/chrome/browser/resources/options/language_options.html File chrome/browser/resources/options/language_options.html (right): https://codereview.chromium.org/16141002/diff/1/chrome/browser/resources/options/language_options.html#newcode75 chrome/browser/resources/options/language_options.html:75: i18n-content="dont_translate"></span> 1) Done 2) Hmm, I'll do ...
7 years, 6 months ago (2013-05-29 03:52:22 UTC) #3
hajimehoshi
Created another CL to fix i18n-contents: https://codereview.chromium.org/16025007/ On 2013/05/29 03:52:22, hajimehoshi wrote: > Thank you! ...
7 years, 6 months ago (2013-05-29 04:40:45 UTC) #4
Evan Stade
lgtm https://codereview.chromium.org/16141002/diff/14001/chrome/browser/ui/webui/options/language_options_handler_common.cc File chrome/browser/ui/webui/options/language_options_handler_common.cc (right): https://codereview.chromium.org/16141002/diff/14001/chrome/browser/ui/webui/options/language_options_handler_common.cc#newcode81 chrome/browser/ui/webui/options/language_options_handler_common.cc:81: IDS_OPTIONS_LANGUAGES_DONT_TRANSLATE_IN_THIS_LANGUAGE } nit: add comma at end (if ...
7 years, 6 months ago (2013-05-31 00:05:54 UTC) #5
hajimehoshi
Thanks! https://codereview.chromium.org/16141002/diff/14001/chrome/browser/ui/webui/options/language_options_handler_common.cc File chrome/browser/ui/webui/options/language_options_handler_common.cc (right): https://codereview.chromium.org/16141002/diff/14001/chrome/browser/ui/webui/options/language_options_handler_common.cc#newcode81 chrome/browser/ui/webui/options/language_options_handler_common.cc:81: IDS_OPTIONS_LANGUAGES_DONT_TRANSLATE_IN_THIS_LANGUAGE } On 2013/05/31 00:05:54, Evan Stade wrote: ...
7 years, 6 months ago (2013-05-31 01:27:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/16141002/23001
7 years, 6 months ago (2013-05-31 01:27:57 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=45702
7 years, 6 months ago (2013-05-31 03:44:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/16141002/46001
7 years, 6 months ago (2013-05-31 04:18:38 UTC) #9
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=133489
7 years, 6 months ago (2013-05-31 06:42:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/16141002/53001
7 years, 6 months ago (2013-05-31 07:08:34 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-05-31 09:32:32 UTC) #12
Message was sent while issue was closed.
Change committed as 203380

Powered by Google App Engine
This is Rietveld 408576698