fix date displayer TODO: estimated and calculated month inflections

This commit is contained in:
Paul Franklin 2015-03-21 12:49:26 -07:00 committed by Ross Gammon
parent 9877666fa5
commit 092a9025dc
2 changed files with 240 additions and 106 deletions

View File

@ -161,47 +161,70 @@ class DateDisplay(object):
"from" "from"
# first date in a span # first date in a span
# You only need to translate this string if you translate one of the # If "from <Month>" needs a special inflection in your
# inflect=_("...") with "from" # language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("from|{long_month} {year}"), : _("from|{long_month} {year}"),
"to" "to"
# second date in a span # second date in a span
# You only need to translate this string if you translate one of the # If "to <Month>" needs a special inflection in your
# inflect=_("...") with "to" # language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("to|{long_month} {year}"), : _("to|{long_month} {year}"),
"between" "between"
# first date in a range # first date in a range
# You only need to translate this string if you translate one of the # If "between <Month>" needs a special inflection in your
# inflect=_("...") with "between" # language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("between|{long_month} {year}"), : _("between|{long_month} {year}"),
"and" "and"
# second date in a range # second date in a range
# You only need to translate this string if you translate one of the # If "and <Month>" needs a special inflection in your
# inflect=_("...") with "and" # language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("and|{long_month} {year}"), : _("and|{long_month} {year}"),
"before" "before"
# If "before <Month>" needs a special inflection in your # If "before <Month>" needs a special inflection in your
# language, translate this to "{long_month.f[X]} {year}" # language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined) # (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("before|{long_month} {year}"), : _("before|{long_month} {year}"),
"after" "after"
# If "after <Month>" needs a special inflection in your # If "after <Month>" needs a special inflection in your
# language, translate this to "{long_month.f[X]} {year}" # language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined) # (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("after|{long_month} {year}"), : _("after|{long_month} {year}"),
"about" "about"
# If "about <Month>" needs a special inflection in your # If "about <Month>" needs a special inflection in your
# language, translate this to "{long_month.f[X]} {year}" # language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined) # (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("about|{long_month} {year}"), : _("about|{long_month} {year}"),
# TODO if no modifier, but with qual, might need to inflect in some lang. "estimated"
# If "estimated <Month>" needs a special inflection in your
# language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("estimated|{long_month} {year}"),
"calculated"
# If "calculated <Month>" needs a special inflection in your
# language, translate this to "{long_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("calculated|{long_month} {year}"),
} }
self.FORMATS_short_month_year = { self.FORMATS_short_month_year = {
@ -210,37 +233,70 @@ class DateDisplay(object):
"from" "from"
# first date in a span # first date in a span
# If "from <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("from|{short_month} {year}"), : _("from|{short_month} {year}"),
"to" "to"
# second date in a span # second date in a span
# If "to <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("to|{short_month} {year}"), : _("to|{short_month} {year}"),
"between" "between"
# first date in a range # first date in a range
# If "between <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("between|{short_month} {year}"), : _("between|{short_month} {year}"),
"and" "and"
# second date in a range # second date in a range
# If "and <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("and|{short_month} {year}"), : _("and|{short_month} {year}"),
"before" "before"
# If "before <Month>" needs a special inflection in your # If "before <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}" # language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined) # (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("before|{short_month} {year}"), : _("before|{short_month} {year}"),
"after" "after"
# If "after <Month>" needs a special inflection in your # If "after <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}" # language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined) # (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("after|{short_month} {year}"), : _("after|{short_month} {year}"),
"about" "about"
# If "about <Month>" needs a special inflection in your # If "about <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}" # language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined) # (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("about|{short_month} {year}"), : _("about|{short_month} {year}"),
"estimated"
# If "estimated <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("estimated|{short_month} {year}"),
"calculated"
# If "calculated <Month>" needs a special inflection in your
# language, translate this to "{short_month.f[X]} {year}"
# (where X is one of the month-name inflections you defined)
# else leave it untranslated
: _("calculated|{short_month} {year}"),
} }
def set_format(self, format): def set_format(self, format):
@ -346,48 +402,40 @@ class DateDisplay(object):
return "" return ""
elif mod == Date.MOD_SPAN: elif mod == Date.MOD_SPAN:
d1 = self.display_cal[cal](start, d1 = self.display_cal[cal](start,
# If there is no special inflection for "from <Month>" in your # If there is no special inflection for "from <Month>"
# language, don't translate this string. # in your language, DON'T translate this string. Otherwise,
# Otherwise, translate it to the ENGLISH!!! ENGLISH!!! # "translate" this to "from" in ENGLISH!!! ENGLISH!!!
# key appearing above in the FORMATS_... dict inflect=_("from-date|"))
# that maps to the special inflected format string that you need to localize.
inflect=_("from-date|"))
d2 = self.display_cal[cal](date.get_stop_date(), d2 = self.display_cal[cal](date.get_stop_date(),
# If there is no special inflection for "to <Month>" in your # If there is no special inflection for "to <Month>"
# language, don't translate this string. # in your language, DON'T translate this string. Otherwise,
# Otherwise, translate it to the ENGLISH!!! ENGLISH!!! # "translate" this to "to" in ENGLISH!!! ENGLISH!!!
# key appearing above in the FORMATS_... dict inflect=_("to-date|"))
# that maps to the special inflected format string that you need to localize.
inflect=_("to-date|"))
scal = self.format_extras(cal, newyear) scal = self.format_extras(cal, newyear)
return _("{date_quality}from {date_start} to {date_stop}" return _("{date_quality}from {date_start} to {date_stop}"
"{nonstd_calendar_and_ny}").format( "{nonstd_calendar_and_ny}").format(
date_quality=qual_str, date_quality=qual_str,
date_start=d1, date_start=d1,
date_stop=d2, date_stop=d2,
nonstd_calendar_and_ny=scal) nonstd_calendar_and_ny=scal)
elif mod == Date.MOD_RANGE: elif mod == Date.MOD_RANGE:
d1 = self.display_cal[cal](start, d1 = self.display_cal[cal](start,
# If there is no special inflection for "between <Month>" in your # If there is no special inflection for "between <Month>"
# language, don't translate this string. # in your language, DON'T translate this string. Otherwise,
# Otherwise, translate it to the ENGLISH!!! ENGLISH!!! # "translate" this to "between" in ENGLISH!!! ENGLISH!!!
# key appearing above in the FORMATS_... dict inflect=_("between-date|"))
# that maps to the special inflected format string that you need to localize.
inflect=_("between-date|"))
d2 = self.display_cal[cal](date.get_stop_date(), d2 = self.display_cal[cal](date.get_stop_date(),
# If there is no special inflection for "and <Month>" in your # If there is no special inflection for "and <Month>"
# language, don't translate this string. # in your language, DON'T translate this string. Otherwise,
# Otherwise, translate it to the ENGLISH!!! ENGLISH!!! # "translate" this to "and" in ENGLISH!!! ENGLISH!!!
# key appearing above in the FORMATS_... dict inflect=_("and-date|"))
# that maps to the special inflected format string that you need to localize.
inflect=_("and-date|"))
scal = self.format_extras(cal, newyear) scal = self.format_extras(cal, newyear)
return _("{date_quality}between {date_start} and {date_stop}" return _("{date_quality}between {date_start} and {date_stop}"
"{nonstd_calendar_and_ny}").format( "{nonstd_calendar_and_ny}").format(
date_quality=qual_str, date_quality=qual_str,
date_start=d1, date_start=d1,
date_stop=d2, date_stop=d2,
nonstd_calendar_and_ny=scal) nonstd_calendar_and_ny=scal)
else: else:
if mod == Date.MOD_BEFORE: if mod == Date.MOD_BEFORE:
# If there is no special inflection for "before <Month>" # If there is no special inflection for "before <Month>"
@ -404,8 +452,26 @@ class DateDisplay(object):
# in your language, DON'T translate this string. Otherwise, # in your language, DON'T translate this string. Otherwise,
# "translate" this to "about" in ENGLISH!!! ENGLISH!!! # "translate" this to "about" in ENGLISH!!! ENGLISH!!!
date_type = _("about-date|") date_type = _("about-date|")
elif qual == Date.QUAL_ESTIMATED:
# If there is no special inflection for "estimated <Month>"
# in your language, DON'T translate this string. Otherwise,
# "translate" this to "estimated" in ENGLISH!!! ENGLISH!!!
date_type = _("estimated-date|")
elif qual == Date.QUAL_CALCULATED:
# If there is no special inflection for "calculated <Month>"
# in your language, DON'T translate this string. Otherwise,
# "translate" this to "calculated" in ENGLISH!!! ENGLISH!!!
date_type = _("calculated-date|")
else: else:
date_type = "" date_type = ""
# TODO -- do "estimated" and "calculated" need their own "if"?
# i.e., what happens if a date is both "modified" and "qualified"?
# it won't matter if the month gets the same lexeme type, but
# what should be done if the types differ? there can only be one
# lexeme type for any month so which one should be last? so we
# will wait and see if any language ever requires such fine tuning
# as maybe it will be as simple as putting the "elif" choices for
# "estimated" and "calculated" before the others, or something
text = self.display_cal[cal](start, inflect=date_type) text = self.display_cal[cal](start, inflect=date_type)
modifier = self._mod_str[mod] modifier = self._mod_str[mod]
# some languages have a modifier after the date (e.g. Finnish) # some languages have a modifier after the date (e.g. Finnish)
@ -415,11 +481,11 @@ class DateDisplay(object):
modifier = '' modifier = ''
scal = self.format_extras(cal, newyear) scal = self.format_extras(cal, newyear)
return _("{date_quality}{noncompound_modifier}{date}" return _("{date_quality}{noncompound_modifier}{date}"
"{nonstd_calendar_and_ny}").format( "{nonstd_calendar_and_ny}").format(
date_quality=qual_str, date_quality=qual_str,
noncompound_modifier=modifier, noncompound_modifier=modifier,
date=text, date=text,
nonstd_calendar_and_ny=scal) nonstd_calendar_and_ny=scal)
def _display_gregorian(self, date_val, **kwargs): def _display_gregorian(self, date_val, **kwargs):
return self._display_calendar(date_val, self.long_months, return self._display_calendar(date_val, self.long_months,

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-03-19 19:45-0700\n" "POT-Creation-Date: 2015-03-21 12:33-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -1407,140 +1407,194 @@ msgid "{long_month} {year}"
msgstr "" msgstr ""
#. first date in a span #. first date in a span
#. You only need to translate this string if you translate one of the #. If "from <Month>" needs a special inflection in your
#. inflect=_("...") with "from" #. language, translate this to "{long_month.f[X]} {year}"
#: ../gramps/gen/datehandler/_datedisplay.py:166 #. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:168
msgid "from|{long_month} {year}" msgid "from|{long_month} {year}"
msgstr "" msgstr ""
#. second date in a span #. second date in a span
#. You only need to translate this string if you translate one of the #. If "to <Month>" needs a special inflection in your
#. inflect=_("...") with "to" #. language, translate this to "{long_month.f[X]} {year}"
#: ../gramps/gen/datehandler/_datedisplay.py:172 #. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:176
msgid "to|{long_month} {year}" msgid "to|{long_month} {year}"
msgstr "" msgstr ""
#. first date in a range #. first date in a range
#. You only need to translate this string if you translate one of the #. If "between <Month>" needs a special inflection in your
#. inflect=_("...") with "between" #. language, translate this to "{long_month.f[X]} {year}"
#: ../gramps/gen/datehandler/_datedisplay.py:178 #. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:184
msgid "between|{long_month} {year}" msgid "between|{long_month} {year}"
msgstr "" msgstr ""
#. second date in a range #. second date in a range
#. You only need to translate this string if you translate one of the #. If "and <Month>" needs a special inflection in your
#. inflect=_("...") with "and" #. language, translate this to "{long_month.f[X]} {year}"
#: ../gramps/gen/datehandler/_datedisplay.py:184 #. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:192
msgid "and|{long_month} {year}" msgid "and|{long_month} {year}"
msgstr "" msgstr ""
#. If "before <Month>" needs a special inflection in your #. If "before <Month>" needs a special inflection in your
#. language, translate this to "{long_month.f[X]} {year}" #. language, translate this to "{long_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined) #. (where X is one of the month-name inflections you defined)
#: ../gramps/gen/datehandler/_datedisplay.py:190 #. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:199
msgid "before|{long_month} {year}" msgid "before|{long_month} {year}"
msgstr "" msgstr ""
#. If "after <Month>" needs a special inflection in your #. If "after <Month>" needs a special inflection in your
#. language, translate this to "{long_month.f[X]} {year}" #. language, translate this to "{long_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined) #. (where X is one of the month-name inflections you defined)
#: ../gramps/gen/datehandler/_datedisplay.py:196 #. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:206
msgid "after|{long_month} {year}" msgid "after|{long_month} {year}"
msgstr "" msgstr ""
#. If "about <Month>" needs a special inflection in your #. If "about <Month>" needs a special inflection in your
#. language, translate this to "{long_month.f[X]} {year}" #. language, translate this to "{long_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined) #. (where X is one of the month-name inflections you defined)
#: ../gramps/gen/datehandler/_datedisplay.py:202 #. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:213
msgid "about|{long_month} {year}" msgid "about|{long_month} {year}"
msgstr "" msgstr ""
#: ../gramps/gen/datehandler/_datedisplay.py:209 #. If "estimated <Month>" needs a special inflection in your
#. language, translate this to "{long_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:220
msgid "estimated|{long_month} {year}"
msgstr ""
#. If "calculated <Month>" needs a special inflection in your
#. language, translate this to "{long_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:227
msgid "calculated|{long_month} {year}"
msgstr ""
#: ../gramps/gen/datehandler/_datedisplay.py:232
msgid "{short_month} {year}" msgid "{short_month} {year}"
msgstr "" msgstr ""
#. first date in a span #. first date in a span
#: ../gramps/gen/datehandler/_datedisplay.py:213 #. If "from <Month>" needs a special inflection in your
#. language, translate this to "{short_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:240
msgid "from|{short_month} {year}" msgid "from|{short_month} {year}"
msgstr "" msgstr ""
#. second date in a span #. second date in a span
#: ../gramps/gen/datehandler/_datedisplay.py:217 #. If "to <Month>" needs a special inflection in your
#. language, translate this to "{short_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:248
msgid "to|{short_month} {year}" msgid "to|{short_month} {year}"
msgstr "" msgstr ""
#. first date in a range #. first date in a range
#: ../gramps/gen/datehandler/_datedisplay.py:221 #. If "between <Month>" needs a special inflection in your
#. language, translate this to "{short_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:256
msgid "between|{short_month} {year}" msgid "between|{short_month} {year}"
msgstr "" msgstr ""
#. second date in a range #. second date in a range
#: ../gramps/gen/datehandler/_datedisplay.py:225 #. If "and <Month>" needs a special inflection in your
#. language, translate this to "{short_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:264
msgid "and|{short_month} {year}" msgid "and|{short_month} {year}"
msgstr "" msgstr ""
#. If "before <Month>" needs a special inflection in your #. If "before <Month>" needs a special inflection in your
#. language, translate this to "{short_month.f[X]} {year}" #. language, translate this to "{short_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined) #. (where X is one of the month-name inflections you defined)
#: ../gramps/gen/datehandler/_datedisplay.py:231 #. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:271
msgid "before|{short_month} {year}" msgid "before|{short_month} {year}"
msgstr "" msgstr ""
#. If "after <Month>" needs a special inflection in your #. If "after <Month>" needs a special inflection in your
#. language, translate this to "{short_month.f[X]} {year}" #. language, translate this to "{short_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined) #. (where X is one of the month-name inflections you defined)
#: ../gramps/gen/datehandler/_datedisplay.py:237 #. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:278
msgid "after|{short_month} {year}" msgid "after|{short_month} {year}"
msgstr "" msgstr ""
#. If "about <Month>" needs a special inflection in your #. If "about <Month>" needs a special inflection in your
#. language, translate this to "{short_month.f[X]} {year}" #. language, translate this to "{short_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined) #. (where X is one of the month-name inflections you defined)
#: ../gramps/gen/datehandler/_datedisplay.py:243 #. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:285
msgid "about|{short_month} {year}" msgid "about|{short_month} {year}"
msgstr "" msgstr ""
#. If there is no special inflection for "from <Month>" in your #. If "estimated <Month>" needs a special inflection in your
#. language, don't translate this string. #. language, translate this to "{short_month.f[X]} {year}"
#. Otherwise, translate it to the ENGLISH!!! ENGLISH!!! #. (where X is one of the month-name inflections you defined)
#. key appearing above in the FORMATS_... dict #. else leave it untranslated
#. that maps to the special inflected format string that you need to localize. #: ../gramps/gen/datehandler/_datedisplay.py:292
#: ../gramps/gen/datehandler/_datedisplay.py:354 msgid "estimated|{short_month} {year}"
msgstr ""
#. If "calculated <Month>" needs a special inflection in your
#. language, translate this to "{short_month.f[X]} {year}"
#. (where X is one of the month-name inflections you defined)
#. else leave it untranslated
#: ../gramps/gen/datehandler/_datedisplay.py:299
msgid "calculated|{short_month} {year}"
msgstr ""
#. If there is no special inflection for "from <Month>"
#. in your language, DON'T translate this string. Otherwise,
#. "translate" this to "from" in ENGLISH!!! ENGLISH!!!
#: ../gramps/gen/datehandler/_datedisplay.py:408
msgid "from-date|" msgid "from-date|"
msgstr "" msgstr ""
#. If there is no special inflection for "to <Month>" in your #. If there is no special inflection for "to <Month>"
#. language, don't translate this string. #. in your language, DON'T translate this string. Otherwise,
#. Otherwise, translate it to the ENGLISH!!! ENGLISH!!! #. "translate" this to "to" in ENGLISH!!! ENGLISH!!!
#. key appearing above in the FORMATS_... dict #: ../gramps/gen/datehandler/_datedisplay.py:413
#. that maps to the special inflected format string that you need to localize.
#: ../gramps/gen/datehandler/_datedisplay.py:361
msgid "to-date|" msgid "to-date|"
msgstr "" msgstr ""
#: ../gramps/gen/datehandler/_datedisplay.py:363 #: ../gramps/gen/datehandler/_datedisplay.py:415
msgid "{date_quality}from {date_start} to {date_stop}{nonstd_calendar_and_ny}" msgid "{date_quality}from {date_start} to {date_stop}{nonstd_calendar_and_ny}"
msgstr "" msgstr ""
#. If there is no special inflection for "between <Month>" in your #. If there is no special inflection for "between <Month>"
#. language, don't translate this string. #. in your language, DON'T translate this string. Otherwise,
#. Otherwise, translate it to the ENGLISH!!! ENGLISH!!! #. "translate" this to "between" in ENGLISH!!! ENGLISH!!!
#. key appearing above in the FORMATS_... dict #: ../gramps/gen/datehandler/_datedisplay.py:426
#. that maps to the special inflected format string that you need to localize.
#: ../gramps/gen/datehandler/_datedisplay.py:376
msgid "between-date|" msgid "between-date|"
msgstr "" msgstr ""
#. If there is no special inflection for "and <Month>" in your #. If there is no special inflection for "and <Month>"
#. language, don't translate this string. #. in your language, DON'T translate this string. Otherwise,
#. Otherwise, translate it to the ENGLISH!!! ENGLISH!!! #. "translate" this to "and" in ENGLISH!!! ENGLISH!!!
#. key appearing above in the FORMATS_... dict #: ../gramps/gen/datehandler/_datedisplay.py:431
#. that maps to the special inflected format string that you need to localize.
#: ../gramps/gen/datehandler/_datedisplay.py:383
msgid "and-date|" msgid "and-date|"
msgstr "" msgstr ""
#: ../gramps/gen/datehandler/_datedisplay.py:385 #: ../gramps/gen/datehandler/_datedisplay.py:433
msgid "" msgid ""
"{date_quality}between {date_start} and {date_stop}{nonstd_calendar_and_ny}" "{date_quality}between {date_start} and {date_stop}{nonstd_calendar_and_ny}"
msgstr "" msgstr ""
@ -1548,45 +1602,59 @@ msgstr ""
#. If there is no special inflection for "before <Month>" #. If there is no special inflection for "before <Month>"
#. in your language, DON'T translate this string. Otherwise, #. in your language, DON'T translate this string. Otherwise,
#. "translate" this to "before" in ENGLISH!!! ENGLISH!!! #. "translate" this to "before" in ENGLISH!!! ENGLISH!!!
#: ../gramps/gen/datehandler/_datedisplay.py:396 #: ../gramps/gen/datehandler/_datedisplay.py:444
msgid "before-date|" msgid "before-date|"
msgstr "" msgstr ""
#. If there is no special inflection for "after <Month>" #. If there is no special inflection for "after <Month>"
#. in your language, DON'T translate this string. Otherwise, #. in your language, DON'T translate this string. Otherwise,
#. "translate" this to "after" in ENGLISH!!! ENGLISH!!! #. "translate" this to "after" in ENGLISH!!! ENGLISH!!!
#: ../gramps/gen/datehandler/_datedisplay.py:401 #: ../gramps/gen/datehandler/_datedisplay.py:449
msgid "after-date|" msgid "after-date|"
msgstr "" msgstr ""
#. If there is no special inflection for "about <Month>" #. If there is no special inflection for "about <Month>"
#. in your language, DON'T translate this string. Otherwise, #. in your language, DON'T translate this string. Otherwise,
#. "translate" this to "about" in ENGLISH!!! ENGLISH!!! #. "translate" this to "about" in ENGLISH!!! ENGLISH!!!
#: ../gramps/gen/datehandler/_datedisplay.py:406 #: ../gramps/gen/datehandler/_datedisplay.py:454
msgid "about-date|" msgid "about-date|"
msgstr "" msgstr ""
#: ../gramps/gen/datehandler/_datedisplay.py:417 #. If there is no special inflection for "estimated <Month>"
#. in your language, DON'T translate this string. Otherwise,
#. "translate" this to "estimated" in ENGLISH!!! ENGLISH!!!
#: ../gramps/gen/datehandler/_datedisplay.py:459
msgid "estimated-date|"
msgstr ""
#. If there is no special inflection for "calculated <Month>"
#. in your language, DON'T translate this string. Otherwise,
#. "translate" this to "calculated" in ENGLISH!!! ENGLISH!!!
#: ../gramps/gen/datehandler/_datedisplay.py:464
msgid "calculated-date|"
msgstr ""
#: ../gramps/gen/datehandler/_datedisplay.py:483
msgid "{date_quality}{noncompound_modifier}{date}{nonstd_calendar_and_ny}" msgid "{date_quality}{noncompound_modifier}{date}{nonstd_calendar_and_ny}"
msgstr "" msgstr ""
#. TRANSLATORS: this month is ALREADY inflected: ignore it #. TRANSLATORS: this month is ALREADY inflected: ignore it
#: ../gramps/gen/datehandler/_datedisplay.py:495 #: ../gramps/gen/datehandler/_datedisplay.py:561
msgid "{long_month} {day:d}, {year}" msgid "{long_month} {day:d}, {year}"
msgstr "" msgstr ""
#. TRANSLATORS: this month is ALREADY inflected: ignore it #. TRANSLATORS: this month is ALREADY inflected: ignore it
#: ../gramps/gen/datehandler/_datedisplay.py:519 #: ../gramps/gen/datehandler/_datedisplay.py:585
msgid "{short_month} {day:d}, {year}" msgid "{short_month} {day:d}, {year}"
msgstr "" msgstr ""
#. TRANSLATORS: this month is ALREADY inflected: ignore it #. TRANSLATORS: this month is ALREADY inflected: ignore it
#: ../gramps/gen/datehandler/_datedisplay.py:543 #: ../gramps/gen/datehandler/_datedisplay.py:609
msgid "{day:d} {long_month} {year}" msgid "{day:d} {long_month} {year}"
msgstr "" msgstr ""
#. TRANSLATORS: this month is ALREADY inflected: ignore it #. TRANSLATORS: this month is ALREADY inflected: ignore it
#: ../gramps/gen/datehandler/_datedisplay.py:567 #: ../gramps/gen/datehandler/_datedisplay.py:633
msgid "{day:d} {short_month} {year}" msgid "{day:d} {short_month} {year}"
msgstr "" msgstr ""