Skip to content

Commit

Permalink
[PH] add fil as alternative ref to tl l10n
Browse files Browse the repository at this point in the history
  • Loading branch information
PPsyrius committed Nov 1, 2024
1 parent 3fbe27d commit 5189723
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/philippines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
116 changes: 116 additions & 0 deletions holidays/locale/fil/LC_MESSAGES/PH.po
Original file line number Diff line number Diff line change
@@ -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 <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <ryanssdev@icloud.com> (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 <ppsyrius@ppsyrius.dev>\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)"
29 changes: 29 additions & 0 deletions tests/countries/test_philippines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5189723

Please sign in to comment.