touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #22176
[Bug 1359153] Re: YouTube labels and categories are not localized
So I've dug a bit further into this problem. I've confirmed that the
untranslated strings are coming from the API rather than embedded in the
scope, so it isn't a simple matter of adding some gettext() calls and
rerunning "make pot".
The department list is determined by a call to the
youtube.guideCategories.list endpoint:
https://developers.google.com/youtube/v3/docs/guideCategories/list
This endpoint takes hl (human language) and regionCode parameters that
the scope is filling in from the locale and location data respectively.
I notice that even when I use hl=es_ES, some of the guide categories are
returned in English (including "Best of YouTube").
The category list for the surfacing page of each department (including
the top level "Best of YouTube" one) are formed by a call to the
youtube.channels.list endpoint:
https://developers.google.com/youtube/v3/docs/channels/list
The id from the guideCategories output is passed as the categoryId
parameter to this API. There doesn't seem to be any parameters to set
language or region here, so the results all seem to come back in
English.
Also, it looks like the guide returns identical category IDs for all
languages, so it can't use that to determine the language to show for
results.
I'll do a bit more poking around, but I don't see an obvious documented
way to pass in the desired language here.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1359153
Title:
YouTube labels and categories are not localized
Status in Ubuntu Rest Scopes:
Invalid
Status in Ubuntu Translations:
Triaged
Status in “unity-scope-youtube” package in Ubuntu:
Triaged
Status in “unity8” package in Ubuntu:
Invalid
Bug description:
YouTube scope shows untranslated categories and labels.
Test case.
- Switch Ubuntu Phone to Spanish, reboot.
- Go to YouTube scope.
Expected result.
- Labels and categories must be displayed in Spanish.
Actual result.
- "Best of YouTube" and its categories are displayed in English.
- "Sports", "Gaming", number of "views" and other labels are displayed also in English.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-rest-scopes/+bug/1359153/+subscriptions
Follow ups