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

Issue 2952743002: Add support for $i18n{} localized strings to ios/web. (Closed)

Created:
3 years, 6 months ago by michaeldo
Modified:
3 years, 5 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for $i18n{} localized strings to ios/web. The html templates used for chrome:// pages have been updated with new i18n support using $i18n{} style strings over the older i18n-content. BUG=734079 Review-Url: https://codereview.chromium.org/2952743002 Cr-Commit-Position: refs/heads/master@{#481966} Committed: https://chromium.googlesource.com/chromium/src/+/dcbf479ada2b075d70ab33dfa39b5a1891539b2a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Respond to comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -6 lines) Patch
M ios/web/public/web_ui_ios_data_source.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ios/web/webui/web_ui_ios_data_source_impl.h View 1 5 chunks +16 lines, -2 lines 0 comments Download
M ios/web/webui/web_ui_ios_data_source_impl.mm View 1 5 chunks +36 lines, -4 lines 1 comment Download

Messages

Total messages: 18 (9 generated)
michaeldo
3 years, 6 months ago (2017-06-20 22:35:01 UTC) #2
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2952743002/diff/1/ios/web/webui/web_ui_ios_data_source_impl.h File ios/web/webui/web_ui_ios_data_source_impl.h (right): https://codereview.chromium.org/2952743002/diff/1/ios/web/webui/web_ui_ios_data_source_impl.h#newcode46 ios/web/webui/web_ui_ios_data_source_impl.h:46: void SendFromResourceBundle(const std::string& path, What is |path|? Is ...
3 years, 6 months ago (2017-06-21 00:21:46 UTC) #5
michaeldo
https://codereview.chromium.org/2952743002/diff/1/ios/web/webui/web_ui_ios_data_source_impl.h File ios/web/webui/web_ui_ios_data_source_impl.h (right): https://codereview.chromium.org/2952743002/diff/1/ios/web/webui/web_ui_ios_data_source_impl.h#newcode46 ios/web/webui/web_ui_ios_data_source_impl.h:46: void SendFromResourceBundle(const std::string& path, On 2017/06/21 00:21:46, Eugene But ...
3 years, 6 months ago (2017-06-21 16:56:26 UTC) #6
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/2952743002/20001
3 years, 6 months ago (2017-06-23 18:23:50 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/dcbf479ada2b075d70ab33dfa39b5a1891539b2a
3 years, 6 months ago (2017-06-23 18:37:43 UTC) #12
Dan Beam
putting the template replacement code in ui/base paid off after all :)
3 years, 6 months ago (2017-06-23 21:41:15 UTC) #14
Eugene But (OOO till 7-30)
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2960543002/ by eugenebut@chromium.org. ...
3 years, 6 months ago (2017-06-24 03:25:14 UTC) #15
dschuyler
https://codereview.chromium.org/2952743002/diff/20001/ios/web/webui/web_ui_ios_data_source_impl.mm File ios/web/webui/web_ui_ios_data_source_impl.mm (right): https://codereview.chromium.org/2952743002/diff/20001/ios/web/webui/web_ui_ios_data_source_impl.mm#newcode148 ios/web/webui/web_ui_ios_data_source_impl.mm:148: load_time_data_defaults_added_ = false; Consider reversing true/false used on load_time_data_defaults_added_ ...
3 years, 5 months ago (2017-06-26 20:41:37 UTC) #17
michaeldo
3 years, 5 months ago (2017-06-27 21:24:18 UTC) #18
Message was sent while issue was closed.
On 2017/06/26 20:41:37, dschuyler wrote:
>
https://codereview.chromium.org/2952743002/diff/20001/ios/web/webui/web_ui_io...
> File ios/web/webui/web_ui_ios_data_source_impl.mm (right):
> 
>
https://codereview.chromium.org/2952743002/diff/20001/ios/web/webui/web_ui_io...
> ios/web/webui/web_ui_ios_data_source_impl.mm:148:
load_time_data_defaults_added_
> = false;
> Consider reversing true/false used on load_time_data_defaults_added_ so that
> it's false when the load_time_data_defaults_ have not been added and true once
> the load_time_data_defaults_ have been added.

Thank you for catching that, I updated the name but forgot to switch the
actually logic. I made this change here:
https://codereview.chromium.org/2961893002

Powered by Google App Engine
This is Rietveld 408576698