Closed carreter closed 1 month ago
Attention: Patch coverage is 96.55172%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 85.02%. Comparing base (
68d2e29
) to head (5cddc82
). Report is 6 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
i18n-helpers/src/xgettext.rs | 96.55% | 0 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for the fix, @carreter! Can you add or update one of the existing test cases which will catch this bug please?
I think it will be good to have this tested to ensure we don't break it in the future.
Added the test as requested @kdarkhan !
Please fix formatting. LGTM otherwise.
I added the fix on top of your PR, thanks for the contribution.
Related to #171.
While trying to refresh the Spanish translation of Comprehensive Rust, @henrif75 noticed that the
messages.pot
file I generated had line numbers that shouldn't be there (see https://github.com/google/comprehensive-rust/issues/2120).Digging around in the code, I noticed that the
xgettext
code was ignoring the granularity for sub-chapters. This PR fixes that!