Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Page rendering fails if translation file contains certain empty header tags #6

@Tar-Minyatur

Description

@Tar-Minyatur

Looks like some PO file editors insert additional header tags that raise the expectation that a date value is included there. The Babel library used to parse the PO files sees these missing values as error and throws an exception.

I didn't look into it very closely yet, but it can easily be seen if you run the render.py right now. It prints:

Rendering templates\together-we-are-powerful.php
	...
	⚠ Failed to generate for es-MX: time data '' does not match format '%Y-%m-%d %H:%M'

A quick look at the relevant PO file shows that there are header entries called POT-Creation-Date and PO-Revision-Date, which are not present in the other translation files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions