Skip to content

Update Burkina Faso holidays: add l10n support#3177

Merged
arkid15r merged 38 commits into
vacanza:devfrom
aman-coder03:l10n-fr-bf
Feb 24, 2026
Merged

Update Burkina Faso holidays: add l10n support#3177
arkid15r merged 38 commits into
vacanza:devfrom
aman-coder03:l10n-fr-bf

Conversation

@aman-coder03

Copy link
Copy Markdown
Contributor

This PR adds missing French (fr) localization for Burkina Faso (BF).

Changes

  • Introduces BF.po under the French locale
  • Uses English source strings (msgid) with French translations (msgstr)
  • Follows existing gettext and locale patterns in the repository

Notes

  • Translations are based on existing Francophone locale conventions
  • This is a minimal, incremental addition focused on correctness and consistency

fixes #3175
Part of #3152.

@coderabbitai

coderabbitai Bot commented Dec 29, 2025

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Adds Burkina Faso localization: three BF gettext PO catalogs (fr, en_BF, en_US); marks BurkinaFaso holiday labels and names for translation via gettext alias tr; sets default_language and supported_languages on the BurkinaFaso class; and adds locale tests for fr, en_BF, and en_US.

Changes

Cohort / File(s) Summary
Localization catalogs
holidays/locale/fr/LC_MESSAGES/BF.po, holidays/locale/en_BF/LC_MESSAGES/BF.po, holidays/locale/en_US/LC_MESSAGES/BF.po
Added three BF gettext PO files with headers and message entries for holiday names and pattern strings (%s (estimated), %s (observed, estimated), %s (observed)).
Country module
holidays/countries/burkina_faso.py
Imported from gettext import gettext as tr; added default_language = "en_BF" and supported_languages = ("en_BF", "en_US", "fr"); wrapped label templates and all public holiday name literals with tr(...).
Tests
tests/countries/test_burkina_faso.py
Added test_l10n_fr, test_l10n_en_bf, and test_l10n_en_us asserting localized holiday names for 2022 (including observed variants).
Docs
README.md
Updated Burkina Faso languages cell to include en_BF, en_US, and fr.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related PRs

Suggested reviewers

  • arkid15r
  • KJhellico
  • PPsyrius
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: adding localization support for Burkina Faso holidays, which is reflected throughout the changeset.
Description check ✅ Passed The description is well-related to the changeset, explaining the addition of French localization and referencing the linked issues appropriately.
Linked Issues check ✅ Passed The PR successfully addresses issue #3175 by adding French localization (BF.po), implementing gettext patterns, adding tests for multiple locales (fr, en_BF, en_US), and setting en_BF as default while maintaining en_US support.
Out of Scope Changes check ✅ Passed All changes align with the stated objectives: localization files, translation wrappers, locale configuration, tests, and README updates are all within scope for adding French localization support.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread holidays/locale/fr/LC_MESSAGES/BF.po
@KJhellico KJhellico marked this pull request as draft December 29, 2025 10:26
@github-actions github-actions Bot added the test label Dec 29, 2025
@aman-coder03 aman-coder03 marked this pull request as ready for review December 31, 2025 15:26
@KJhellico KJhellico marked this pull request as draft December 31, 2025 16:53
@aman-coder03

Copy link
Copy Markdown
Contributor Author

@KJhellico can you please tell should i go according to the french localisation or english official language?

@KJhellico

Copy link
Copy Markdown
Collaborator

should i go according to the french localisation or english official language

These tasks are not conflicting. English should be the official language, and other languages can be added.

@aman-coder03

Copy link
Copy Markdown
Contributor Author

thanks for clarifying @KJhellico
i have aligned the implementation accordingly en_US is set as the default language for Burkina Faso, while fr is fully supported as an additional localization.

@KJhellico

Copy link
Copy Markdown
Collaborator

en_US is set as the default language for Burkina Faso

en_BF

?

@aman-coder03

Copy link
Copy Markdown
Contributor Author

hey yes you are right, the default locale should be en_BF, not en_US.

@KJhellico

Copy link
Copy Markdown
Collaborator

en_US locale must also be present in all localized countries. And pay attention to Labor/Labour.

@aman-coder03

Copy link
Copy Markdown
Contributor Author

thanks for your guidance @KJhellico
i have added the en_US locale back alongside en_BF, and corrected the Labor/Labour spelling per locale (Labor Day for en_US, Labour Day for en_BF)

@KJhellico

Copy link
Copy Markdown
Collaborator

Please, don't change the commit history in published PR without extreme reason.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jan 9, 2026
Comment thread holidays/countries/burkina_faso.py Outdated
Comment thread holidays/countries/burkina_faso.py Outdated
Comment thread holidays/locale/en_BF/LC_MESSAGES/BF.po Outdated
Comment thread holidays/locale/en_BF/LC_MESSAGES/BF.po Outdated
Comment thread holidays/locale/en_BF/LC_MESSAGES/BF.po Outdated
Comment thread holidays/locale/en_BF/LC_MESSAGES/BF.po Outdated
Comment thread holidays/locale/en_BF/LC_MESSAGES/BF.po
Comment thread holidays/locale/en_BF/LC_MESSAGES/BF.po
@aman-coder03

Copy link
Copy Markdown
Contributor Author

@KJhellico i am on Windows without make
would you be okay if I leave make l10n to CI, or if a maintainer runs it before merge?

@KJhellico

Copy link
Copy Markdown
Collaborator

i am on Windows without make

We have make.cmd script for Windows.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jan 10, 2026
Comment thread holidays/locale/en_US/LC_MESSAGES/BF.po Outdated
KJhellico
KJhellico previously approved these changes Feb 23, 2026

@KJhellico KJhellico left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

PPsyrius
PPsyrius previously approved these changes Feb 24, 2026

@PPsyrius PPsyrius left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM 🇧🇫

@aman-coder03 IMO you might want to add your own name to the CONTRIBUTORS file as well

@aman-coder03

Copy link
Copy Markdown
Contributor Author

@PPsyrius sure I will do that

Comment thread CONTRIBUTORS Outdated
@sonarqubecloud

Copy link
Copy Markdown

@arkid15r arkid15r added this pull request to the merge queue Feb 24, 2026

@arkid15r arkid15r left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Awesome! Thanks for this l10n contribution @aman-coder03 👍

Merged via the queue into vacanza:dev with commit 5897eed Feb 24, 2026
32 checks passed
@aman-coder03

Copy link
Copy Markdown
Contributor Author

thanks @arkid15r looking forward to contribute more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add French (fr) localization for Burkina Faso (BF)

4 participants