Closed
Bug 1208889
Opened 9 years ago
Closed 9 years ago
Migrate mozL10n.DateTimeFormat to Intl API in Email
Categories
(Firefox OS Graveyard :: Gaia::E-Mail, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(1 file)
There are two places in Email where we use deprecated mozIntl.DateTimeFormat.
I'm aiming to remove l10n_date overall in this cycle, so I'd like to move them to mozIntl.
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 1•9 years ago
|
||
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8666507 [details] [review]
pull request
Ok, I think it's ready for review. It's part of an attempt to get rid of l10n_date in 2.5 and migrate everything to Intl or mozIntl APIs.
Should be painless :)
Attachment #8666507 -
Flags: review?(bugmail)
Comment 3•9 years ago
|
||
Comment on attachment 8666507 [details] [review]
pull request
A quick pass suggests it's all good, but especially since this touches app startup, James is the best/most appropriate reviewer.
Attachment #8666507 -
Flags: review?(bugmail) → review?(jrburke)
Comment 4•9 years ago
|
||
Comment on attachment 8666507 [details] [review]
pull request
Review comments in pull request, please flip review back to me when you want me to do another review pass.
Attachment #8666507 -
Flags: review?(jrburke)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8666507 [details] [review]
pull request
Ok, let me know what you think!
I added a new method to our private mozIntl._gaia.RelativeDate which formats elements.
I also applied your patch except of not adding moz_intl as a dependency on l10n, since it is not required.
Let me know what you think!
Attachment #8666507 -
Flags: review?(jrburke)
Comment 6•9 years ago
|
||
Comment on attachment 8666507 [details] [review]
pull request
Great to have a non-async way to set the relative time. I left some comments and a diff in the pull request, feel free to flip review back when ready. If no other substantive changes from the diff, then I expect it will be a quick final review.
Attachment #8666507 -
Flags: review?(jrburke)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8666507 [details] [review]
pull request
Sweet!
I may want to squeeze a couple tests in this patch for mozIntl._gaia.formatElement, but your part is ready for r?
(I also got ircal* f+ from :stas on mozIntl changes).
*) that's IRC equivalent of verbal
Attachment #8666507 -
Flags: review?(jrburke)
Comment 8•9 years ago
|
||
Comment on attachment 8666507 [details] [review]
pull request
r+ with just one nit in the pull request around the number of RelativeDate calls. Thanks for upgrading the email app!
Attachment #8666507 -
Flags: review?(jrburke) → review+
Assignee | ||
Comment 9•9 years ago
|
||
Thanks James!
Commit: https://github.com/mozilla-b2g/gaia/commit/620af8c819fc71112008ba5d99a5163e0ecff7f2
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•