New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glossary: Add context
to glossary form and change permission check
#11063
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make it share the code with NewBilingualSourceUnitForm
? Duplicating the field description and help texts will lead to them getting out of sync over time.
Otherwise, the form will not be displayed in non source language interfaces
In order not to duplicate the field description and help texts
770eb1d
to
54dd17f
Compare
This pull request has been automatically marked as stale because there wasn’t any recent activity. It will be closed soon if no further action occurs. Thank you for your contributions! |
Otherwise the CSS changes from it are applied to the popup what is not desired. Discovered in #11063
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11063 +/- ##
==========================================
- Coverage 90.82% 90.62% -0.21%
==========================================
Files 554 570 +16
Lines 57306 58599 +1293
Branches 9122 9373 +251
==========================================
+ Hits 52046 53103 +1057
- Misses 3640 3810 +170
- Partials 1620 1686 +66
|
This reverts commit d33d785.
Version 5.5.1
Merged, thanks for your contribution! |
Proposed changes
Add an input box for
context
to glossary form in the translation UI (#10969), based onNewMonolingualUnitForm
:weblate/weblate/trans/forms.py
Lines 2375 to 2391 in 8f105d7
I also noticed that there is a significant difference between
NewMonolingualUnitForm
andNewBilingualSourceUnitForm
. Should we unify them?I also changed the permission check from
unit.add
toglossary.add
. Before this commit, terms can not be directly added to the glossary because of this check:weblate/weblate/auth/permissions.py
Lines 273 to 274 in 4774584
Checklist
Other information
Screenshot