Some settings are not the same as in the original component
Most settings should be identical (Committer name, email, Age of changes to commit)
Currently only limited set of fields is copied, it certainly can be extended:
Pull requests welcome ;-).
Name and Slug are update with the new component name. Can we do the same for filemask and new_base (base file for new translation) ? For example the filemask of my first component is _component-a/.po_ and with auto-discovery I would like to have it _component-x/.po_
Can I use the get_val() method :
https://github.com/WeblateOrg/weblate/blob/6e51dd8e259a61b0deea260fa3138d6a0d9a7c5c/weblate/trans/discovery.py#L129-L134
So I will have:
name = get_val('name')
slug = get_val('slug')
filemask = get_val('filemask')
new_base = get_val('new_base')
simple_keys = (
'project', 'branch', 'vcs', 'push_on_commit', 'license_url', 'license',
'committer_name', 'committer_email', 'push_on_commit', 'commit_pending_age', 'language_regex',
)
The language_regex is filled in by discovery as well, but rest IMHO can be safely included.
Thank you for your report, the issue you have reported has just been fixed.
Sorry to not have continue on that task. I was struggling to get my dev environment up and running and then I had to switch to an other task !
@nijel Is there any reason why edit_template is not on that list?
Not really :-). Maybe it was not present back then. Added in 6e6c7b320b.