Closed Bug 1588931 Opened 4 months ago Closed 4 months ago

[translate] Localize Machinery sources

Categories

(Webtools :: Pontoon, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mathjazz, Assigned: dinda.rachmat, Mentored)

Details

(Whiteboard: outreachyround19)

Attachments

(3 files)

The Machinery sources and their title attributes in the Machinery tab need to be localized (except Company names and Trademarks).

This bug covers:

  • wrapping the unlocalized strings in <Localized> components;
  • giving them proper l10n IDs;
  • adding the content to the en-US reference .ftl file;
  • building the docker image (make shell) and verifying, using pseudo-localization, that the content is now localized.

The JS file is:
frontend/src/core/api/machinery.js

The localization file is:
frontend/public/static/locales/en-US/translate.ftl

Please note that this is a Translate.Next bug. More instructions must be followed in order to be able to work on it locally: https://github.com/mozilla/pontoon/blob/master/frontend/README.md

Should I try to get this one done?

Assigned!

Assignee: nobody → dinda.rachmat
Status: NEW → ASSIGNED
Attached image machinery.png

hi :mathjazz

I have trouble locating your screenshot. Is it in machinery tab on translation menu? Because I all can see is like on my attached screenshot. I also have difficulty on how to wrap the <Localized /> tag. Because the string is inside the property of an object.

And when I looked at the JS file you refer to frontend/src/core/api/machinery.js sometimes sources.type is translatable (without company names & trademarks) like the one on this :
https://github.com/mozilla/pontoon/blob/6f42e4197cff1d79828b6996ac45458439d4f0a8/frontend/src/core/api/machinery.js#L45

But on the same property of sources.type it has company name like this one :
https://github.com/mozilla/pontoon/blob/6f42e4197cff1d79828b6996ac45458439d4f0a8/frontend/src/core/api/machinery.js#L75

So, can you please give me hints what should I do to make it localizable?

Yes, this is the Machinery tab. Are you confused because you don't see Translation Memory entries? Try to submit a translation to one of the two strings that are the same (or almost the same) and observe the Machinery tab when you open the other one. Maybe "a string" and "a strong" would do.

Check out how we localize notifications, maybe that will give you a hint on how you can localize:
https://github.com/mozilla/pontoon/blob/6f42e4197cff1d79828b6996ac45458439d4f0a8/frontend/src/core/notification/messages.js

The only localizable sources.type is "Translation Memory".

All sources.title are localizable.

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Whiteboard: outreachyround19
You need to log in before you can comment on or make changes to this bug.