Closed Bug 1232051 Opened 9 years ago Closed 9 years ago

[TV][2.5] Marketplace UI should show strings (not just API data) localized for the user

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ddurst, Assigned: jyeh)

References

Details

Attachments

(1 file)

Note: the templates for the UI should localize for the user. While the data should be returned from the API, the rest of the strings in the UI need to also be localized.
Hi David, Does current TV API provide l10n support? I think we also need to check content team how many different languages of content we are supporting to weight in whether this is in 2.5 scope.
Flags: needinfo?(ddurst)
It does. It uses the Accept-Language header from the request, though it can be streamlined/overridden by the 'lang' querystring param. http://firefox-marketplace-api.readthedocs.org/en/latest/topics/overview.html#language
Flags: needinfo?(ddurst)
Hi Joseph, Can you check whether your code does send Accept-Language header from the request to get support languages?
Flags: needinfo?(jyeh)
I think this feature is included in marketplace-core-modules, so no extra code is needed. And I also figure out how the UI strings can be localized in fireplace. Once we have all the l10n strings, all we need is to put them into correct format.
Flags: needinfo?(jyeh)
Priority: -- → P2
Hi Joseph. I'll also comment in the github commit (seems I missed it in the initial review) but we'll need to send the translatable strings to the underscore function {{ _('some text to translate') }} in the templates and translated API responses to the 'translate' filter like {{ app.name|translate(app) }}
Assignee: nobody → jyeh
Status: NEW → ASSIGNED
Hi Dover, I am not sure where should I use the 'translate' filter. Is it only for app.name or is there any attributes that also need too? I send the pull request out, maybe you can give me some advise there. Thanks.
Hi Davor, can you help me with this patch? Thanks!
Attachment #8703936 - Flags: review?(dspasovski)
Attachment #8703936 - Flags: review?(dspasovski) → review-
Comment on attachment 8703936 [details] [review] jostw:josyeh/Marketplace/master/Bug1232051 > mozilla-b2g:master Hi Davor, I have fixed the l10n of 'by {author}' and I also added another commit which change the wording of 'Marketplace' to 'Web Apps'. Please let me know if there are any code that need further improvement, thanks :)
Attachment #8703936 - Flags: review- → review?(dspasovski)
Attachment #8703936 - Flags: review?(dspasovski) → review+
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.

Attachment

General

Created:
Updated:
Size: