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

Issue 7244008: Change timeType and dateType in i18n date format API into timeStyle and dateStyle to match the pr... (Closed)

Created:
9 years, 6 months ago by Nebojša Ćirić
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Change timeType and dateType in i18n date format API into timeStyle and dateStyle to match the proposal. I've kept old keys too, until ChromeOS user switches to time/dateStyle. Fixed regex for matching styles in date and number format. TEST=i18n.kaziprst.org/datetimeformat.html should show proper results for both timeType and timeStyle. Committed: http://code.google.com/p/v8/source/detail?r=8423

Patch Set 1 #

Total comments: 4

Patch Set 2 : Regex fix. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -33 lines) Patch
M src/extensions/experimental/datetime-format.cc View 1 chunk +19 lines, -19 lines 0 comments Download
M src/extensions/experimental/i18n.js View 1 3 chunks +25 lines, -14 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Nebojša Ćirić
9 years, 6 months ago (2011-06-23 18:09:43 UTC) #1
rginda
Thanks for keep the old keys around for a little while. I imagine I'll just ...
9 years, 6 months ago (2011-06-23 18:24:15 UTC) #2
Nebojša Ćirić
Fixed regex in number format section to have ^()$. http://codereview.chromium.org/7244008/diff/1/src/extensions/experimental/i18n.js File src/extensions/experimental/i18n.js (right): http://codereview.chromium.org/7244008/diff/1/src/extensions/experimental/i18n.js#newcode165 src/extensions/experimental/i18n.js:165: ...
9 years, 6 months ago (2011-06-23 18:48:45 UTC) #3
jungshik at Google
LGTM http://codereview.chromium.org/7244008/diff/4002/src/extensions/experimental/i18n.js File src/extensions/experimental/i18n.js (right): http://codereview.chromium.org/7244008/diff/4002/src/extensions/experimental/i18n.js#newcode184 src/extensions/experimental/i18n.js:184: cleanSettings['timeStyle'] = tt; given that this will go ...
9 years, 6 months ago (2011-06-24 16:33:47 UTC) #4
Nebojša Ćirić
9 years, 6 months ago (2011-06-24 16:43:22 UTC) #5
Thanks

http://codereview.chromium.org/7244008/diff/4002/src/extensions/experimental/...
File src/extensions/experimental/i18n.js (right):

http://codereview.chromium.org/7244008/diff/4002/src/extensions/experimental/...
src/extensions/experimental/i18n.js:184: cleanSettings['timeStyle'] = tt;
I am not going to refactor - current code makes it easy to delete else if part
in the future without too much thinking :).

On 2011/06/24 16:33:47, Jungshik Shin wrote:
> given that this will go away later, I wouldn't say you have to refactor what's
> inside if-block and else-if-block :-) If you like, you can. 
>

Powered by Google App Engine
This is Rietveld 408576698