From dd444fa7d4eeebabe1076040e9ce61b0b018f5ac Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 3 Aug 2025 02:52:43 +0200 Subject: Use the current date and time --- cmd/extpo/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/extpo/main.go b/cmd/extpo/main.go index 3a72a30..6aa1503 100644 --- a/cmd/extpo/main.go +++ b/cmd/extpo/main.go @@ -10,6 +10,7 @@ import ( "slices" "strings" "text/template/parse" + "time" ) type config struct { @@ -86,8 +87,7 @@ func main() { process(f) } - /* TODO: Use the correct date */ - fmt.Fprint(outfile, `# SOME DESCRIPTIVE TITLE. + fmt.Fprintf(outfile, `# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. @@ -97,7 +97,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-07-27 20:08+0200\n" +"POT-Creation-Date: %s\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -105,7 +105,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -`) +`, time.Now().Format("2006-01-02 15:04-0700")) for tl, ti := range translations { if ti.comment != "" { -- cgit v1.2.3