Closed Bug 1200078 Opened 9 years ago Closed 9 years ago

[browser] Remove deprecated mozL10n.get

Categories

(Firefox OS Graveyard :: Gaia::TV, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: yifan, Assigned: zbraniecki)

References

Details

(Whiteboard: [ft:conndevices][partner-blocker])

Attachments

(1 file)

There are 40 deprecated mozL10n.get calls in the TV browser. We should use node.setAttribute('data-l10n-id', l10nId) or navigator.mozL10n.setAttributes(node, l10nId, l10nArgs); to replace them. Thanks to Zibi for the detailed comments. Please refer to the comments in https://github.com/mozilla-b2g/gaia/pull/31371 .
Assignee: nobody → dhuang
Status: NEW → ASSIGNED
Hi Dan, any ETA for this?
Flags: needinfo?(dhuang)
Hi Zibi, sorry for late update. Currently I am working on gaia-tv 2.5 feature, and the deadline is in the middle of October. So I would start fixing this bug in the end of October.
Flags: needinfo?(dhuang)
Status: ASSIGNED → NEW
Comment on attachment 8712319 [details] [gaia] zbraniecki:1200078-refactor-l10n-in-browser > mozilla-b2g:master This quarter I'm moving System and TV to l20n, so I need this patch. It was actually fairly trivial to write because the code is clean and easy to transition! :) :yifan - can you review this for me?
Attachment #8712319 - Flags: review?(yliao)
Comment on attachment 8712319 [details] [gaia] zbraniecki:1200078-refactor-l10n-in-browser > mozilla-b2g:master Thank you for the help! Just a nit on Github.
Attachment #8712319 - Flags: review?(yliao) → review+
Assignee: dhuang → gandalf
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: