aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-15 07:40:15 -0300
committerEuAndreh <eu@euandre.org>2025-05-15 07:40:15 -0300
commite02a0b9480d2424d52db578ee96df8c5160bb0fc (patch)
treef45837358e18d329908d63f48303c4df276b2372
parentUse LC_MESSAGES for tests (diff)
downloadgotext-e02a0b9480d2424d52db578ee96df8c5160bb0fc.tar.gz
gotext-e02a0b9480d2424d52db578ee96df8c5160bb0fc.tar.xz
Remove "MIME-Version" extra header
-rw-r--r--po/doc/de.po1
-rw-r--r--po/doc/doc.pot1
-rw-r--r--po/doc/eo.po1
-rw-r--r--po/doc/es.po1
-rw-r--r--po/doc/fr.po1
-rw-r--r--po/doc/pt.po1
-rw-r--r--po/gotext/de.po1
-rw-r--r--po/gotext/eo.po1
-rw-r--r--po/gotext/es.po1
-rw-r--r--po/gotext/fr.po1
-rw-r--r--po/gotext/gotext.pot1
-rw-r--r--po/gotext/pt.po1
-rw-r--r--po/tests/de.po1
-rw-r--r--po/tests/es.po1
-rw-r--r--po/tests/tests.pot1
-rw-r--r--src/gotext.go1
-rw-r--r--tests/gotext.go10
17 files changed, 0 insertions, 26 deletions
diff --git a/po/doc/de.po b/po/doc/de.po
index 63ea9c8..052cc06 100644
--- a/po/doc/de.po
+++ b/po/doc/de.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: de\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/doc/doc.pot b/po/doc/doc.pot
index 9b86f89..c7797fc 100644
--- a/po/doc/doc.pot
+++ b/po/doc/doc.pot
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. type: Title =
diff --git a/po/doc/eo.po b/po/doc/eo.po
index 3f5b42c..1164d0b 100644
--- a/po/doc/eo.po
+++ b/po/doc/eo.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: eo\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/doc/es.po b/po/doc/es.po
index c64c8a9..25a43a8 100644
--- a/po/doc/es.po
+++ b/po/doc/es.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: es\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/doc/fr.po b/po/doc/fr.po
index 9543c23..e2a575e 100644
--- a/po/doc/fr.po
+++ b/po/doc/fr.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: fr\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
diff --git a/po/doc/pt.po b/po/doc/pt.po
index 898eb66..999b908 100644
--- a/po/doc/pt.po
+++ b/po/doc/pt.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: pt\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/gotext/de.po b/po/gotext/de.po
index e126618..d44d10d 100644
--- a/po/gotext/de.po
+++ b/po/gotext/de.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: de\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/gotext/eo.po b/po/gotext/eo.po
index b96fe42..8068f9f 100644
--- a/po/gotext/eo.po
+++ b/po/gotext/eo.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: eo\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/gotext/es.po b/po/gotext/es.po
index 54d7d10..84afb4e 100644
--- a/po/gotext/es.po
+++ b/po/gotext/es.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: es\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/gotext/fr.po b/po/gotext/fr.po
index 4018d25..d464293 100644
--- a/po/gotext/fr.po
+++ b/po/gotext/fr.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: fr\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
diff --git a/po/gotext/gotext.pot b/po/gotext/gotext.pot
index 494821e..7060f6c 100644
--- a/po/gotext/gotext.pot
+++ b/po/gotext/gotext.pot
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: src/gotext.go:369
diff --git a/po/gotext/pt.po b/po/gotext/pt.po
index 1200a76..6da8ab9 100644
--- a/po/gotext/pt.po
+++ b/po/gotext/pt.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: pt\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/tests/de.po b/po/tests/de.po
index 5137c46..b84b868 100644
--- a/po/tests/de.po
+++ b/po/tests/de.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: de\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/tests/es.po b/po/tests/es.po
index 72623dd..a925bf4 100644
--- a/po/tests/es.po
+++ b/po/tests/es.po
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: es\n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
diff --git a/po/tests/tests.pot b/po/tests/tests.pot
index 2bfeb76..8e4c034 100644
--- a/po/tests/tests.pot
+++ b/po/tests/tests.pot
@@ -1,7 +1,6 @@
msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: tests/functional/api-usage/gotext.go:62 tests/functional/api-usage/gotext.go:67 tests/functional/api-usage/gotext.go:80 tests/functional/api-usage/gotext.go:85 tests/functional/api-usage/gotext.go:98 tests/functional/api-usage/gotext.go:103
diff --git a/src/gotext.go b/src/gotext.go
index 098888f..d2ef382 100644
--- a/src/gotext.go
+++ b/src/gotext.go
@@ -316,7 +316,6 @@ func writePotFile(out io.Writer, msgIDs map[string][]msgIDT) {
const header = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
`
diff --git a/tests/gotext.go b/tests/gotext.go
index 2b8c683..db7d767 100644
--- a/tests/gotext.go
+++ b/tests/gotext.go
@@ -203,7 +203,6 @@ func main() {
const expectedRaw = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: %s:4
@@ -236,7 +235,6 @@ func test_writePotFile() {
const expected = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. foo
@@ -269,7 +267,6 @@ msgstr ""
const expected = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. comment1
@@ -298,7 +295,6 @@ msgstr ""
const expected = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: fname:2
@@ -326,7 +322,6 @@ msgstr ""
const expected = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: fname:2
@@ -355,7 +350,6 @@ msgstr ""
const expected = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: fname:2
@@ -385,7 +379,6 @@ msgstr ""
const expected = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: fname:2
@@ -414,7 +407,6 @@ msgstr[1] ""
const expected = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#. foo
@@ -450,7 +442,6 @@ msgstr ""
const expected = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: fname:2
@@ -492,7 +483,6 @@ func main() {
const expectedRaw = `msgid ""
msgstr ""
"Language: \n"
-"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
#: %[1]s:4