WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.52k stars 997 forks source link

Disable adding of new translations on a project #4015

Open aparcar opened 4 years ago

aparcar commented 4 years ago

Describe the bug We are happily using the hosted Weblate service for an open source project. Every now and then unknown users add new translations which result in about 90.000 new lines of PO files. We would very much like to disable that on a global level instead per component, as we have some 50 of them.

To Reproduce See above

Expected behavior Disabling it for one component should disable it for all or there should be a global option for that.

Screenshots

Server configuration and status hosted Weblate

Additional context

The project is hosted here

hnyman commented 4 years ago

Based on weblate commit https://github.com/WeblateOrg/weblate/commit/2303a205f90e5df84457bda749c405c53300208b I think that there should be such a global removal option, but it is not visible on the Language menu: kuva

So far 0 lines have been translated for Alemannic or "cadstar" , but the creation of the new language caused weblate to create .po files for all components, and maybe that destroys the logic of "no existing translations" ??

Example from unmerged weblate PR: https://github.com/openwrt/luci/blob/6af8fae8f38b59788c7dd905eb9696ce72cc6698/applications/luci-app-acl/po/cadstar/acl.po

hnyman commented 4 years ago

We would very much like to disable that on a global level instead per component, as we have some 50 of them.

One addition to that wish: In a large widely spear project like ours, the ideal weblate options might bea setting that:

nijel commented 4 years ago

@hnyman That is option to remove language from whole Weblate instance, also it can remove only the ones which do not have any translation, so it has no use here.

caused weblate to create .po files for all components

You have installed Language consistency addon which does this. This is reason why it's opt-in as it might not be desired for some projects.

nijel commented 4 years ago

prevent regular users from adding a language that has not yet beed used in any component. That would require admin approval.

With language consistency addon you have installed, that is equivalent to switching Adding new translation option to contact.

hnyman commented 4 years ago

You have installed Language consistency addon which does this. This is reason why it's opt-in

Thanks for the suggestion, we might need to remove it or we should change the mandatory contact policy.

But I can't find where I could control the add-ons. Can you provide advice where the opt-in addin options are managed.

aparcar commented 4 years ago

I already removed it duck. I'll add you as an admin once I'm back on the machine

github-actions[bot] commented 4 years ago

This issue has been put aside. Currently, it is unclear whether it will ever be implemented as it seems to cover too narrow of a use case or doesn't seem to fit into Weblate. Please try to clarify the use case or consider proposing something more generic to make it useful to more users.