Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Russia holidays localization: th #2190

Merged
merged 2 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ All other default values are highlighted with bold:
* - Russia
- RU
-
- en_US, **ru**
- en_US, **ru**, th
-
* - Saint Kitts and Nevis
- KN
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/russia.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Russia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat

country = "RU"
default_language = "ru"
supported_languages = ("en_US", "ru")
supported_languages = ("en_US", "ru", "th")
start_year = 1991

def __init__(self, *args, **kwargs):
Expand Down
90 changes: 90 additions & 0 deletions holidays/locale/th/LC_MESSAGES/RU.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# 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)
#
# Russia holidays th localization.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.64\n"
"POT-Creation-Date: 2023-02-15 08:13-0800\n"
"PO-Revision-Date: 2024-12-23 15:43+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: Lingua 4.15.0\n"
"X-Generator: Poedit 3.5\n"

#. New Year's Day.
msgid "Новый год"
msgstr "วันขึ้นปีใหม่"

#. New Year Holidays.
msgid "Новогодние каникулы"
msgstr "วันหยุดขึ้นปีใหม่"

#. Christmas Day.
msgid "Рождество Христово"
msgstr "วันคริสต์มาส"

#. Defender of the Fatherland Day.
msgid "День защитника Отечества"
msgstr "วันพิทักษ์ปิตุภูมิ"

#. International Women's Day.
msgid "Международный женский день"
msgstr "วันสตรีสากล"

#. Holiday of Spring and Labor.
msgid "Праздник Весны и Труда"
msgstr "วันหยุดเทศกาลฤดูใบไม้ผลิและแรงงาน"

#. International Workers' Solidarity Day.
msgid "День международной солидарности трудящихся"
msgstr "วันสมานฉันท์แรงงานสากล"

#. Victory Day.
msgid "День Победы"
msgstr "วันแห่งชัยชนะ"

#. Russia Day.
msgid "День России"
msgstr "วันชาติรัสเซีย"

#. Day of the Adoption of the Declaration of Sovereignty of the Russian
#. Federation.
msgid ""
"День принятия Декларации о государственном суверенитете Российской Федерации"
msgstr "วันประกาศใช้คำประกาศอำนาจอธิปไตยรัฐแห่งสหพันธรัฐรัสเซีย"

#. Unity Day.
msgid "День народного единства"
msgstr "วันเอกภาพแห่งชาติ"

#. Day of consent and reconciliation.
msgid "День согласия и примирения"
msgstr "วันแห่งความตกลงและการปรองดอง"

#. Anniversary of the Great October Socialist Revolution.
msgid "Годовщина Великой Октябрьской социалистической революции"
msgstr "วันครบรอบการปฏิวัติสังคมนิยมแห่งเดือนตุลาคมอันยิ่งใหญ่"

#. Date format (see strftime() Format Codes).
msgid "%d.%m.%Y"
msgstr "%d/%m/%Y"

#. Day off (substituted from %s).
#, c-format
msgid "Выходной (перенесено с %s)"
msgstr "วันหยุด (แทน %s)"
25 changes: 25 additions & 0 deletions tests/countries/test_russia.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,28 @@ def test_l10n_en_us(self):
("2018-11-05", "Day off (substituted from 11/04/2018)"),
("2018-12-31", "Day off (substituted from 12/29/2018)"),
)

def test_l10n_th(self):
self.assertLocalizedHolidays(
"th",
("2018-01-01", "วันหยุดขึ้นปีใหม่"),
("2018-01-02", "วันหยุดขึ้นปีใหม่"),
("2018-01-03", "วันหยุดขึ้นปีใหม่"),
("2018-01-04", "วันหยุดขึ้นปีใหม่"),
("2018-01-05", "วันหยุดขึ้นปีใหม่"),
("2018-01-06", "วันหยุดขึ้นปีใหม่"),
("2018-01-07", "วันคริสต์มาส"),
("2018-01-08", "วันหยุดขึ้นปีใหม่"),
("2018-02-23", "วันพิทักษ์ปิตุภูมิ"),
("2018-03-08", "วันสตรีสากล"),
("2018-03-09", "วันหยุด (แทน 06/01/2018)"),
("2018-04-30", "วันหยุด (แทน 28/04/2018)"),
("2018-05-01", "วันหยุดเทศกาลฤดูใบไม้ผลิและแรงงาน"),
("2018-05-02", "วันหยุด (แทน 07/01/2018)"),
("2018-05-09", "วันแห่งชัยชนะ"),
("2018-06-11", "วันหยุด (แทน 09/06/2018)"),
("2018-06-12", "วันชาติรัสเซีย"),
("2018-11-04", "วันเอกภาพแห่งชาติ"),
("2018-11-05", "วันหยุด (แทน 04/11/2018)"),
("2018-12-31", "วันหยุด (แทน 29/12/2018)"),
)
Loading