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

Issue 1609683002: MD History: Rewrite i18n system using ReplaceTemplateExpressions (Closed)

Created:
4 years, 11 months ago by tsergeant
Modified:
4 years, 9 months ago
Reviewers:
calamity, Dan Beam
CC:
arv+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@md_history_2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD History: Use $i18n expressions instead of i18n- attributes This means that localization is performed before data is sent to the WebUI client. This CL removes almost all existing i18n-template usage. We still have a small number of more complex strings which are created in JS which are more difficult to convert to the new system. BUG=563884 Committed: https://crrev.com/63413cfe062c0c6de3ef56c3b4f1f053976ebb3d Cr-Commit-Position: refs/heads/master@{#381604}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Update template format #

Patch Set 4 : Rebase #

Patch Set 5 : Rebased #

Total comments: 2

Patch Set 6 : Static local #

Patch Set 7 : Rewrite with simpler new system #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -16 lines) Patch
M chrome/browser/resources/md_history/history.html View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history_list.html View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/md_history/history_toolbar.html View 1 2 3 4 5 6 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/resources/md_history/side_bar.html View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/synced_device_card.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (9 generated)
tsergeant
PTAL!
4 years, 10 months ago (2016-01-31 23:03:07 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609683002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609683002/60001
4 years, 10 months ago (2016-01-31 23:03:09 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/140899)
4 years, 10 months ago (2016-01-31 23:11:36 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609683002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609683002/80001
4 years, 10 months ago (2016-02-01 00:51:16 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-01 02:08:25 UTC) #10
calamity
lgtm https://codereview.chromium.org/1609683002/diff/80001/chrome/browser/ui/webui/md_history_ui.cc File chrome/browser/ui/webui/md_history_ui.cc (right): https://codereview.chromium.org/1609683002/diff/80001/chrome/browser/ui/webui/md_history_ui.cc#newcode50 chrome/browser/ui/webui/md_history_ui.cc:50: std::map<std::string, int> router; Can we make this a ...
4 years, 10 months ago (2016-02-01 23:45:33 UTC) #11
tsergeant
+dbeam for a once-over, since this is the new hotness that we're not 100% familiar ...
4 years, 10 months ago (2016-02-02 01:33:10 UTC) #13
dschuyler
On 2016/02/02 01:33:10, tsergeant wrote: > +dbeam for a once-over, since this is the new ...
4 years, 10 months ago (2016-02-02 02:09:57 UTC) #14
tsergeant
Neato! I'm happy for this to get shelved for a couple of weeks while you ...
4 years, 10 months ago (2016-02-02 02:28:29 UTC) #15
Dan Beam
fyi: https://codereview.chromium.org/1690773003/ should make this a bit easier for you
4 years, 10 months ago (2016-02-17 05:08:33 UTC) #16
tsergeant
On 2016/02/17 05:08:33, Dan Beam wrote: > fyi: https://codereview.chromium.org/1690773003/ should make this a bit easier ...
4 years, 10 months ago (2016-02-19 03:07:22 UTC) #17
tsergeant
calamity: please take a look again. This CL is now a little smaller in scope, ...
4 years, 9 months ago (2016-03-16 00:56:10 UTC) #19
Dan Beam
soooo, btw: we found that there might be some issues (still) with the current $i18n{...} ...
4 years, 9 months ago (2016-03-16 01:00:52 UTC) #20
calamity
lgtm
4 years, 9 months ago (2016-03-16 04:04:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609683002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609683002/120001
4 years, 9 months ago (2016-03-17 00:22:29 UTC) #23
tsergeant
For the record: We're committing this now to unblock some further work with optimizing load ...
4 years, 9 months ago (2016-03-17 00:28:00 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-17 00:28:29 UTC) #25
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 00:29:49 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/63413cfe062c0c6de3ef56c3b4f1f053976ebb3d
Cr-Commit-Position: refs/heads/master@{#381604}

Powered by Google App Engine
This is Rietveld 408576698