Skip to content

Commit

Permalink
Add Israel holidays localization: th (#2262)
Browse files Browse the repository at this point in the history
  • Loading branch information
PPsyrius authored Feb 1, 2025
1 parent 39c4aa0 commit 987ca01
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ All other default values are highlighted with bold:
* - Israel
- IL
-
- en_US, **he**, uk
- en_US, **he**, th, uk
- OPTIONAL, SCHOOL
* - Italy
- IT
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/israel.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Israel(ObservedHolidayBase, HebrewCalendarHolidays):
# %s (observed).
observed_label = tr("(נצפה) %s")
supported_categories = (OPTIONAL, PUBLIC, SCHOOL)
supported_languages = ("en_US", "he", "uk")
supported_languages = ("en_US", "he", "th", "uk")
weekend = {FRI, SAT}
start_year = 1948

Expand Down
104 changes: 104 additions & 0 deletions holidays/locale/th/LC_MESSAGES/IL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# 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 <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)
#
# Israel holidays th localization.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.66\n"
"POT-Creation-Date: 2025-02-01 20:46+0700\n"
"PO-Revision-Date: 2025-02-01 21:57+0700\n"
"Last-Translator: PPsyrius <[email protected]>\n"
"Language-Team: Holidays Localization Team\n"
"Language: th\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"

#. Rosh Hashanah (New Year).
msgid "ראש השנה"
msgstr "เทศกาลรอช ฮาชานาห์ (วันปีใหม่ยิว)"

#. Yom Kippur (Day of Atonement).
msgid "יום כיפור"
msgstr "วันยม คิปปูร์"

#. Sukkot (Feast of Tabernacles).
msgid "סוכות"
msgstr "วันสุคคต"

#. Chol HaMoed Sukkot (Feast of Tabernacles holiday).
msgid "חול המועד סוכות"
msgstr "เทศกาลสุคคต"

#. Simchat Torah / Shemini Atzeret.
msgid "שמחת תורה/שמיני עצרת"
msgstr "วันซิมหัต โทราห์ / วันเชมินี อัตเซเรต"

#. Pesach (Passover).
msgid "פסח"
msgstr "วันเพสสะห์"

#. Chol HaMoed Pesach (Passover holiday).
msgid "חול המועד פסח"
msgstr "เทศกาลเพสสะห์"

#. Shvi'i shel Pesach (Seventh day of Passover)
msgid "שביעי של פסח"
msgstr "วันเพสสะห์วันที่เจ็ด"

#. Yom Ha-Atzmaut (Independence Day).
msgid "יום העצמאות"
msgstr "วันชาติอิสราเอล"

#. Shavuot.
msgid "שבועות"
msgstr "วันชาวูโอท"

#. Sigd.
msgid "סיגד"
msgstr "เทศกาลซิกด์"

#. Purim.
msgid "פורים"
msgstr "เทศกาลปูริม"

#. Yom Hazikaron (Fallen Soldiers and Victims of Terrorism Remembrance Day).
msgid "יום הזיכרון לחללי מערכות ישראל ונפגעי פעולות האיבה"
msgstr "วันรำลึกถึงทหารผู้สละชีพและเหยื่อการก่อการร้าย"

#. Yom Yerushalayim (Jerusalem Day).
msgid "יום ירושלים"
msgstr "วันเยรูซาเล็ม"

#. Tisha B'Av (Tisha B'Av, fast).
msgid "תשעה באב"
msgstr "วันทิชอา เบอัฟ"

#. Hanukkah.
msgid "חנוכה"
msgstr "เทศกาลฮานุกกะห์"

#. Ta`anit Ester (Fast of Esther).
msgid "תענית אסתר"
msgstr "วันทาอานิต เอสเธอร์"

#. Lag Ba'omer (Lag BaOmer).
msgid \"ג בעומר"
msgstr "วันแล็ก บาโอเมอร์"

#. %s (observed).
#, c-format
msgid "(נצפה) %s"
msgstr "ชดเชย%s"
39 changes: 39 additions & 0 deletions tests/countries/test_israel.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,45 @@ def test_l10n_en_us(self):
("2021-12-06", "Hanukkah"),
)

def test_l10n_th(self):
self.assertLocalizedHolidays(
"th",
("2021-02-25", "วันทาอานิต เอสเธอร์"),
("2021-02-26", "เทศกาลปูริม"),
("2021-03-28", "วันเพสสะห์"),
("2021-03-29", "เทศกาลเพสสะห์"),
("2021-03-30", "เทศกาลเพสสะห์"),
("2021-03-31", "เทศกาลเพสสะห์"),
("2021-04-01", "เทศกาลเพสสะห์"),
("2021-04-02", "เทศกาลเพสสะห์"),
("2021-04-03", "วันเพสสะห์วันที่เจ็ด"),
("2021-04-14", "ชดเชยวันรำลึกถึงทหารผู้สละชีพและเหยื่อการก่อการร้าย"),
("2021-04-15", "ชดเชยวันชาติอิสราเอล"),
("2021-04-30", "วันแล็ก บาโอเมอร์"),
("2021-05-10", "วันเยรูซาเล็ม"),
("2021-05-17", "วันชาวูโอท"),
("2021-07-18", "วันทิชอา เบอัฟ"),
("2021-09-07", "เทศกาลรอช ฮาชานาห์ (วันปีใหม่ยิว)"),
("2021-09-08", "เทศกาลรอช ฮาชานาห์ (วันปีใหม่ยิว)"),
("2021-09-16", "วันยม คิปปูร์"),
("2021-09-21", "วันสุคคต"),
("2021-09-22", "เทศกาลสุคคต"),
("2021-09-23", "เทศกาลสุคคต"),
("2021-09-24", "เทศกาลสุคคต"),
("2021-09-25", "เทศกาลสุคคต"),
("2021-09-26", "เทศกาลสุคคต"),
("2021-09-28", "วันซิมหัต โทราห์ / วันเชมินี อัตเซเรต"),
("2021-11-04", "เทศกาลซิกด์"),
("2021-11-29", "เทศกาลฮานุกกะห์"),
("2021-11-30", "เทศกาลฮานุกกะห์"),
("2021-12-01", "เทศกาลฮานุกกะห์"),
("2021-12-02", "เทศกาลฮานุกกะห์"),
("2021-12-03", "เทศกาลฮานุกกะห์"),
("2021-12-04", "เทศกาลฮานุกกะห์"),
("2021-12-05", "เทศกาลฮานุกกะห์"),
("2021-12-06", "เทศกาลฮานุกกะห์"),
)

def test_l10n_uk(self):
self.assertLocalizedHolidays(
"uk",
Expand Down

0 comments on commit 987ca01

Please sign in to comment.