WeblateOrg / WeblateOrg/weblate

Avoid accidentally uploading different language to a translation

Open
#3,801 1 comment 0 reactions 0 assignees View on GitHub
enhancement Waiting for: Implementation
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

**Is your feature request related to a problem? Please describe.**
With upload the language of the file is not checked. In case user is manually uploading more files, it is easy to mess up and upload different file.

**Describe the solution you'd like**
Weblate should try to validate whether language of the uploaded file matches. In some file formats this information is present (XLIFF) so we should utilize it.

I'm not sure if we should try to detect language from the filename as well, that looks too fragile, but it might be the only way for formats which do not expose this.

There also needs to way to override the detection in case it is wrong.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.