Closed Bug 1600134 Opened 5 years ago Closed 5 years ago

Refactor get_translations_from_other_locales() API

Categories

(Webtools Graveyard :: Pontoon, enhancement, P3)

enhancement

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 the user_data() method
  • UserProfile.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.

Assignee: nobody → abowler2
Mentor: m
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Whiteboard: outreachyround19
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: