Closed Bug 1754942 Opened 3 years ago Closed 3 years ago

Request localization for Firefox Translations utilizing Pontoon

Categories

(Mozilla Localizations :: Other, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: anatal, Assigned: flod)

Details

  • Name of the product, brief description.

Firefox Translations, allows client side page translation for Firefox.

* Where the code lives and what kind of localization format it uses.

https://github.com/mozilla/firefox-translations. We currently don't have any localization implement, and would like guidance on the best approach.

* The desired repository structure.

Separate l10n repository

* Information about locales.

We are targeting: Spanish, German, Bulgarian, French, Polish, Estonian, English, Italian, Portuguese, Russian, Czech, Norwegian, Farsi, Icelandic

*  Testing strategy.

We can automatically import newly available content from the pontoon hosted repo daily and then build a public facing XPI utilizing GH Actions so localizers could test it.

* Update frequency, schedule and deadlines.

We expect to release the extension for QA in one month, and to the public and 6-7 weeks, and after that we don't expect new languages to be added for few months.

* Main point of contact for the project.

André Natal

Flags: needinfo?(francesco.lodolo)

Thanks for filing the request. I'll reach out next week for the next steps, since I'm out of office until Monday.

Leaving the NI open so it doesn't fall off the radar.

(In reply to André Natal from comment #0)

* Where the code lives and what kind of localization format it uses.

https://github.com/mozilla/firefox-translations. We currently don't have any localization implement, and would like guidance on the best approach.

Actually, there is nothing that I can do at the moment.

In order to localize the add-on, strings need to be exposed and not in the code. I don't see any trace of JSON files in the repo?
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Internationalization

You can also find examples around in Mozilla's projects (Facebook Container, Firefox Relay, Multi-Accounts Container). Unfortunately my team can't help with that part of the work.

Once strings are extracted, we'll need to review them to make sure they're clear, and then start the actual process.

Flags: needinfo?(francesco.lodolo) → needinfo?(anatal)

That's what I meant by guidance. I didn't know how to we should extract that and the actual format. Thanks for pointing out, I'll make sure we have those next week.

Flags: needinfo?(anatal)

Hey Flod. We have updated the extension to provide the strings. They are in extension/_locales folder. The English strings are in en folder.

We have followed the documentation in https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Internationalization. But, if we still missed something that blocks this task from moving forward then please feel free to let us know and we will make those changes asap (adding NI just for this reason).

Thanks again.

Flags: needinfo?(francesco.lodolo)

A few notes on the locales:

  • Please remove the other folders and only keep en (which should probably be renamed to en-US?). Those will be created as part of the translation process.
  • Locale codes don't match the ones we use internally at Mozilla, and there are a few that are unclear.
    • es -> Do we want this to be es-ES, or more variants?
    • pt -> We differentiate pt-PT and pt-BR, which one would you need?

I left a few comments in the PR introducing the English file.

Flags: needinfo?(francesco.lodolo)

:flod is there a reference document where we can find the locale codes used internally at Mozilla so we could provide you with the list we are intending to use?

Flags: needinfo?(francesco.lodolo)

In this specific case we want the same locale codes that we use in Firefox, so this is a good start (ignore ja-JP-mac)
https://hg.mozilla.org/mozilla-central/file/tip/browser/locales/all-locales

You can also see the locale codes enabled in Pontoon here
https://pontoon.mozilla.org/teams/

Flags: needinfo?(francesco.lodolo)

I've opened a pull request to fix a few more things in the source file
https://github.com/mozilla/firefox-translations/pull/120/files

See also the note about adding me as a contributor to the repo, no need for write access.

Translations will live here. There's already Italian, so you can verify that everything works and start thinking about the import process
https://github.com/mozilla-l10n/firefox-translations-l10n/

Ideally, we should have at least one import+build a day for localizers to test. Once that's set up, I can add more languages and make the project in Pontoon public.

One important note on "Firefox Translations" (translate it or not). You mentioned that there's no product support at the moment, but this is one of the choices that we need to make once, and then enforce. Changing our minds later is going to create problems.

(In reply to André Natal from comment #0)

We are targeting: Spanish, German, Bulgarian, French, Polish, Estonian, English, Italian, Portuguese, Russian, Czech, Norwegian, Farsi, Icelandic

This would be my list, based on the languages listed here.

bg
cs
de
en-CA
en-GB
es-AR
es-CL
es-ES
es-MX
et
fa
fr
is
it
nb-NO
nn-NO
pl
pt-BR
ru

Hi Flod, this list looks reasonable for us. We can start with that. Thanks for narrowing it up. Is there anything else we need to do to have the project set on pontoon to start receiving contributions?

I plan to open it up on Monday.

I think we still need to clarify the testing instructions (add-on disabled when you restart the browser), but the rest should be OK.

Assignee: nobody → francesco.lodolo
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.