Include usernames in translator credits
Closed this issue · 8 comments
Describe the problem
Currently, the output for translator credits includes the translator's email, name, and change count.
Describe the solution you would like
It would be useful for me for automatic translation attribution if the output also included the account username of the translator.
Describe alternatives you have considered
It would probably be possible to pull out the username through some incantation of API calls, but it's not ideal considering this endpoint already has access to this information, and simply omits it.
This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this.
You can learn about how to get started in our contributors documentation.
Hi @nijel ,Can I take up this issue ?
Hello, I would like to work on this issue.
Anybody is welcome to submit a pull request. The credits generating code is here:
weblate/weblate/trans/views/reports.py
Lines 52 to 92 in c8ecca0
account username of the translator.
Hi @nijel,
I’m encountering difficulties with the tests related to author usernames in the generate_credits
function. The ReportsTest are failing, and I’m unsure why. Specifically, is the author_username
field being used correctly to retrieve the username?
Here is my implement on this issue:
Thank you for your help!
Hi guys, check my PR #12821 for this issue.
Thank you for your report; the issue you have reported has just been fixed.
- In case you see a problem with the fix, please comment on this issue.
- In case you see a similar problem, please open a separate issue.
- If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.