diff --git a/README.rst b/README.rst index d84c0454a..cebfa886a 100644 --- a/README.rst +++ b/README.rst @@ -316,7 +316,7 @@ All other default values are highlighted with bold: * - Canada - CA - Provinces and territories: AB, BC, MB, NB, NL, NS, NT, NU, ON, PE, QC, SK, YT - - ar, **en**, fr, th + - ar, **en_CA**, en_US, fr, th - GOVERNMENT, OPTIONAL * - Chad - TD @@ -586,7 +586,7 @@ All other default values are highlighted with bold: * - Malta - MT - - - en_MT, **mt** + - en_US, **mt** - * - Marshall Islands (the) - MH diff --git a/holidays/countries/canada.py b/holidays/countries/canada.py index 4ed00473e..c3ce2f0d8 100644 --- a/holidays/countries/canada.py +++ b/holidays/countries/canada.py @@ -40,7 +40,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat """ country = "CA" - default_language = "en" + default_language = "en_CA" # %s (Observed). observed_label = tr("%s (Observed)") supported_categories = (GOVERNMENT, OPTIONAL, PUBLIC) @@ -59,7 +59,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat "SK", "YT", ) - supported_languages = ("ar", "en", "fr", "th") + supported_languages = ("ar", "en_CA", "en_US", "fr", "th") def __init__(self, *args, **kwargs): ChristianHolidays.__init__(self) diff --git a/holidays/countries/malta.py b/holidays/countries/malta.py index e2fef2c74..3919b24d6 100644 --- a/holidays/countries/malta.py +++ b/holidays/countries/malta.py @@ -38,7 +38,7 @@ class Malta(HolidayBase, ChristianHolidays, InternationalHolidays): country = "MT" default_language = "mt" - supported_languages = ("en_MT", "mt") + supported_languages = ("en_US", "mt") def __init__(self, *args, **kwargs): ChristianHolidays.__init__(self) @@ -53,7 +53,7 @@ def _populate_public_holidays(self): # L-Ewwel tas-Sena # Status: In-Use. - # New Year's Day + # New Year's Day. self._add_new_years_day(tr("L-Ewwel tas-Sena")) # Il-Festa tan-Nawfraġju ta' San Pawl @@ -61,7 +61,7 @@ def _populate_public_holidays(self): # Started in 1987 via Act LX of 1987. if self._year >= 1987: - # Feast of St. Paul's Shipwreck + # Feast of St. Paul's Shipwreck. self._add_holiday_feb_10(tr("Il-Festa tan-Nawfraġju ta' San Pawl")) # Il-Festa ta' San Ġużepp @@ -69,7 +69,7 @@ def _populate_public_holidays(self): # Started in 1987 via Act LX of 1987. if self._year >= 1987: - # Feast of St. Joseph + # Feast of St. Joseph. self._add_saint_josephs_day(tr("Il-Festa ta' San Ġużepp")) # Jum il-Ħelsien @@ -78,19 +78,19 @@ def _populate_public_holidays(self): # Not presented in 1987-1988 if self._year <= 1986 or self._year >= 1989: - # Freedom Day + # Freedom Day. self._add_holiday_mar_31(tr("Jum il-Ħelsien")) # Il-Ġimgħa l-Kbira # Status: In-Use. - # Good Friday + # Good Friday. self._add_good_friday(tr("Il-Ġimgħa l-Kbira")) # Jum il-Ħaddiem # Status: In-Use. - # Worker's Day + # Worker's Day. self._add_labor_day(tr("Jum il-Ħaddiem")) # Sette Giugno @@ -98,7 +98,7 @@ def _populate_public_holidays(self): # Start in 1989 via Act VIII of 1989. if self._year >= 1989: - # Sette Giugno + # Sette Giugno. self._add_holiday_jun_7(tr("Sette Giugno")) # Il-Festa ta' San Pietru u San Pawl @@ -106,13 +106,13 @@ def _populate_public_holidays(self): # Started in 1987 via Act LX of 1987. if self._year >= 1987: - # Feast of St. Peter and St. Paul + # Feast of St. Peter and St. Paul. self._add_saints_peter_and_paul_day(tr("Il-Festa ta' San Pietru u San Pawl")) # Il-Festa ta' Santa Marija # Status: In-Use. - # Feast of the Assumption + # Feast of the Assumption. self._add_assumption_of_mary_day(tr("Il-Festa ta' Santa Marija")) # Jum il-Vitorja @@ -121,7 +121,7 @@ def _populate_public_holidays(self): # While this concides with Nativity Of Mary Day, the two are considered separate. if self._year >= 1987: - # Feast of Our Lady of Victories + # Feast of Our Lady of Victories. self._add_holiday_sep_8(tr("Jum il-Vitorja")) # Jum l-Indipendenza @@ -129,7 +129,7 @@ def _populate_public_holidays(self): # Started in 1987 via Act LX of 1987. if self._year >= 1987: - # Independence Day + # Independence Day. self._add_holiday_sep_21(tr("Jum l-Indipendenza")) # Il-Festa tal-Immakulata Kunċizzjoni @@ -143,13 +143,13 @@ def _populate_public_holidays(self): # Jum ir-Repubblika # Status: In-Use. - # Republic Day + # Republic Day. self._add_holiday_dec_13(tr("Jum ir-Repubblika")) # Il-Milied # Status: In-Use. - # Christmas Day + # Christmas Day. self._add_christmas_day(tr("Il-Milied")) diff --git a/holidays/locale/en/LC_MESSAGES/CA.po b/holidays/locale/en_CA/LC_MESSAGES/CA.po similarity index 96% rename from holidays/locale/en/LC_MESSAGES/CA.po rename to holidays/locale/en_CA/LC_MESSAGES/CA.po index 486136783..d923a0549 100644 --- a/holidays/locale/en/LC_MESSAGES/CA.po +++ b/holidays/locale/en_CA/LC_MESSAGES/CA.po @@ -5,16 +5,16 @@ msgid "" msgstr "" "Project-Id-Version: Python Holidays 0.32\n" "POT-Creation-Date: 2023-04-10 14:10+0300\n" -"PO-Revision-Date: 2023-08-26 18:22+0300\n" +"PO-Revision-Date: 2023-12-26 22:10+0200\n" "Last-Translator: ~Jhellico \n" "Language-Team: Python Holidays localization team\n" -"Language: en\n" +"Language: en_CA\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: Lingua 4.15.0\n" -"X-Generator: Poedit 3.2.2\n" +"X-Generator: Poedit 3.4\n" #. %s (Observed). #, c-format diff --git a/holidays/locale/en_US/LC_MESSAGES/CA.po b/holidays/locale/en_US/LC_MESSAGES/CA.po new file mode 100644 index 000000000..6e21c89f0 --- /dev/null +++ b/holidays/locale/en_US/LC_MESSAGES/CA.po @@ -0,0 +1,150 @@ +# Canada holidays en_US localization. +# Authors: Arkadii Yakovets , (c) 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: Python Holidays 0.32\n" +"POT-Creation-Date: 2023-04-10 14:10+0300\n" +"PO-Revision-Date: 2023-12-26 22:10+0200\n" +"Last-Translator: ~Jhellico \n" +"Language-Team: Python Holidays localization team\n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Generated-By: Lingua 4.15.0\n" +"X-Generator: Poedit 3.4\n" + +#. %s (Observed). +#, c-format +msgid "%s (Observed)" +msgstr "%s (Observed)" + +#. New Year's Day. +msgid "New Year's Day" +msgstr "New Year's Day" + +#. Good Friday. +msgid "Good Friday" +msgstr "Good Friday" + +#. Easter Monday. +msgid "Easter Monday" +msgstr "Easter Monday" + +#. Dominion Day. +msgid "Dominion Day" +msgstr "Dominion Day" + +#. Labour Day. +msgid "Labour Day" +msgstr "Labor Day" + +#. Christmas Day. +msgid "Christmas Day" +msgstr "Christmas Day" + +#. Boxing Day. +msgid "Boxing Day" +msgstr "Boxing Day" + +#. Family Day. +msgid "Family Day" +msgstr "Family Day" + +#. Thanksgiving Day. +msgid "Thanksgiving Day" +msgstr "Thanksgiving Day" + +#. Funeral of Queen Elizabeth II. +msgid "Funeral of Her Majesty the Queen Elizabeth II" +msgstr "Funeral of Her Majesty the Queen Elizabeth II" + +#. Memorial Day. +msgid "Memorial Day" +msgstr "Memorial Day" + +#. Canada Day. +msgid "Canada Day" +msgstr "Canada Day" + +#. Victoria Day. +msgid "Victoria Day" +msgstr "Victoria Day" + +#. Heritage Day. +msgid "Heritage Day" +msgstr "Heritage Day" + +#. Remembrance Day. +msgid "Remembrance Day" +msgstr "Remembrance Day" + +#. British Columbia Day. +msgid "British Columbia Day" +msgstr "British Columbia Day" + +#. National Day for Truth and Reconciliation. +msgid "National Day for Truth and Reconciliation" +msgstr "National Day for Truth and Reconciliation" + +#. Louis Riel Day. +msgid "Louis Riel Day" +msgstr "Louis Riel Day" + +#. Terry Fox Day. +msgid "Terry Fox Day" +msgstr "Terry Fox Day" + +#. Civic Holiday. +msgid "Civic Holiday" +msgstr "Civic Holiday" + +#. New Brunswick Day. +msgid "New Brunswick Day" +msgstr "New Brunswick Day" + +#. St. Patrick's Day. +msgid "St. Patrick's Day" +msgstr "St. Patrick's Day" + +#. St. George's Day. +msgid "St. George's Day" +msgstr "St. George's Day" + +#. Discovery Day. +msgid "Discovery Day" +msgstr "Discovery Day" + +#. National Aboriginal Day. +msgid "National Aboriginal Day" +msgstr "National Aboriginal Day" + +#. Nunavut Day. +msgid "Nunavut Day" +msgstr "Nunavut Day" + +#. Islander Day. +msgid "Islander Day" +msgstr "Islander Day" + +#. National Patriots' Day. +msgid "National Patriots' Day" +msgstr "National Patriots' Day" + +#. St. Jean Baptiste Day. +msgid "St. Jean Baptiste Day" +msgstr "St. John the Baptist Day" + +#. Saskatchewan Day. +msgid "Saskatchewan Day" +msgstr "Saskatchewan Day" + +#. Orangemen's Day. +msgid "Orangemen's Day" +msgstr "Orangemen's Day" + +#. Natal Day. +msgid "Natal Day" +msgstr "Natal Day" diff --git a/holidays/locale/en_MT/LC_MESSAGES/MT.po b/holidays/locale/en_US/LC_MESSAGES/MT.po similarity index 72% rename from holidays/locale/en_MT/LC_MESSAGES/MT.po rename to holidays/locale/en_US/LC_MESSAGES/MT.po index e4a7c5ee1..4c2cd28c6 100644 --- a/holidays/locale/en_MT/LC_MESSAGES/MT.po +++ b/holidays/locale/en_US/LC_MESSAGES/MT.po @@ -1,61 +1,61 @@ -# Malta holidays en_MT localization. +# Malta holidays en_US localization. # Authors: PPsyrius , (c) 2023. # msgid "" msgstr "" "Project-Id-Version: Python Holidays 0.28\n" "POT-Creation-Date: 2023-06-27 19:10+0700\n" -"PO-Revision-Date: \n" -"Last-Translator: PPsyrius \n" +"PO-Revision-Date: 2023-12-26 22:02+0200\n" +"Last-Translator: ~Jhellico \n" "Language-Team: Python Holidays localization team\n" -"Language: en_MT\n" +"Language: en_US\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 3.3.2\n" +"X-Generator: Poedit 3.4\n" -#. New Year's Day +#. New Year's Day. msgid "L-Ewwel tas-Sena" msgstr "New Year's Day" -#. Feast of St. Paul's Shipwreck +#. Feast of St. Paul's Shipwreck. msgid "Il-Festa tan-Nawfraġju ta' San Pawl" msgstr "Feast of St. Paul's Shipwreck" -#. Feast of St. Joseph +#. Feast of St. Joseph. msgid "Il-Festa ta' San Ġużepp" msgstr "Feast of St. Joseph" -#. Freedom Day +#. Freedom Day. msgid "Jum il-Ħelsien" msgstr "Freedom Day" -#. Good Friday +#. Good Friday. msgid "Il-Ġimgħa l-Kbira" msgstr "Good Friday" -#. Worker's Day +#. Worker's Day. msgid "Jum il-Ħaddiem" msgstr "Worker's Day" -#. Sette Giugno +#. Sette Giugno. msgid "Sette Giugno" msgstr "Sette Giugno" -#. Feast of St. Peter and St. Paul +#. Feast of St. Peter and St. Paul. msgid "Il-Festa ta' San Pietru u San Pawl" msgstr "Feast of St. Peter and St. Paul" -#. Feast of the Assumption +#. Feast of the Assumption. msgid "Il-Festa ta' Santa Marija" msgstr "Feast of the Assumption" -#. Feast of Our Lady of Victories +#. Feast of Our Lady of Victories. msgid "Jum il-Vitorja" msgstr "Feast of Our Lady of Victories" -#. Independence Day +#. Independence Day. msgid "Jum l-Indipendenza" msgstr "Independence Day" @@ -63,10 +63,10 @@ msgstr "Independence Day" msgid "Il-Festa tal-Immakulata Kunċizzjoni" msgstr "Feast of the Immaculate Conception" -#. Republic Day +#. Republic Day. msgid "Jum ir-Repubblika" msgstr "Republic Day" -#. Christmas Day +#. Christmas Day. msgid "Il-Milied" msgstr "Christmas Day" diff --git a/holidays/locale/mt/LC_MESSAGES/MT.po b/holidays/locale/mt/LC_MESSAGES/MT.po index f65097af2..6b453498f 100644 --- a/holidays/locale/mt/LC_MESSAGES/MT.po +++ b/holidays/locale/mt/LC_MESSAGES/MT.po @@ -15,47 +15,47 @@ msgstr "" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n==0 || (n%100>=2 && n%100<=10) ? 1 : n%100>=11 && n%100<=19 ? 2 : 3);\n" "X-Generator: Poedit 3.3.2\n" -#. New Year's Day +#. New Year's Day. msgid "L-Ewwel tas-Sena" msgstr "" -#. Feast of St. Paul's Shipwreck +#. Feast of St. Paul's Shipwreck. msgid "Il-Festa tan-Nawfraġju ta' San Pawl" msgstr "" -#. Feast of St. Joseph +#. Feast of St. Joseph. msgid "Il-Festa ta' San Ġużepp" msgstr "" -#. Freedom Day +#. Freedom Day. msgid "Jum il-Ħelsien" msgstr "" -#. Good Friday +#. Good Friday. msgid "Il-Ġimgħa l-Kbira" msgstr "" -#. Worker's Day +#. Worker's Day. msgid "Jum il-Ħaddiem" msgstr "" -#. Sette Giugno +#. Sette Giugno. msgid "Sette Giugno" msgstr "" -#. Feast of St. Peter and St. Paul +#. Feast of St. Peter and St. Paul. msgid "Il-Festa ta' San Pietru u San Pawl" msgstr "" -#. Feast of the Assumption +#. Feast of the Assumption. msgid "Il-Festa ta' Santa Marija" msgstr "" -#. Feast of Our Lady of Victories +#. Feast of Our Lady of Victories. msgid "Jum il-Vitorja" msgstr "" -#. Independence Day +#. Independence Day. msgid "Jum l-Indipendenza" msgstr "" @@ -63,10 +63,10 @@ msgstr "" msgid "Il-Festa tal-Immakulata Kunċizzjoni" msgstr "" -#. Republic Day +#. Republic Day. msgid "Jum ir-Repubblika" msgstr "" -#. Christmas Day +#. Christmas Day. msgid "Il-Milied" msgstr "" diff --git a/tests/countries/test_canada.py b/tests/countries/test_canada.py index ab53cdb4d..576e57269 100644 --- a/tests/countries/test_canada.py +++ b/tests/countries/test_canada.py @@ -864,6 +864,23 @@ def test_l10n_ar(self): ("2022-12-27", "(تمت ملاحظته) عيد الميلاد"), ) + def test_l10n_en_us(self): + self.assertLocalizedHolidays( + "en_US", + ("2022-01-01", "New Year's Day"), + ("2022-01-03", "New Year's Day (Observed)"), + ("2022-04-15", "Good Friday"), + ("2022-05-23", "Victoria Day"), + ("2022-07-01", "Canada Day"), + ("2022-09-05", "Labor Day"), + ("2022-09-30", "National Day for Truth and Reconciliation"), + ("2022-10-10", "Thanksgiving Day"), + ("2022-11-11", "Remembrance Day"), + ("2022-12-25", "Christmas Day"), + ("2022-12-26", "Boxing Day; Christmas Day (Observed)"), + ("2022-12-27", "Christmas Day (Observed)"), + ) + def test_l10n_fr(self): self.assertLocalizedHolidays( "fr", diff --git a/tests/countries/test_malta.py b/tests/countries/test_malta.py index cea4a3fdf..1985877f0 100644 --- a/tests/countries/test_malta.py +++ b/tests/countries/test_malta.py @@ -109,9 +109,9 @@ def test_l10n_default(self): ("2023-12-25", "Il-Milied"), ) - def test_l10n_en_mt(self): + def test_l10n_en_us(self): self.assertLocalizedHolidays( - "en_MT", + "en_US", ("2023-01-01", "New Year's Day"), ("2023-02-10", "Feast of St. Paul's Shipwreck"), ("2023-03-19", "Feast of St. Joseph"),