Skip to content

Commit

Permalink
Simplify estimated label text (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
KJhellico authored Jan 4, 2024
1 parent 774e1af commit 154181d
Show file tree
Hide file tree
Showing 79 changed files with 363 additions and 363 deletions.
2 changes: 1 addition & 1 deletion holidays/countries/algeria.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Algeria(HolidayBase, InternationalHolidays, IslamicHolidays):
country = "DZ"
default_language = "ar"
# Estimated label.
estimated_label = tr("(تقدير*) *%s")
estimated_label = tr("(تقدير) %s")
supported_languages = ("ar", "en_US", "fr")

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/azerbaijan.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Azerbaijan(ObservedHolidayBase, InternationalHolidays, IslamicHolidays, St
country = "AZ"
default_language = "az"
# Estimated label.
estimated_label = tr("%s* (*təxmini)")
estimated_label = tr("%s (təxmini)")
# %s (Observed).
observed_label = tr("%s (müşahidə olunur)")
supported_categories = (PUBLIC, WORKDAY)
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/bahrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Bahrain(HolidayBase, InternationalHolidays, IslamicHolidays):
country = "BH"
default_language = "ar"
# Estimated label.
estimated_label = tr("(تقدير*) *%s")
estimated_label = tr("(تقدير) %s")
supported_languages = ("ar", "en_US")
weekend = {FRI, SAT}

Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/brunei.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Brunei(

country = "BN"
default_language = "ms"
estimated_label = tr("%s* (*anggaran)")
estimated_label = tr("%s (anggaran)")
observed_label = tr("%s - Diperhatikan")
supported_languages = ("en_US", "ms", "th")

Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/djibouti.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Djibouti(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHol
country = "DJ"
default_language = "fr"
# Estimated label.
estimated_label = tr("%s* (*estimé)")
estimated_label = tr("%s (estimé)")
supported_languages = ("ar", "en_US", "fr")
weekend = {FRI, SAT}

Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/egypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Egypt(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHolida
country = "EG"
default_language = "ar"
# Estimated label.
estimated_label = tr("(تقدير*) *%s")
estimated_label = tr("(تقدير) %s")
supported_languages = ("ar", "en_US")

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/ethiopia.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Ethiopia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays):
country = "ET"
default_language = "am"
estimated_label = tr("%s* (*ግምት)")
estimated_label = tr("%s (ግምት)")
supported_languages = ("am", "ar", "en_US")

def _is_leap_year(self):
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/indonesia.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Indonesia(

country = "ID"
default_language = "id"
estimated_label = tr("%s* (*perkiraan)")
estimated_label = tr("%s (perkiraan)")
supported_languages = ("en_US", "id", "uk")
supported_categories = (GOVERNMENT, PUBLIC)

Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/iran.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Iran(HolidayBase, IslamicHolidays, PersianCalendarHolidays):
country = "IR"
default_language = "fa"
# Estimated label.
estimated_label = tr("(تخمین زده*) *%s")
estimated_label = tr("(تخمین زده) %s")
supported_languages = ("en_US", "fa")

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/morocco.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Morocco(HolidayBase, InternationalHolidays, IslamicHolidays):
country = "MA"
default_language = "ar"
# Estimated label.
estimated_label = tr("(تقدير*) *%s")
estimated_label = tr("(تقدير) %s")
supported_languages = ("ar", "en_US", "fr")

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/saudi_arabia.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SaudiArabia(ObservedHolidayBase, IslamicHolidays, StaticHolidays):
country = "SA"
default_language = "ar"
# Estimated label.
estimated_label = tr("(تقدير*) *%s")
estimated_label = tr("(تقدير) %s")
# %s (Observed).
observed_label = tr("(ملاحظة) %s")
supported_languages = ("ar", "en_US")
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/tanzania.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Tanzania(
country = "TZ"
supported_categories = (BANK, PUBLIC)
default_language = "sw"
estimated_label = tr("%s* (*makisio)")
estimated_label = tr("%s (makisio)")
supported_languages = ("en_US", "sw")

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/timor_leste.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TimorLeste(
country = "TL"
supported_categories = (GOVERNMENT, PUBLIC, WORKDAY)
default_language = "pt_TL"
estimated_label = tr("%s* (*aproximada)")
estimated_label = tr("%s (aproximada)")
supported_languages = ("en_US", "pt_TL", "tet")

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/tunisia.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Tunisia(HolidayBase, InternationalHolidays, IslamicHolidays):
country = "TN"
default_language = "ar"
# Estimated label.
estimated_label = tr("(تقدير*) *%s")
estimated_label = tr("(تقدير) %s")
supported_languages = ("ar", "en_US")

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/turkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Turkey(HolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays
country = "TR"
default_language = "tr"
# Estimated label.
estimated_label = tr("%s* (*tahmini)")
estimated_label = tr("%s (tahmini)")
supported_categories = (HALF_DAY, PUBLIC)
supported_languages = ("en_US", "tr", "uk")

Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/united_arab_emirates.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class UnitedArabEmirates(HolidayBase, InternationalHolidays, IslamicHolidays):
country = "AE"
default_language = "ar"
# Estimated label.
estimated_label = tr("(تقدير*) *%s")
estimated_label = tr("(تقدير) %s")
supported_languages = ("ar", "en_US")
weekend = {FRI, SAT}

Expand Down
2 changes: 1 addition & 1 deletion holidays/groups/buddhist.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _add_buddhist_calendar_holiday(
Adds customizable estimation label to holiday name if holiday date
is an estimation.
"""
estimated_label = getattr(self, "estimated_label", "%s* (*estimated)")
estimated_label = getattr(self, "estimated_label", "%s (estimated)")
dt, is_estimated = dt_estimated

return self._add_holiday(
Expand Down
2 changes: 1 addition & 1 deletion holidays/groups/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _add_chinese_calendar_holiday(
Adds customizable estimation label to holiday name if holiday date
is an estimation.
"""
estimated_label = getattr(self, "estimated_label", "%s* (*estimated)")
estimated_label = getattr(self, "estimated_label", "%s (estimated)")
dt, is_estimated = dt_estimated

if days_delta != 0:
Expand Down
2 changes: 1 addition & 1 deletion holidays/groups/hindu.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _add_hindu_calendar_holiday(
Adds customizable estimation label to holiday name if holiday date
is an estimation.
"""
estimated_label = getattr(self, "estimated_label", "%s* (*estimated)")
estimated_label = getattr(self, "estimated_label", "%s (estimated)")
dt, is_estimated = dt_estimated

return self._add_holiday(
Expand Down
2 changes: 1 addition & 1 deletion holidays/groups/islamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def _add_islamic_calendar_holiday(
holiday date is an estimation.
"""
added_dates = set()
estimated_label = getattr(self, "estimated_label", "%s* (*estimated)")
estimated_label = getattr(self, "estimated_label", "%s (estimated)")
for dt, is_estimated in dates:
if days_delta != 0:
dt += td(days=days_delta)
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/am/LC_MESSAGES/ET.po
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ msgid "መውሊድ"
msgstr ""

#, c-format
msgid "%s* (*ግምት)"
msgid "%s (ግምት)"
msgstr ""
2 changes: 1 addition & 1 deletion holidays/locale/ar/LC_MESSAGES/AE.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgid "(تقدير) %s"
msgstr ""

#. New Year's Day.
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/ar/LC_MESSAGES/BH.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgid "(تقدير) %s"
msgstr ""

#. New Year's Day.
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/ar/LC_MESSAGES/DJ.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "%s* (*estimé)"
msgstr "(تقدير*) *%s"
msgid "%s (estimé)"
msgstr "(تقدير) %s"

#. New Year's Day.
msgid "Nouvel an"
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/ar/LC_MESSAGES/DZ.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgid "(تقدير) %s"
msgstr ""

#. New Year's Day.
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/ar/LC_MESSAGES/EG.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgid "(تقدير) %s"
msgstr ""

#. New Year's Day
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/ar/LC_MESSAGES/ET.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ msgstr ""
"X-Generator: Poedit 3.3.1\n"

#, c-format
msgid "%s* (*ግምት)"
msgstr "(تقدير*) *%s"
msgid "%s (ግምት)"
msgstr "(تقدير) %s"

#. Ethiopian New Year.
msgid "አዲስ ዓመት እንቁጣጣሽ"
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/ar/LC_MESSAGES/MA.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgid "(تقدير) %s"
msgstr ""

#. New Year's Day.
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/ar/LC_MESSAGES/SA.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgid "(تقدير) %s"
msgstr ""

#. %s (Observed).
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/ar/LC_MESSAGES/TN.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgid "(تقدير) %s"
msgstr ""

#. New Year's Day.
Expand Down
2 changes: 1 addition & 1 deletion holidays/locale/az/LC_MESSAGES/AZ.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "%s* (*təxmini)"
msgid "%s (təxmini)"
msgstr ""

#. %s (Observed).
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/AE.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgstr "%s* (*estimated)"
msgid "(تقدير) %s"
msgstr "%s (estimated)"

#. New Year's Day.
msgid "رأس السنة الميلادية"
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/AZ.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "%s* (*təxmini)"
msgstr "%s* (*estimated)"
msgid "%s (təxmini)"
msgstr "%s (estimated)"

#. %s (Observed).
#, c-format
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/BH.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgstr "%s* (*estimated)"
msgid "(تقدير) %s"
msgstr "%s (estimated)"

#. New Year's Day.
msgid "رأس السنة الميلادية"
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/BN.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ msgid "Jubli Emas Sultan Hassanal Bolkiah"
msgstr "Sultan Hassanal Bolkiah's Golden Jubilee"

#, c-format
msgid "%s* (*anggaran)"
msgstr "%s* (*estimated)"
msgid "%s (anggaran)"
msgstr "%s (estimated)"

#, c-format
msgid "%s - Diperhatikan"
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/DJ.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "%s* (*estimé)"
msgstr "%s* (*estimated)"
msgid "%s (estimé)"
msgstr "%s (estimated)"

#. New Year's Day.
msgid "Nouvel an"
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/DZ.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgstr "%s* (*estimated)"
msgid "(تقدير) %s"
msgstr "%s (estimated)"

#. New Year's Day.
msgid "رأس السنة الميلادية"
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/EG.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgstr "%s* (*estimated)"
msgid "(تقدير) %s"
msgstr "%s (estimated)"

#. New Year's Day
msgid "رأس السنة الميلادية"
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/ET.po
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ msgid "መውሊድ"
msgstr "Prophet Muhammad's Birthday"

#, c-format
msgid "%s* (*ግምት)"
msgstr "%s* (*estimated)"
msgid "%s (ግምት)"
msgstr "%s (estimated)"
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/ID.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ msgstr ""
"X-Generator: Poedit 3.2.2\n"

#, c-format
msgid "%s* (*perkiraan)"
msgstr "%s* (*estimated)"
msgid "%s (perkiraan)"
msgstr "%s (estimated)"

#. Election Day.
msgid "Hari Pemilihan"
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/IR.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تخمین زده*) *%s"
msgstr "%s* (*estimated)"
msgid "(تخمین زده) %s"
msgstr "%s (estimated)"

#. Persian New Year.
msgid "نوروز"
Expand Down
4 changes: 2 additions & 2 deletions holidays/locale/en_US/LC_MESSAGES/MA.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ msgstr ""

#. Estimated label.
#, c-format
msgid "(تقدير*) *%s"
msgstr "%s* (*estimated)"
msgid "(تقدير) %s"
msgstr "%s (estimated)"

#. New Year's Day.
msgid "رأس السنة الميلادية"
Expand Down
Loading

0 comments on commit 154181d

Please sign in to comment.