WeblateOrg / WeblateOrg/weblate

Allow per-language Git repositories

Open
#7,271 22 comments 3 reactions 0 assignees View on GitHub
enhancement Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the problem

I'm considering [switching with Polish translation of Python documentation](https://github.com/python/python-docs-pl/issues/21) to Weblate. Python documentation translations in different languages are being kept in [separate](https://github.com/python/python-docs-zh-cn/tree/3.10) [Git](https://github.com/python/python-docs-fr) [repositories](https://github.com/python/python-docs-pl).

PO files in the repositories are stored in the main directory, without language prefix in directory structure.

"Filemask" field validation in new component form prevents entering a file mask without language code in it, which would be desired in my case. Also after creating a component potentially some other language would like to switch to using Weblate, and then we'd want those translations to land in separate Git repository, not Polish one.

### Describe the solution you'd like

* Allow to by-pass filemask validation for language placeholder in the pattern.
* I think it's ok for me to have a Weblate project per language for case of Python documentation. It would be awesome to have a possibility for having single project with many repositories for different languages. Presumably that can be difficult to implement, as for as far as I know it's not compatible with current Weblate projects architecture.

### Describe alternatives you've considered

I've [forked original Polish Python docs translations repo](https://github.com/m-aciek/python-docs-pl-weblate-poc) and moved all resources to `pl` directory to set proof-of-concept project on Weblate and investigate other parts of integration.
But such a move is not an option to original repository due to the [convention for fetching and rendering the docs](https://www.python.org/dev/peps/pep-0545/#repository-for-po-files).

### Screenshots

Screenshot of validation error displayed after entering about.po in the file mask field

### Additional context

[PEP 545 -- Python Documentation Translations](https://www.python.org/dev/peps/pep-0545/)

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.