Localized period names

Also moved to manual management for localization
resources since pybabel decided to ignore
the layout.html file for some reason.