Closed Bug 1497851 Opened 6 years ago Closed 6 years ago

[project.config] Find localization files through project configuration

Categories

(Webtools Graveyard :: Pontoon, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mathjazz, Assigned: mathjazz)

Details

Attachments

(1 file)

Pontoon requires project repositories to follow a particular directory structure in order to detect files used for localization:
https://developer.mozilla.org/en-US/docs/Mozilla/Implementing_Pontoon_in_a_Mozilla_website#A._Make_your_project_localizable

We should drop that requirement by supporting project configuration files:
https://moz-l10n-config.readthedocs.io/en/latest/fileformat.html

This bug tracks the implementation of finding locale files through project configuration.
Commit pushed to master at https://github.com/mozilla/pontoon

https://github.com/mozilla/pontoon/commit/31b04476ab661c4c6751ebd758d3b62e3f99f755
Fix bug 1497851: Enable finding l10n files via project config (#1130)

Also included:
* When serializing files that don't yet exist in the repo, create
  parent folders if necessary.
* Use consistent method prefixes to denote project-config and
  no-project-config logic.
* Enable adding locales via Pontoon for projects with project config

TODO: when adding new locales, commit changed config file. For now we
don't make changes to the configuration file, because the pytoml
serializer messes with the file layout (indents and newlines) pretty
badly.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
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: