Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(105)

Issue 109940045: Pass UI language to BuildComponents(). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by Rouslan Solomakhin
Modified:
11 years, 1 month ago
CC:
davinci_google, dbeaumont, keghani
Base URL:
https://libaddressinput.googlecode.com/svn/trunk
Visibility:
Public.

Description

Pass UI language to BuildComponents(). This patch removes language_tag parameter from Localization::SetGetter(), because it's not required for retrieving strings. BuildComponents() now requires a |ui_language_tag| parameter. R=lararennie@google.com Committed: https://code.google.com/p/libaddressinput/source/detail?r=292

Patch Set 1 #

Patch Set 2 : SetGetterFromLanguageTag #

Total comments: 1

Patch Set 3 : Use default getter unless SetGetter is called to override it. #

Total comments: 4

Patch Set 4 : Update comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -68 lines) Patch
M cpp/include/libaddressinput/address_ui.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M cpp/include/libaddressinput/localization.h View 1 2 3 3 chunks +9 lines, -18 lines 0 comments Download
M cpp/src/address_ui.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M cpp/src/localization.cc View 1 2 2 chunks +3 lines, -26 lines 0 comments Download
M cpp/test/address_ui_test.cc View 1 4 chunks +11 lines, -6 lines 0 comments Download
M cpp/test/localization_test.cc View 1 2 3 chunks +1 line, -15 lines 0 comments Download

Messages

Total messages: 17
Rouslan Solomakhin
Lara: PTAL Patch Set 1. Evan pointed out that this comment is not helpful when ...
11 years, 1 month ago (2014-06-13 18:21:02 UTC) #1
estade
On 2014/06/13 18:21:02, Rouslan Solomakhin wrote: > Lara: PTAL Patch Set 1. Evan pointed out ...
11 years, 1 month ago (2014-06-13 19:41:24 UTC) #2
Rouslan Solomakhin
On 2014/06/13 19:41:24, estade wrote: > On 2014/06/13 18:21:02, Rouslan Solomakhin wrote: > > Lara: ...
11 years, 1 month ago (2014-06-13 20:04:01 UTC) #3
estade
On 2014/06/13 20:04:01, Rouslan Solomakhin wrote: > On 2014/06/13 19:41:24, estade wrote: > > On ...
11 years, 1 month ago (2014-06-13 20:13:20 UTC) #4
Rouslan Solomakhin
On 2014/06/13 20:13:20, estade wrote: > On 2014/06/13 20:04:01, Rouslan Solomakhin wrote: > > On ...
11 years, 1 month ago (2014-06-13 21:05:51 UTC) #5
lararennie
I think the concern here was that the localisation might end up being set up ...
11 years, 1 month ago (2014-06-16 07:44:21 UTC) #6
Rouslan Solomakhin
FYI
11 years, 1 month ago (2014-06-16 14:44:52 UTC) #7
lararennie
https://codereview.appspot.com/109940045/diff/40001/cpp/include/libaddressinput/localization.h File cpp/include/libaddressinput/localization.h (right): https://codereview.appspot.com/109940045/diff/40001/cpp/include/libaddressinput/localization.h#newcode31 cpp/include/libaddressinput/localization.h:31: // localization.SetGetterFromLanguageTag("en"); So, just to clarify: Chrome has a ...
11 years, 1 month ago (2014-06-17 21:18:50 UTC) #8
Rouslan Solomakhin
On 2014/06/17 21:18:50, lararennie wrote: > https://codereview.appspot.com/109940045/diff/40001/cpp/include/libaddressinput/localization.h > File cpp/include/libaddressinput/localization.h (right): > > https://codereview.appspot.com/109940045/diff/40001/cpp/include/libaddressinput/localization.h#newcode31 > ...
11 years, 1 month ago (2014-06-17 22:50:31 UTC) #9
Rouslan Solomakhin
On 2014/06/17 21:18:50, lararennie wrote: > a) Do we need SetGetterFromLanguageTag? Should it just be ...
11 years, 1 month ago (2014-06-17 22:50:54 UTC) #10
Rouslan Solomakhin
On 2014/06/17 21:18:50, lararennie wrote: > https://codereview.appspot.com/109940045/diff/40001/cpp/include/libaddressinput/localization.h > File cpp/include/libaddressinput/localization.h (right): > > https://codereview.appspot.com/109940045/diff/40001/cpp/include/libaddressinput/localization.h#newcode31 > ...
11 years, 1 month ago (2014-06-17 22:52:31 UTC) #11
Rouslan Solomakhin
On 2014/06/17 21:18:50, lararennie wrote: > If we did (a) instead I think it'd make ...
11 years, 1 month ago (2014-06-17 22:54:30 UTC) #12
Rouslan Solomakhin
Lara: PTAL Patch Set 3.
11 years, 1 month ago (2014-06-18 00:29:07 UTC) #13
roubert (google)
https://codereview.appspot.com/109940045/diff/80001/cpp/include/libaddressinput/localization.h File cpp/include/libaddressinput/localization.h (right): https://codereview.appspot.com/109940045/diff/80001/cpp/include/libaddressinput/localization.h#newcode84 cpp/include/libaddressinput/localization.h:84: // The string getter, not owned. You can't allocate ...
11 years, 1 month ago (2014-06-18 10:19:59 UTC) #14
lararennie
LGTM https://codereview.appspot.com/109940045/diff/80001/cpp/include/libaddressinput/localization.h File cpp/include/libaddressinput/localization.h (right): https://codereview.appspot.com/109940045/diff/80001/cpp/include/libaddressinput/localization.h#newcode32 cpp/include/libaddressinput/localization.h:32: // Process(BuildComponents("CA", localization, "en-US", &best_language_tag)); Add a comment ...
11 years, 1 month ago (2014-06-18 12:37:41 UTC) #15
Rouslan Solomakhin
https://codereview.appspot.com/109940045/diff/80001/cpp/include/libaddressinput/localization.h File cpp/include/libaddressinput/localization.h (right): https://codereview.appspot.com/109940045/diff/80001/cpp/include/libaddressinput/localization.h#newcode32 cpp/include/libaddressinput/localization.h:32: // Process(BuildComponents("CA", localization, "en-US", &best_language_tag)); On 2014/06/18 12:37:41, lararennie ...
11 years, 1 month ago (2014-06-18 16:27:39 UTC) #16
Rouslan Solomakhin
11 years, 1 month ago (2014-06-18 16:27:58 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 manually as r292 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b