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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Comment on attachment 8639635 [details] [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)
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...
(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)
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)
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 :)
(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 on attachment 8639635 [details] [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)
What's the timeline for the new music API? Are you targeting 2.5?
Flags: needinfo?(squibblyflabbetydoo)
Yes. Hopefully an initial version will land in dev_apps this week.
Flags: needinfo?(squibblyflabbetydoo)
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.

Attachment

General

Created:
Updated:
Size: