Skip to content

i18n warn if a module has an unexpected domain in its po file.#2408

Merged
monkeyiq merged 1 commit intosimplesamlphp:simplesamlphp-2.4from
monkeyiq:2024/march/i18n-modules-warn-if-wrong-domain
Mar 21, 2025
Merged

i18n warn if a module has an unexpected domain in its po file.#2408
monkeyiq merged 1 commit intosimplesamlphp:simplesamlphp-2.4from
monkeyiq:2024/march/i18n-modules-warn-if-wrong-domain

Conversation

@monkeyiq
Copy link
Contributor

This is a follow up to the theme domain handling update from #2384

If you copy the translations for an existing theme or module and forget to change the domain setting in the po file then it might not be found by SSP. With this warning message you will at least have some indication as to why this might have happened.

This is a follow up to the theme domain handling update from
simplesamlphp#2384

If you copy the translations for an existing theme or module and
forget to change the domain setting in the po file then it might not
be found by SSP. With this warning message you will at least have some
indication as to why this might have happened.
@codecov
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.21%. Comparing base (9449865) to head (114a759).
Report is 2 commits behind head on simplesamlphp-2.4.

Additional details and impacted files
@@                   Coverage Diff                   @@
##             simplesamlphp-2.4    #2408      +/-   ##
=======================================================
- Coverage                45.23%   45.21%   -0.02%     
- Complexity                3953     3954       +1     
=======================================================
  Files                      165      165              
  Lines                    13241    13248       +7     
=======================================================
+ Hits                      5989     5990       +1     
- Misses                    7252     7258       +6     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@monkeyiq monkeyiq merged commit 48b6e5c into simplesamlphp:simplesamlphp-2.4 Mar 21, 2025
12 checks passed
monkeyiq added a commit that referenced this pull request Mar 21, 2025
This is a follow up to the theme domain handling update from
#2384

If you copy the translations for an existing theme or module and
forget to change the domain setting in the po file then it might not
be found by SSP. With this warning message you will at least have some
indication as to why this might have happened.
monkeyiq added a commit that referenced this pull request Mar 21, 2025
This is a follow up to the theme domain handling update from
#2384

If you copy the translations for an existing theme or module and
forget to change the domain setting in the po file then it might not
be found by SSP. With this warning message you will at least have some
indication as to why this might have happened.
@monkeyiq
Copy link
Contributor Author

I picked this forward to master and back to 2.3. Since it is a warning it should be fine as a bug fix and may help folks who are not getting the translations they are expecting.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants