From 5189723071d65ca6e6f1e4ab6f3420bdc2e4173e Mon Sep 17 00:00:00 2001 From: PPsyrius <19505219+PPsyrius@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:09:21 +0700 Subject: [PATCH] [PH] add `fil` as alternative ref to `tl` l10n --- README.rst | 2 +- holidays/countries/philippines.py | 2 +- holidays/locale/fil/LC_MESSAGES/PH.po | 116 ++++++++++++++++++++++++++ tests/countries/test_philippines.py | 29 +++++++ 4 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 holidays/locale/fil/LC_MESSAGES/PH.po diff --git a/README.rst b/README.rst index ba102570e..14bcb78e0 100644 --- a/README.rst +++ b/README.rst @@ -748,7 +748,7 @@ All other default values are highlighted with bold: * - Philippines - PH - - - **en_PH**, en_US, th, tl + - **en_PH**, en_US, fil, th, tl - WORKDAY * - Poland - PL diff --git a/holidays/countries/philippines.py b/holidays/countries/philippines.py index 5dc82ff29..b4735e96f 100644 --- a/holidays/countries/philippines.py +++ b/holidays/countries/philippines.py @@ -52,7 +52,7 @@ class Philippines( default_language = "en_PH" # %s (estimated). estimated_label = tr("%s (estimated)") - supported_languages = ("en_PH", "en_US", "th", "tl") + supported_languages = ("en_PH", "en_US", "fil", "th", "tl") def __init__(self, *args, **kwargs): ChineseCalendarHolidays.__init__(self, cls=PhilippinesChineseHolidays) diff --git a/holidays/locale/fil/LC_MESSAGES/PH.po b/holidays/locale/fil/LC_MESSAGES/PH.po new file mode 100644 index 000000000..91625a500 --- /dev/null +++ b/holidays/locale/fil/LC_MESSAGES/PH.po @@ -0,0 +1,116 @@ +# holidays +# -------- +# A fast, efficient Python library for generating country, province and state +# specific sets of holidays on the fly. It aims to make determining whether a +# specific date is a holiday as fast and flexible as possible. +# +# Authors: Vacanza Team and individual contributors (see AUTHORS file) +# dr-prodigy (c) 2017-2023 +# ryanss (c) 2014-2017 +# Website: https://github.com/vacanza/holidays +# License: MIT (see LICENSE file) +# +# The Philippines holidays fil localization. +# +msgid "" +msgstr "" +"Project-Id-Version: Holidays 0.60\n" +"POT-Creation-Date: 2024-10-30 02:45+0700\n" +"PO-Revision-Date: 2024-11-01 10:09+0700\n" +"Last-Translator: PPsyrius \n" +"Language-Team: Holidays Localization Team\n" +"Language: fil\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Lingva 5.0.3\n" +"X-Generator: Poedit 3.5\n" + +#. New Year's Day. +msgid "New Year's Day" +msgstr "Bagong Taon" + +#. Chinese New Year. +msgid "Chinese New Year" +msgstr "Bagong Taon ng mga Tsino" + +#. EDSA People Power Revolution Anniversary. +msgid "EDSA People Power Revolution Anniversary" +msgstr "Anibersaryo ng Rebolusyon sa EDSA" + +#. Maundy Thursday. +msgid "Maundy Thursday" +msgstr "Huwebes Santo" + +#. Good Friday. +msgid "Good Friday" +msgstr "Biyernes Santo" + +#. Black Saturday. +msgid "Black Saturday" +msgstr "Sabado de Gloria" + +#. Day of Valor. +msgid "Araw ng Kagitingan" +msgstr "Araw ng Kagitingan" + +#. Labor Day. +msgid "Labor Day" +msgstr "Araw ng Paggawa" + +#. Independence Day. +msgid "Independence Day" +msgstr "Araw ng Kalayaan" + +#. Ninoy Aquino Day. +msgid "Ninoy Aquino Day" +msgstr "Araw ng Kabayanihan ni Ninoy Aquino" + +#. National Heroes Day. +msgid "National Heroes Day" +msgstr "Araw ng mga Bayani" + +#. All Saints' Day. +msgid "All Saints' Day" +msgstr "Araw ng mga Santo" + +#. Bonifacio Day. +msgid "Bonifacio Day" +msgstr "Araw ng Kabayanihan ni Bonifacio" + +#. Immaculate Conception. +msgid "Feast of the Immaculate Conception of Mary" +msgstr "Dakilang Kapistahan ng Kalinis-linisang Paglilihi sa Mahal na Birheng Maria" + +#. Christmas Day. +msgid "Christmas Day" +msgstr "Pasko" + +#. Rizal Day. +msgid "Rizal Day" +msgstr "Araw ng Kabayanihan ni Rizal" + +#. New Year's Eve. +msgid "Last Day of the Year" +msgstr "Bisperas ng Bagong Taon" + +#. Eid al-Fitr. +msgid "Eid'l Fitr" +msgstr "Eid al-Fitr" + +#. Eid al-Adha. +msgid "Eid'l Adha" +msgstr "Eid al-Adha" + +#. Additional special (non-working) day. +msgid "Additional special (non-working) day" +msgstr "Karagdagang Espesyal na Araw (Walang Trabajo)" + +#. Elections special (non-working) day. +msgid "Elections special (non-working) day" +msgstr "Araw ng Halalan (Walang Trabajo)" + +#. %s (estimated). +#, c-format +msgid "%s (estimated)" +msgstr "%s (tinatayang)" diff --git a/tests/countries/test_philippines.py b/tests/countries/test_philippines.py index 5b538852e..0cddfbf14 100644 --- a/tests/countries/test_philippines.py +++ b/tests/countries/test_philippines.py @@ -486,6 +486,35 @@ def test_l10n_en_us(self): ("2024-12-31", "New Year's Eve"), ) + def test_l10n_fil(self): + self.assertLocalizedHolidays( + "fil", + ("2024-01-01", "Bagong Taon"), + ("2024-02-09", "Karagdagang Espesyal na Araw (Walang Trabajo)"), + ("2024-02-10", "Bagong Taon ng mga Tsino"), + ("2024-03-28", "Huwebes Santo"), + ("2024-03-29", "Biyernes Santo"), + ("2024-03-30", "Sabado de Gloria"), + ("2024-04-09", "Araw ng Kagitingan"), + ("2024-04-10", "Eid al-Fitr"), + ("2024-05-01", "Araw ng Paggawa"), + ("2024-06-12", "Araw ng Kalayaan"), + ("2024-06-17", "Eid al-Adha"), + ("2024-08-21", "Araw ng Kabayanihan ni Ninoy Aquino"), + ("2024-08-26", "Araw ng mga Bayani"), + ("2024-11-01", "Araw ng mga Santo"), + ("2024-11-02", "Karagdagang Espesyal na Araw (Walang Trabajo)"), + ("2024-11-30", "Araw ng Kabayanihan ni Bonifacio"), + ( + "2024-12-08", + "Dakilang Kapistahan ng Kalinis-linisang Paglilihi sa Mahal na Birheng Maria", + ), + ("2024-12-24", "Karagdagang Espesyal na Araw (Walang Trabajo)"), + ("2024-12-25", "Pasko"), + ("2024-12-30", "Araw ng Kabayanihan ni Rizal"), + ("2024-12-31", "Bisperas ng Bagong Taon"), + ) + def test_l10n_th(self): self.assertLocalizedHolidays( "th",