Skip to content

Commit

Permalink
Fix parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
KJhellico committed Feb 13, 2024
1 parent 94aa28f commit ae4af14
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion holidays/countries/taiwan.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Taiwan(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays

country = "TW"
# %s (observed).
observed_label = tr("%s (慶祝)")
observed_label = tr("%s(慶祝)")
default_language = "zh_TW"
supported_languages = ("en_US", "th", "zh_CN", "zh_TW")

Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/en_US/LC_MESSAGES/TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ msgstr ""

#. %s (observed).
#, c-format
msgid "%s (慶祝)"
msgid "%s(慶祝)"
msgstr "%s (observed)"

#. Founding Day of the Republic of China.
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/th/LC_MESSAGES/TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ msgstr ""

#. %s (observed).
#, c-format
msgid "%s (慶祝)"
msgid "%s(慶祝)"
msgstr "ชดเชย%s"

#. Founding Day of the Republic of China.
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/zh_CN/LC_MESSAGES/TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgstr ""

#. %s (observed).
#, c-format
msgid "%s (慶祝)"
msgstr "%s (庆祝)"
msgid "%s(慶祝)"
msgstr "%s(庆祝)"

#. Founding Day of the Republic of China.
msgid "中華民國開國紀念日"
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/zh_TW/LC_MESSAGES/TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ msgstr ""

#. %s (observed).
#, c-format
msgid "%s (慶祝)"
msgid "%s(慶祝)"
msgstr ""

#. Founding Day of the Republic of China.
Expand Down
34 changes: 17 additions & 17 deletions tests/countries/test_taiwan.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_new_years_day(self):
"2021-12-31",
"2023-01-02",
)
self.assertHolidayName(f"{name} (慶祝)", obs_dt)
self.assertHolidayName(f"{name}(慶祝)", obs_dt)
self.assertNoNonObservedHoliday(obs_dt)

def test_lunar_new_year(self):
Expand Down Expand Up @@ -119,8 +119,8 @@ def test_lunar_new_year(self):
"2023-01-26",
"2024-02-13",
)
self.assertHolidayName(f"{name_eve} (慶祝)", obs_eve_dt)
self.assertHolidayName(f"{name} (慶祝)", obs_dt)
self.assertHolidayName(f"{name_eve}(慶祝)", obs_eve_dt)
self.assertHolidayName(f"{name}(慶祝)", obs_dt)
self.assertNoNonObservedHoliday(obs_eve_dt, obs_dt)

def test_peace_memorial_day(self):
Expand All @@ -134,7 +134,7 @@ def test_peace_memorial_day(self):
"2016-02-29",
"2021-03-01",
)
self.assertHolidayName(f"{name} (慶祝)", obs_dt)
self.assertHolidayName(f"{name}(慶祝)", obs_dt)
self.assertNoNonObservedHoliday(obs_dt)

def test_childrens_day(self):
Expand All @@ -149,7 +149,7 @@ def test_childrens_day(self):
"2020-04-03",
"2021-04-05",
)
self.assertHolidayName(f"{name} (慶祝)", obs_dt)
self.assertHolidayName(f"{name}(慶祝)", obs_dt)
self.assertNoNonObservedHoliday(obs_dt)

def test_tomb_sweeping_day(self):
Expand Down Expand Up @@ -177,7 +177,7 @@ def test_tomb_sweeping_day(self):
"2020-04-02",
"2021-04-06",
)
self.assertHolidayName(f"{name} (慶祝)", obs_dt)
self.assertHolidayName(f"{name}(慶祝)", obs_dt)
self.assertNoNonObservedHoliday(obs_dt)

def test_dragon_boat_festival(self):
Expand All @@ -203,7 +203,7 @@ def test_dragon_boat_festival(self):
"2015-06-19",
"2025-05-30",
)
self.assertHolidayName(f"{name} (慶祝)", obs_dt)
self.assertHolidayName(f"{name}(慶祝)", obs_dt)
self.assertNoNonObservedHoliday(obs_dt)

def test_mid_autumn_festival(self):
Expand All @@ -229,7 +229,7 @@ def test_mid_autumn_festival(self):
"2015-09-28",
"2022-09-09",
)
self.assertHolidayName(f"{name} (慶祝)", obs_dt)
self.assertHolidayName(f"{name}(慶祝)", obs_dt)
self.assertNoNonObservedHoliday(obs_dt)

def test_national_day(self):
Expand All @@ -241,7 +241,7 @@ def test_national_day(self):
"2020-10-09",
"2021-10-11",
)
self.assertHolidayName(f"{name} (慶祝)", obs_dt)
self.assertHolidayName(f"{name}(慶祝)", obs_dt)
self.assertNoNonObservedHoliday(obs_dt)

def test_2010(self):
Expand Down Expand Up @@ -512,14 +512,14 @@ def test_2023(self):
self.assertHolidays(
Taiwan(years=2023),
("2023-01-01", "中華民國開國紀念日"),
("2023-01-02", "中華民國開國紀念日 (慶祝)"),
("2023-01-02", "中華民國開國紀念日(慶祝)"),
("2023-01-20", "休息日(2023-01-07日起取代)"),
("2023-01-21", "農曆除夕"),
("2023-01-22", "春節"),
("2023-01-23", "春節"),
("2023-01-24", "春節"),
("2023-01-25", "農曆除夕 (慶祝)"),
("2023-01-26", "春節 (慶祝)"),
("2023-01-25", "農曆除夕(慶祝)"),
("2023-01-26", "春節(慶祝)"),
("2023-01-27", "休息日(2023-02-04日起取代)"),
("2023-02-27", "休息日(2023-02-18日起取代)"),
("2023-02-28", "和平紀念日"),
Expand All @@ -542,11 +542,11 @@ def test_2024(self):
("2024-02-10", "春節"),
("2024-02-11", "春節"),
("2024-02-12", "春節"),
("2024-02-13", "春節 (慶祝)"),
("2024-02-14", "春節 (慶祝)"),
("2024-02-13", "春節(慶祝)"),
("2024-02-14", "春節(慶祝)"),
("2024-02-28", "和平紀念日"),
("2024-04-04", "兒童節; 清明節"),
("2024-04-05", "兒童節 (慶祝)"),
("2024-04-05", "兒童節(慶祝)"),
("2024-06-10", "端午節"),
("2024-09-17", "中秋節"),
("2024-10-10", "中華民國國慶日"),
Expand All @@ -564,7 +564,7 @@ def test_l10n_default(self):
("2022-04-04", "兒童節"),
("2022-04-05", "清明節"),
("2022-06-03", "端午節"),
("2022-09-09", "中秋節 (慶祝)"),
("2022-09-09", "中秋節(慶祝)"),
("2022-09-10", "中秋節"),
("2022-10-10", "中華民國國慶日"),
)
Expand Down Expand Up @@ -618,7 +618,7 @@ def test_l10n_zh_cn(self):
("2022-04-04", "儿童节"),
("2022-04-05", "清明节"),
("2022-06-03", "端午节"),
("2022-09-09", "中秋节 (庆祝)"),
("2022-09-09", "中秋节(庆祝)"),
("2022-09-10", "中秋节"),
("2022-10-10", "中华民国国庆日"),
)

0 comments on commit ae4af14

Please sign in to comment.