Skip to content

Commit

Permalink
Removing usage of get since new keys are now there.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Dec 22, 2016
1 parent 30cf3cc commit 493ac54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/task/archive.py
Expand Up @@ -102,15 +102,15 @@ def get_classification_friendly_name(self, classification, lang, only_last_compo
return month
else:
year = classification[0]
return self.site.MESSAGES[lang].get('{month} {year}', '{month} {year}').format(year=year, month=month)
return self.site.MESSAGES[lang]['{month} {year}'].format(year=year, month=month)
else:
day = int(classification[2])
if only_last_component:
return str(day)
else:
year = classification[0]
month = nikola.utils.LocaleBorg().get_month_name(int(classification[1]), lang)
return self.site.MESSAGES[lang].get('{month} {day}, {year}', '{month} {day}, {year}').format(year=year, month=month, day=day)
return self.site.MESSAGES[lang]['{month} {day}, {year}'].format(year=year, month=month, day=day)

def get_path(self, classification, lang, dest_type='page'):
"""A path handler for the given classification."""
Expand Down

0 comments on commit 493ac54

Please sign in to comment.