Open markoph opened 2 years ago
The documentation is wrong in this case, it was never supported here.
Also, language-specific variables (for example {{ filename }}
) cannot work here because squashing merges commits across translations.
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.
I think the template for the commit message plugin, when you are configuring it for the first time is still wrong, same as it was those 1.5 years ago.
@JacekJagosz There is no mention of template support there. Can you please clarify what is wrong?
When you first set this addon up, the default commit message is:
Translated using Weblate ({{ language_name }})
Currently translated at {{ stats.translated_percent }}% ({{ stats.translated }} of {{ stats.all }} strings)
Translation: {{ project_name }}/{{ component_name }} Translate-URL: {{ url }}
And the markdown in it is broken, so it looks like this in git when you commit something.
My suggestion is to remove markdown from the default commit message that appears when you set this plugin up.
That is definitely not the default. The default is a blank string.
Describe the issue
I see template markup (variables) in commit message instead of strings these variables represent.
Documentation of addon-weblate-git-squash) indicates it should work:
I already tried
Steps to reproduce the behavior
Translated using Weblate ({{ language_name }} / {{ filename }})
Expected behavior
Template markup should be processed and it should generate strings in place of variables.
Screenshots
Addon configuration:
Repository maintenance page:
GitLab MR:
Exception traceback
No response
How do you run Weblate?
weblate.org service
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response