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

Issue 2908353003: [i18n] components directory to $i18n{} (Closed)

Created:
3 years, 6 months ago by dschuyler
Modified:
3 years, 6 months ago
Reviewers:
Lei Zhang, tommycli
CC:
chromium-reviews, sadrul, zea+watch_chromium.org, Peter Beverloo, johnme+watch_chromium.org, oshima+watch_chromium.org, kalyank, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[i18n] components directory to $i18n{} This CL changes i18n-content and i18n-value (the old way) to $i18n{} (the new way). There should be no functionality or UI changes apparent to the user. TBR=stanisc@chromium.org,dbeam@chromium.org,fgorski@chromium.org,thestig@chromium.org,hirono@chromium.org,mattreynolds@chromium.org,juliatuttle@chromium.org,bengr@chromium.org,treib@chromium.org BUG=677338 Review-Url: https://codereview.chromium.org/2908353003 Cr-Commit-Position: refs/heads/master@{#479896} Committed: https://chromium.googlesource.com/chromium/src/+/9ab6f1801d197cda79b2f1dbf8f81d4f8d5f4884

Patch Set 1 : indentation #

Total comments: 2

Patch Set 2 : unit test change #

Total comments: 3

Patch Set 3 : replace $i18n in GetTemplatesHtml #

Patch Set 4 : handle blank cohort name #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -133 lines) Patch
M chrome/browser/ui/webui/version_ui.cc View 1 2 3 1 chunk +2 lines, -0 lines 3 comments Download
M components/chrome_apps/webstore_widget/app/main.html View 1 chunk +1 line, -1 line 0 comments Download
M components/crash/core/browser/resources/crashes.html View 3 chunks +9 lines, -8 lines 0 comments Download
M components/dom_distiller/webui/resources/about_dom_distiller.html View 2 chunks +9 lines, -9 lines 0 comments Download
M components/flags_ui/resources/apple_flags.html View 5 chunks +13 lines, -21 lines 0 comments Download
M components/flags_ui/resources/flags.html View 7 chunks +20 lines, -26 lines 0 comments Download
M components/gcm_driver/resources/gcm_internals.html View 1 chunk +1 line, -1 line 0 comments Download
M components/neterror/resources/neterror.html View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M components/physical_web/webui/resources/physical_web.html View 2 chunks +4 lines, -4 lines 0 comments Download
M components/signin/core/browser/resources/signin_index.html View 1 chunk +1 line, -1 line 0 comments Download
M components/supervised_user_error_page/resources/supervised_user_block_interstitial.html View 3 chunks +20 lines, -14 lines 0 comments Download
M components/supervised_user_error_page/supervised_user_error_page_unittest.cc View 1 1 chunk +4 lines, -8 lines 0 comments Download
M components/sync/driver/resources/index.html View 1 chunk +1 line, -1 line 0 comments Download
M components/version_ui/resources/about_version.html View 3 chunks +35 lines, -35 lines 0 comments Download
M ui/base/webui/jstemplate_builder.cc View 1 2 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 53 (34 generated)
dschuyler
https://codereview.chromium.org/2908353003/diff/20001/components/flags_ui/resources/apple_flags.html File components/flags_ui/resources/apple_flags.html (right): https://codereview.chromium.org/2908353003/diff/20001/components/flags_ui/resources/apple_flags.html#newcode95 components/flags_ui/resources/apple_flags.html:95: <div>$i18n{flagsRestartNotice}</div> The other changes in this CL are from ...
3 years, 6 months ago (2017-05-30 22:41:24 UTC) #7
tommycli
lgtm https://codereview.chromium.org/2908353003/diff/20001/components/flags_ui/resources/apple_flags.html File components/flags_ui/resources/apple_flags.html (right): https://codereview.chromium.org/2908353003/diff/20001/components/flags_ui/resources/apple_flags.html#newcode95 components/flags_ui/resources/apple_flags.html:95: <div>$i18n{flagsRestartNotice}</div> On 2017/05/30 22:41:24, dschuyler wrote: > The ...
3 years, 6 months ago (2017-05-30 22:48:55 UTC) #8
dschuyler
PTAL https://codereview.chromium.org/2908353003/diff/40001/components/supervised_user_error_page/supervised_user_error_page_unittest.cc File components/supervised_user_error_page/supervised_user_error_page_unittest.cc (left): https://codereview.chromium.org/2908353003/diff/40001/components/supervised_user_error_page/supervised_user_error_page_unittest.cc#oldcode86 components/supervised_user_error_page/supervised_user_error_page_unittest.cc:86: EXPECT_THAT(result, testing::HasSubstr(html)); This was previously testing that BuildHtml ...
3 years, 6 months ago (2017-05-31 21:10:53 UTC) #13
dschuyler
PTAL. Yay for buildbot tests. They found that ui/base/webui/jstemplate_builder.cc needed to be updated to fill ...
3 years, 6 months ago (2017-06-10 01:37:33 UTC) #18
tommycli
https://codereview.chromium.org/2908353003/diff/40001/components/supervised_user_error_page/supervised_user_error_page_unittest.cc File components/supervised_user_error_page/supervised_user_error_page_unittest.cc (left): https://codereview.chromium.org/2908353003/diff/40001/components/supervised_user_error_page/supervised_user_error_page_unittest.cc#oldcode86 components/supervised_user_error_page/supervised_user_error_page_unittest.cc:86: EXPECT_THAT(result, testing::HasSubstr(html)); On 2017/05/31 21:10:53, dschuyler wrote: > This ...
3 years, 6 months ago (2017-06-12 18:49:20 UTC) #21
tommycli
https://codereview.chromium.org/2908353003/diff/40001/components/supervised_user_error_page/supervised_user_error_page_unittest.cc File components/supervised_user_error_page/supervised_user_error_page_unittest.cc (left): https://codereview.chromium.org/2908353003/diff/40001/components/supervised_user_error_page/supervised_user_error_page_unittest.cc#oldcode86 components/supervised_user_error_page/supervised_user_error_page_unittest.cc:86: EXPECT_THAT(result, testing::HasSubstr(html)); On 2017/06/12 18:49:20, tommycli wrote: > On ...
3 years, 6 months ago (2017-06-12 18:52:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2908353003/80001
3 years, 6 months ago (2017-06-13 23:55:43 UTC) #29
tommycli
On 2017/06/13 23:55:43, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
3 years, 6 months ago (2017-06-13 23:56:59 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/463142)
3 years, 6 months ago (2017-06-14 00:05:21 UTC) #32
dschuyler
Hi, The TBR list is for OWNER(s). Here are the files for each owner: stanisc: ...
3 years, 6 months ago (2017-06-14 00:58:19 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2908353003/80001
3 years, 6 months ago (2017-06-14 01:00:26 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/116725)
3 years, 6 months ago (2017-06-14 01:11:27 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2908353003/80001
3 years, 6 months ago (2017-06-15 18:39:34 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/238464)
3 years, 6 months ago (2017-06-15 19:40:55 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2908353003/80001
3 years, 6 months ago (2017-06-16 00:52:09 UTC) #44
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/9ab6f1801d197cda79b2f1dbf8f81d4f8d5f4884
3 years, 6 months ago (2017-06-16 01:49:13 UTC) #49
Lei Zhang
Didn't we just talk about actually adding the TBR'd reviewers in the review tool last ...
3 years, 6 months ago (2017-06-17 06:06:26 UTC) #51
Lei Zhang
https://codereview.chromium.org/2908353003/diff/80001/chrome/browser/ui/webui/version_ui.cc File chrome/browser/ui/webui/version_ui.cc (right): https://codereview.chromium.org/2908353003/diff/80001/chrome/browser/ui/webui/version_ui.cc#newcode161 chrome/browser/ui/webui/version_ui.cc:161: if (!update_cohort_name.empty()) { How about: base::string16 display_cohort_name; if (!update_cohort_name.empty()) ...
3 years, 6 months ago (2017-06-17 06:23:15 UTC) #52
dschuyler
3 years, 6 months ago (2017-06-19 19:24:53 UTC) #53
Message was sent while issue was closed.
https://codereview.chromium.org/2908353003/diff/80001/chrome/browser/ui/webui...
File chrome/browser/ui/webui/version_ui.cc (right):

https://codereview.chromium.org/2908353003/diff/80001/chrome/browser/ui/webui...
chrome/browser/ui/webui/version_ui.cc:166:
html_source->AddString(version_ui::kUpdateCohortName, std::string());
On 2017/06/17 06:23:15, Lei Zhang wrote:
> Is this because $i18n{update_cohort_name} cannot tolerate a non-existent
string,
> whereas i18n-content="update_cohort_name" can?

It is by design that $i18n won't allow the mistake of leaving out a translation
string, while i18n-content provides no such developer support.

Powered by Google App Engine
This is Rietveld 408576698