Closed
Bug 1600134
Opened 5 years ago
Closed 5 years ago
Refactor get_translations_from_other_locales() API
Categories
(Webtools Graveyard :: Pontoon, enhancement, P3)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mathjazz, Assigned: abowler, Mentored)
References
Details
(Whiteboard: outreachyround19)
Attachments
(2 files)
get_translations_from_other_locales()
method should return a dict with two lists:
- translations to
preferred
locales - translations to
other
locales
That way we can simplify the frontend code and remove:
preferred_locales
from theuser_data()
methodUserProfile.sorted_locales_codes
otherlocales.selectors.getOrderedOtherLocales
If translation from a preferred_source_locale
is displayed instead of the actual original string, we should add the original string to the top of the preferred
list. We should render it as an en-US
translation until bug 1328879 gets fixed, and make sure it isn't linked like translations from other locales.
Reporter | ||
Updated•5 years ago
|
Assignee: nobody → abowler2
Mentor: m
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Reporter | ||
Comment 3•5 years ago
|
||
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Whiteboard: outreachyround19
Updated•3 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•