summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freedesktop.org.xml.in3
-rw-r--r--po/POTFILES.skip1
-rw-r--r--tests/list2
-rw-r--r--tests/test-gettext.c7
-rw-r--r--tests/test.pot23
5 files changed, 36 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 775e46e9..e67e2c79 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -5051,6 +5051,9 @@ command to generate the output files.
<sub-class-of type="text/plain"/>
<glob pattern="*.pot"/>
<alias type="text/x-pot"/>
+ <magic priority="50">
+ <match type="string" value='#, fuzzy\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version:' offset="0:256"/>
+ </magic>
</mime-type>
<mime-type type="text/html">
<_comment>HTML document</_comment>
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 94a1671c..c01a9726 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1,2 +1,3 @@
update-mime-database.c
tests/test.xml.in
+tests/test-gettext.c
diff --git a/tests/list b/tests/list
index 638f4991..4734c610 100644
--- a/tests/list
+++ b/tests/list
@@ -386,3 +386,5 @@ testcompress.z application/x-compress
one-file.tnef application/vnd.ms-tnef
# Generated by hand
test.ccmx application/x-ccmx
+# Generated from test-gettext.c with `xgettext -k_ -o test.pot test-gettext.c`
+test.pot text/x-gettext-translation-template x
diff --git a/tests/test-gettext.c b/tests/test-gettext.c
new file mode 100644
index 00000000..8755dc14
--- /dev/null
+++ b/tests/test-gettext.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main()
+{
+ printf(_("test of string\n"));
+ return 0;
+}
diff --git a/tests/test.pot b/tests/test.pot
new file mode 100644
index 00000000..e35d3bb8
--- /dev/null
+++ b/tests/test.pot
@@ -0,0 +1,23 @@
+# 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 <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-11-07 14:54+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: test-gettext.c:5
+#, c-format
+msgid "test of string\n"
+msgstr ""