Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify absence of fuzzy translations #596

Merged
merged 4 commits into from
Oct 21, 2019

Conversation

mattias-p
Copy link
Member

@mattias-p mattias-p commented Oct 2, 2019

This adds a new unit test ensuring that we don't accept fuzzy markings in PO files into the develop branch.

Three out of four PO files do contain fuzzy entries, so they have been added to a whitelist to be opted out of this check. For each one there is an issue to clean up the PO file:

There is also an issue (#597) to clean up the whitelist mechanism once all PO files have been removed from the whitelist.

@matsduf
Copy link
Contributor

matsduf commented Oct 3, 2019

PR #604 is created to solved #600 and da.po is updated. File t/po-files.t cannot be updated since it currently does not exist in the develop branch.

@matsduf
Copy link
Contributor

matsduf commented Oct 3, 2019

PR #605 is created to resolve #598 and sv.po is updated. File t/po-files.t cannot be updated since it currently does not exist in the develop branch.

matsduf
matsduf previously approved these changes Oct 3, 2019
share/Makefile Outdated Show resolved Hide resolved
share/Makefile Outdated Show resolved Hide resolved
share/sv.po Outdated Show resolved Hide resolved
share/sv.po Outdated Show resolved Hide resolved
@mattias-p
Copy link
Member Author

Rebased onto current develop.

Copy link
Contributor

@matsduf matsduf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there are too many files in this PR.

@mattias-p
Copy link
Member Author

Yeah, I'm cleaning it up. Let's see if we actually need the PO files in the MANIFEST.

@mattias-p
Copy link
Member Author

It finally passes Travis, and I've cleaned up the accidentally included changes.

@matsduf, @vlevigneron Please review again.

}

subtest "no fuzzy marks" => sub {
my @fuzzy_po_files = qw( da.po fr.po sv.po );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a list of po files that must be fuzzy free or may have "fuzzy"? What about en.po?

Why not fetch from share/ instead to make it catch future languages automatically?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've described the design in the PR description above. Once this has been merged and #598, #599, #600 and #597 have been fixed according to their respective descriptions, this mechanism will be removed. Do you think the mechanism will fail to meet its goals?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the "fuzzy" has been removed from sv and da I do not see any reason to keep those on a white list (or black list), but OK.

@mattias-p mattias-p merged commit c8f2bb8 into zonemaster:develop Oct 21, 2019
@mattias-p mattias-p deleted the no-fuzzy branch May 5, 2020 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants