WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.33k stars 970 forks source link

Add description to Label and put a toolip #11907

Closed harriebird closed 4 days ago

harriebird commented 1 week ago

Proposed changes

Added description field to the Label model and set it as a tooltip. This solves issue #9227.

Example images:

Screenshot from 2024-06-21 00-21-20

Screenshot 2024-06-21 at 00-34-36 Test Project @ Devel Weblate

Checklist

Other information

nijel commented 5 days ago
harriebird commented 4 days ago

Updated the tests and added description in the LabelSerializer fields.

codecov[bot] commented 4 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.61%. Comparing base (6aee586) to head (dbe333c). Report is 2286 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907/graphs/tree.svg?width=650&height=150&src=pr&token=9rzx9QBq35&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg)](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg) ```diff @@ Coverage Diff @@ ## main #11907 +/- ## ========================================== - Coverage 90.82% 90.61% -0.21% ========================================== Files 554 578 +24 Lines 57306 58835 +1529 Branches 9122 9393 +271 ========================================== + Hits 52046 53313 +1267 - Misses 3640 3829 +189 - Partials 1620 1693 +73 ``` | [Files](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg) | Coverage Δ | | |---|---|---| | [weblate/api/serializers.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907?src=pr&el=tree&filepath=weblate%2Fapi%2Fserializers.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS9hcGkvc2VyaWFsaXplcnMucHk=) | `92.57% <100.00%> (+0.10%)` | :arrow_up: | | [weblate/api/tests.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907?src=pr&el=tree&filepath=weblate%2Fapi%2Ftests.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS9hcGkvdGVzdHMucHk=) | `100.00% <100.00%> (ø)` | | | [weblate/trans/forms.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907?src=pr&el=tree&filepath=weblate%2Ftrans%2Fforms.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS90cmFucy9mb3Jtcy5weQ==) | `88.55% <100.00%> (+0.68%)` | :arrow_up: | | [weblate/trans/migrations/0019\_label\_description.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907?src=pr&el=tree&filepath=weblate%2Ftrans%2Fmigrations%2F0019_label_description.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS90cmFucy9taWdyYXRpb25zLzAwMTlfbGFiZWxfZGVzY3JpcHRpb24ucHk=) | `100.00% <100.00%> (ø)` | | | [weblate/trans/models/label.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907?src=pr&el=tree&filepath=weblate%2Ftrans%2Fmodels%2Flabel.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS90cmFucy9tb2RlbHMvbGFiZWwucHk=) | `100.00% <100.00%> (ø)` | | | [weblate/trans/tests/test\_labels.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907?src=pr&el=tree&filepath=weblate%2Ftrans%2Ftests%2Ftest_labels.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS90cmFucy90ZXN0cy90ZXN0X2xhYmVscy5weQ==) | `100.00% <100.00%> (ø)` | | ... and [329 files with indirect coverage changes](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11907/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg)
nijel commented 4 days ago

Merged, thanks for your contribution!