we have a translation pull requests opened for a few days containing changes on the source translation file of an xwiki core component. Apparently the author of those changes decided on his own to fix a problem with a localization string that impacts the UI by editing the source translation in Weblate.
For me this raises two problems:
- it means right now anyone can edit the source of all translations (considered as the basis for all translations files) without a clear JIRA ticket even if it can impact the UI
- currently we don’t have a proper support of handling changes in Weblate without changing the format of a translation file: it’s not really a problem for most translations files since they are edited through Weblate so they always keep same format. It’s more a problem for the source translation file since this one might contain some new lines to separate sections that might be lost once edited in Weblate
So in order to avoid those problems in the future, I propose that we disable systematically the capability to edit the source file of a component in weblate.
This can be done by going into “Management > Settings” of a component and then in “Files” tab by unchecking the “Edit base file” box, see:
Unless someone disagrees, I’ll do that shortly for all xwiki components. For contrib extension components I’ll leave it to the appreciation of the different dev of each extensions.
Regarding the current state of the PR, I opened a ticket for the change that has been done and we’ll handle that separately.