Closed
Bug 1188139
Opened 9 years ago
Closed 9 years ago
Refactor Music to use modern L10n API
Categories
(Firefox OS Graveyard :: Gaia::Music, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(1 file)
Music is one of the first apps to receive NGA treatment. Let's make it use L10n API properly and consider transitioning it later to l20n.js.
Comment 1•9 years ago
|
||
Updated•9 years ago
|
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8639635 [details] [review]
[gaia] zbraniecki:1188139-refactor-music-l10n > mozilla-b2g:master
Jim, can you look at this? It passes treeherder and my manual tests :)
Attachment #8639635 -
Flags: review?(squibblyflabbetydoo)
Comment 3•9 years ago
|
||
Now's probably not the best time to make API changes like this (unless it's blocking other development), since we're currently neck-deep in a wholesale rewrite of the Music app...
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Jim Porter (:squib) from comment #3)
> Now's probably not the best time to make API changes like this (unless it's
> blocking other development), since we're currently neck-deep in a wholesale
> rewrite of the Music app...
We're aiming to migrate all apps to use NGA L10n API and we want to align this with the major refactoring that is going on toward NGA. Since Music is one of the apps targeting 2.5 with NGA we'd like to move it to l20n.js at the same time.
This patch is basically the only significant things that we need landed. We already landed such a refactor in SMS (bug 1171206) and we're about to land for Contacts/Callscreen. So I thought it may be actually easier for you to keep refactoring with the proper code already.
What do you think?
Flags: needinfo?(squibblyflabbetydoo)
Comment 5•9 years ago
|
||
We're not refactoring the UI side so much as rewriting it from scratch (after we pull out as much non-UI code into the backend as possible). Since I'm not doing much with the UI side myself, I'll leave this up to Justin, who's working on a prototype of the new UI code (which will replace the music app fairly soon).
Flags: needinfo?(squibblyflabbetydoo) → needinfo?(jdarcangelo)
Assignee | ||
Comment 6•9 years ago
|
||
Oh, cool!
Justin, it would be awesome to help you get the L10n API right so that we can then swap l10n API without any major changes. The primary areas that we deprecate are:
- mozL10n.get
- LazyL10n
- l10n_date.js use
If you can share the code you have I'll be happy to review and write patches to get the new UI in line with our work :)
Comment 7•9 years ago
|
||
(In reply to Zibi Braniecki [:gandalf][:zibi] from comment #6)
> Oh, cool!
>
> Justin, it would be awesome to help you get the L10n API right so that we
> can then swap l10n API without any major changes. The primary areas that we
> deprecate are:
>
> - mozL10n.get
> - LazyL10n
> - l10n_date.js use
>
> If you can share the code you have I'll be happy to review and write patches
> to get the new UI in line with our work :)
Sounds good, Zibi! I'll take a look at this patch to make sure I incorporate these changes. I'll ping you if I have any questions.
Comment 8•9 years ago
|
||
Comment on attachment 8639635 [details] [review]
[gaia] zbraniecki:1188139-refactor-music-l10n > mozilla-b2g:master
Clearing review for now, although if you'd like to land this before the new music app lands, let me know.
Attachment #8639635 -
Flags: review?(squibblyflabbetydoo)
Assignee | ||
Comment 9•9 years ago
|
||
What's the timeline for the new music API? Are you targeting 2.5?
Flags: needinfo?(squibblyflabbetydoo)
Comment 10•9 years ago
|
||
Yes. Hopefully an initial version will land in dev_apps this week.
Flags: needinfo?(squibblyflabbetydoo)
Assignee | ||
Comment 11•9 years ago
|
||
Awesome, let's mark this as wontfix for now, and I'll help making the new UI work well with L10n API.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(jdarcangelo)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•