Skip to content
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

Unify common holidays name translation #1673

Merged
merged 4 commits into from
Jan 29, 2024

Conversation

KJhellico
Copy link
Collaborator

Proposed change

Unify common holidays name translation (step to switch to per-locale .po files):

  • unify en_US translation of Labor Day, Christmas Day, Assumption Day, Easter Sunday etc.
  • update comments

Type of change

  • New country/market holidays support (thank you!)
  • Supported country/market holidays update (calendar discrepancy fix, localization)
  • Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
  • Dependency update (version deprecation/upgrade)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (a code change causing existing functionality to break)
  • New feature (new python-holidays functionality in general)

Checklist

  • I've followed the contributing guidelines
  • I've run make pre-commit, it didn't generate any changes
  • I've run make test, all tests passed locally

@KJhellico KJhellico requested a review from PPsyrius January 27, 2024 12:43
@KJhellico KJhellico requested a review from arkid15r as a code owner January 27, 2024 12:43
@coveralls
Copy link

coveralls commented Jan 27, 2024

Pull Request Test Coverage Report for Build 7694471159

  • 0 of 12 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 7689599421: 0.0%
Covered Lines: 10424
Relevant Lines: 10424

💛 - Coveralls

@KJhellico KJhellico added the l10n label Jan 27, 2024
Copy link
Collaborator

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great work!

Some thoughts after reviewing this:

  • for Islamic holidays we use both translated and "real" English names, e.g., Eid al-Adha and Prophet's Birthday (instead of Mawlid)
  • another example - for Mawlid we use Prophet's Birthday comment and next to it Isra and Miraj instead of The Prophet's Ascension (ID holidays)

It looks like something that can be unified too (now or later).

holidays/countries/egypt.py Outdated Show resolved Hide resolved
@KJhellico
Copy link
Collaborator Author

Yes, for some Islamic holidays we use here "traditional" version of the name rather than translated one. Where Eid al-Fitr and Eid al-Adha can still be translated (as "Feast of Breaking the Fast" and "Feast of Sacrifice"), I can't find a suitable short name for Isra' and Mi'raj and Ashura, for example :)

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arkid15r arkid15r added this pull request to the merge queue Jan 29, 2024
Merged via the queue into vacanza:beta with commit 2ea9232 Jan 29, 2024
26 checks passed
@KJhellico KJhellico deleted the loc-unification branch January 29, 2024 16:56
@KJhellico KJhellico mentioned this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants