slight tweak to date displayer, for Finnish

This commit is contained in:
Paul Franklin 2015-03-19 19:41:51 -07:00
parent 8cf9e7324d
commit 8d0ae96b7d
2 changed files with 13 additions and 1 deletions

View File

@ -407,11 +407,17 @@ class DateDisplay(object):
else:
date_type = ""
text = self.display_cal[cal](start, inflect=date_type)
modifier = self._mod_str[mod]
# some languages have a modifier after the date (e.g. Finnish)
# (if so, they are specified in DateParser.modifier_after_to_int)
if modifier.startswith(' '):
text += modifier
modifier = ''
scal = self.format_extras(cal, newyear)
return _("{date_quality}{noncompound_modifier}{date}"
"{nonstd_calendar_and_ny}").format(
date_quality=qual_str,
noncompound_modifier=self._mod_str[mod],
noncompound_modifier=modifier,
date=text,
nonstd_calendar_and_ny=scal)

View File

@ -205,8 +205,14 @@ class DateStrings(object):
)
self.modifiers = ("",
# TRANSLATORS: if the modifier is after the date
# put the space ahead of the word instead of after it
_("date modifier|before "),
# TRANSLATORS: if the modifier is after the date
# put the space ahead of the word instead of after it
_("date modifier|after "),
# TRANSLATORS: if the modifier is after the date
# put the space ahead of the word instead of after it
_("date modifier|about "),
"", "", "")