From 6ffba64fc7119c9a8f2675b5873e7b2b71aeb9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Sat, 16 May 2020 12:21:26 +0200 Subject: [PATCH] Set PO-Revision-Date for PO files created from POT It was already set when _saving_ the file, but that's too late. We need to set it to a valid value at creation time, otherwise Validate on not yet saved file would throw an error. --- src/catalog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/catalog.cpp b/src/catalog.cpp index 0f4c576272..8055853133 100644 --- a/src/catalog.cpp +++ b/src/catalog.cpp @@ -493,6 +493,9 @@ void Catalog::CreateNewHeader(const Catalog::HeaderData& pot_header) HeaderData &dt = Header(); dt = pot_header; + if ( !dt.RevisionDate.empty() ) + dt.RevisionDate = GetCurrentTimeString(); + // UTF-8 should be used by default no matter what the POT uses dt.Charset = "UTF-8";