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 case-sensitive key sorting setting in Properties add-on #11933

Closed harriebird closed 4 days ago

harriebird commented 4 days ago

Proposed changes

This adds a configuration to toggle case-sensitive key sorting to the weblate.properties.sort add-on. This solves issue #11714.

Example images:

Screenshot 2024-06-25 at 16-27-23 Freeplane_Test Component @ Devel Weblate

Screenshot 2024-06-25 at 16-23-01 Freeplane_Test Component @ Devel Weblate

Checklist

Other information

codecov[bot] commented 4 days ago

Codecov Report

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

Project coverage is 90.62%. Comparing base (6aee586) to head (e5cc251). Report is 2309 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11933/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/11933?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg) ```diff @@ Coverage Diff @@ ## main #11933 +/- ## ========================================== - Coverage 90.82% 90.62% -0.20% ========================================== Files 554 581 +27 Lines 57306 58937 +1631 Branches 9122 9406 +284 ========================================== + Hits 52046 53410 +1364 - Misses 3640 3833 +193 - Partials 1620 1694 +74 ``` | [Files](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11933?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg) | Coverage Δ | | |---|---|---| | [weblate/addons/forms.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11933?src=pr&el=tree&filepath=weblate%2Faddons%2Fforms.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS9hZGRvbnMvZm9ybXMucHk=) | `93.89% <100.00%> (+0.62%)` | :arrow_up: | | [weblate/addons/properties.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11933?src=pr&el=tree&filepath=weblate%2Faddons%2Fproperties.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS9hZGRvbnMvcHJvcGVydGllcy5weQ==) | `64.63% <100.00%> (+6.19%)` | :arrow_up: | | [weblate/addons/tests.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11933?src=pr&el=tree&filepath=weblate%2Faddons%2Ftests.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS9hZGRvbnMvdGVzdHMucHk=) | `99.76% <100.00%> (+0.03%)` | :arrow_up: | ... and [337 files with indirect coverage changes](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11933/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg)