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

Discovery addon: component creation based on the .pot #2084

Open
benwillig opened this issue Jun 13, 2018 · 6 comments
Open

Discovery addon: component creation based on the .pot #2084

benwillig opened this issue Jun 13, 2018 · 6 comments
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature.

Comments

@benwillig
Copy link

benwillig commented Jun 13, 2018

Currently, the discovery addon creates automatically components if the specified regular expression matches translation files.

In our implementation, the .pot files are generated automatically. But in some cases, there isn't any translations file. It means that a developer must push a translation file for the component to be created.

The idea would be to create the component if the .pot file is found. Then, any translators (even not a programmer) could start a new translation.

Thanks

@nijel nijel added the enhancement Adding or requesting a new feature. label Jun 13, 2018
@dsnoeck
Copy link

dsnoeck commented Jun 29, 2018

Hi @nijel, how complex it is to implement this enhancement ? Where should I start if I want to have a try ?

@nijel
Copy link
Member

nijel commented Jun 29, 2018

The discovery code is in weblate/trans/discovery.py. The problem is that currently it's based on assumption it detects translated files, so it will need some adjustments to work in this case as well.

@dsnoeck
Copy link

dsnoeck commented Jul 2, 2018

With the limited knowledge of Python/Django I have, I gave up ! But found a workaround, while I'm adding a template.pot file for new component, I'm also creating a file test.po which will be matched by the regex.

@Jibec
Copy link
Contributor

Jibec commented Jan 3, 2020

Same request here, i create a fake fr.po file by copying the pot file, and do it for thousands of files (the fedora documentation: https://docs.stg.fedoraproject.org/en-US/localization/).

@nijel nijel added the backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. label Feb 3, 2020
@github-actions
Copy link

github-actions bot commented Feb 3, 2020

This issue has been added to backlog. It is not scheduled on our road map, but it might be eventually implemented. In case you desperately need this feature, please consider helping or funding the development.

@m-aciek
Copy link
Contributor

m-aciek commented Jul 19, 2023

I'm also interested in this feature; I wonder if potentially msgmerge add-on could be a place for implementing that behavior (although this way it would be more difficult to configure it probably).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature.
Projects
None yet
Development

No branches or pull requests

5 participants