Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug 1633149: Detect changes to translated resources on sync (#1753)
When detecting changes to translated resources in VCS, we need to identify which of the changed paths belongs to a localizable resource. The logic that does that makes assumptions about the file and folder structure which are not valid for projects using project configuration. Hence this patch adds a new logic for such projects, which makes use of the ProjectFiles matcher of the compare-locales library. The logic also converts the changed paths to the canonical form for representing resources used across Pontoon codebase (reference path insted of l10n path) and assigns the list of changed locales to each path. This patch also fixes bug 1608045, which was another symptom of the very same problem.
- Loading branch information
Showing
2 changed files
with
126 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters