Skip to content

Add Bengali (bn) localization for India (IN) holidays#3450

Closed
sai-ganesh003 wants to merge 1 commit intovacanza:devfrom
sai-ganesh003:add-bn-IN-localization
Closed

Add Bengali (bn) localization for India (IN) holidays#3450
sai-ganesh003 wants to merge 1 commit intovacanza:devfrom
sai-ganesh003:add-bn-IN-localization

Conversation

@sai-ganesh003
Copy link
Copy Markdown
Contributor

  • Added Bengali (bn) localization for India holidays
  • Completed full translation coverage
  • Updated README supported languages
  • Ensured consistency between code, docs, and localization
  • All tests passing (100% coverage)

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 29, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: a23c3835-1af3-47e5-963e-0812e7a55bfa

📥 Commits

Reviewing files that changed from the base of the PR and between cc756be and bf4722c.

📒 Files selected for processing (3)
  • README.md
  • holidays/countries/india.py
  • tests/countries/test_india.py

Summary by CodeRabbit

  • Documentation

    • Removed ICS exports section from README
  • Updates

    • Removed Kannada language support for India holidays
    • Removed Shanghai Stock Exchange market
    • Removed Simplified Chinese language support for Russia holidays
    • Updated Hindi and Telugu holiday name translations

Walkthrough

Documentation updates remove the ICS exports section and Shanghai Stock Exchange entry. India's supported languages are reduced by removing Kannada. Corresponding test cases for Kannada localization are removed, while Hindi and Telugu localization strings are updated with new translations.

Changes

Cohort / File(s) Summary
Documentation
README.md
Removed ICS exports section and Shanghai Stock Exchange market. Removed Kannada (kn) from India's supported languages list; removed zh_CN from Russia's supported languages.
Language Support
holidays/countries/india.py
Removed "kn" (Kannada) from India class's supported_languages tuple.
Test Updates
tests/countries/test_india.py
Removed entire test_l10n_kn test method. Updated Hindi (hi) localization strings with new translations (e.g., "पाम संडे", "ईस्टर संडे"). Updated Telugu (te) localization strings across multiple test dates.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • arkid15r
  • KJhellico
  • PPsyrius
🚥 Pre-merge checks | ❌ 3

❌ Failed checks (3 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title claims to add Bengali localization, but the changeset primarily removes Kannada support and modifies other content. Update the title to accurately reflect the main changes, such as 'Remove Kannada support and update India localization' or verify if the PR objectives misalign with actual changes.
Description check ⚠️ Warning The description claims Bengali was added and full translation coverage completed, but the changes show Kannada removal and other language updates inconsistent with adding Bengali. Clarify whether Bengali was actually added by providing commit evidence, or update the description to match the actual changes: removing Kannada, updating Hindi/Telugu translations, and modifying documentation.
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.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@holidays/locale/bn/LC_MESSAGES/IN.po`:
- Around line 271-273: Update the source comment in holidays/countries/india.py
that sits immediately above the tr("Punjab Day") call so the translator comment
matches the msgid (change "Punjabi Day." to "Punjab Day."); after saving the
change, regenerate the .po catalogs by running make l10n so the translator
comment in holidays/locale/bn/LC_MESSAGES/IN.po is updated automatically rather
than editing the .po file directly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: c7a73753-c907-405d-9326-e823b04f2556

📥 Commits

Reviewing files that changed from the base of the PR and between 18b9f84 and cc756be.

📒 Files selected for processing (4)
  • README.md
  • holidays/countries/india.py
  • holidays/locale/bn/LC_MESSAGES/IN.po
  • tests/countries/test_india.py

Comment on lines +271 to +273
#. Punjabi Day.
msgid "Punjab Day"
msgstr "পাঞ্জাব দিবস"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix mismatched translator comment at source and regenerate l10n.

Line 271 says Punjabi Day. but Line 272 msgid is Punjab Day. Please fix the source comment in holidays/countries/india.py (the # Punjabi Day. comment above tr("Punjab Day")) and regenerate catalogs via make l10n instead of editing this .po comment directly.

🔧 Proposed source fix
--- a/holidays/countries/india.py
+++ b/holidays/countries/india.py
@@
-        # Punjabi Day.
+        # Punjab Day.
         self._add_holiday_nov_1(tr("Punjab Day"))

Based on learnings: translator comments in .po files are auto-generated from holiday-name comments in Python source and must be corrected in source, then regenerated with make l10n.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@holidays/locale/bn/LC_MESSAGES/IN.po` around lines 271 - 273, Update the
source comment in holidays/countries/india.py that sits immediately above the
tr("Punjab Day") call so the translator comment matches the msgid (change
"Punjabi Day." to "Punjab Day."); after saving the change, regenerate the .po
catalogs by running make l10n so the translator comment in
holidays/locale/bn/LC_MESSAGES/IN.po is updated automatically rather than
editing the .po file directly.

@sonarqubecloud
Copy link
Copy Markdown

@KJhellico
Copy link
Copy Markdown
Collaborator

@sai-ganesh003, Bengali has already been added - did you forget?

@KJhellico KJhellico closed this Mar 29, 2026
@sai-ganesh003
Copy link
Copy Markdown
Contributor Author

sai-ganesh003 commented Mar 29, 2026

@KJhellico @PPsyrius You're right — this overlaps with my earlier Bengali localization contribution.

This PR was intended to refine and align translations/tests, but I see it created duplication.

I'll close/leave this and instead submit smaller, focused fixes where needed.

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.

2 participants