-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Allow per-language Git repositories #7271
Comments
This issue has been added to the backlog. It is not scheduled on the Weblate roadmap, but it eventually might be implemented. In case you need this feature soon, please consider helping or push it by funding the development. |
+1 Currently, Traditional Chinese translation of Python documentation is facing the same problem. |
Isn't it better for all Python documentation localization to be in a single place? This brings numerous benefits - for example, it is easier to find problematic source strings or people understanding more languages can benefit from other translations. We do not accept single language projects in our libre hosting plan for this reason. |
Definitely it would be better to have one Weblate project with multiple languages. In the issue description I was meaning to consider having separate Weblate projects for languages as a temporary workaround only. I understand and agree with your reasoning. |
The problem here is that the "temporary workaround" means quite some development in Weblate. I don't mind getting a pull request implementing this, but it is certainly not something we would push on our own. |
you can create the dir and symlink the files into it |
@burner1024 I created a symlink to the main directory. It occurs that currently Weblate doesn't handle that. Please see #7909. I think that creating a |
Isn't this issue a duplicate of #5447? |
No, this is about translating files in a single language repository, that one is about supporting configuration for language teams. |
I'd like to try to tackle this issue in my free time. Instead of doing shenanigans to sync commits from Weblate backend repo to many per-language repositories outside of Weblate, I'd like to invest my time by bringing this feature in Weblate. For now I imagine that as being able to put a placeholder in repository URL instead in filemask when configuring a component. Then repository state for such a component would be tracked on per language basis. I would like to try to do minimal changes in UX/UI as well as in the code logic to make this all work. |
So we're looking for support of many single-language repositories within a component, right? I think the cleanest approach from the current Weblate architecture would be to handle this within the VCS backend.
Tricky parts:
The Python docs could then have a repository URL like Do I miss something? Does it sound viable? |
Thank you for your guidance on the direction.
For now I'm in favour of a single generic multi-repo implementation supporting all VCS integrations. Then repository JSON could look like If I'm not mistaken it looks like the same format should be repeated for push repository URL. Also probably we would need a dedicated key for "new base" (POTs) repository in the repositories JSON, to use it along with msgmerge addon. Not to hack the dispatch for this case and store the POTs in a language repository.
|
Yes, that's why I didn't want to bind it to languages only. Using more complex JSON makes sense. |
Describe the problem
I'm considering switching with Polish translation of Python documentation to Weblate. Python documentation translations in different languages are being kept in separate Git repositories.
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
Describe alternatives you've considered
I've forked original Polish Python docs translations repo 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.
Screenshots
Additional context
PEP 545 -- Python Documentation Translations
The text was updated successfully, but these errors were encountered: