summaryrefslogtreecommitdiff
path: root/tests/root
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2012-12-16 22:56:38 +0900
committershimizukawa <shimizukawa@gmail.com>2012-12-16 22:56:38 +0900
commitc4e8dfd718af805a9cff0e68cd6ef5d1cee965d2 (patch)
tree719bda85249bb00f118604894ea29c561672b103 /tests/root
parent657d4a741bfa2ee335d38759d92885c2636d0e71 (diff)
downloadsphinx-c4e8dfd718af805a9cff0e68cd6ef5d1cee965d2.tar.gz
Avoid unusable warning in using i18n translation. Closes #1057.
And there is related information at pull request #86
Diffstat (limited to 'tests/root')
-rw-r--r--tests/root/i18n/index.txt1
-rw-r--r--tests/root/i18n/literalblock.po30
-rw-r--r--tests/root/i18n/literalblock.txt13
3 files changed, 44 insertions, 0 deletions
diff --git a/tests/root/i18n/index.txt b/tests/root/i18n/index.txt
index f35e2766..ee2d1c5f 100644
--- a/tests/root/i18n/index.txt
+++ b/tests/root/i18n/index.txt
@@ -5,3 +5,4 @@
footnote
external_links
refs_inconsistency
+ literalblock
diff --git a/tests/root/i18n/literalblock.po b/tests/root/i18n/literalblock.po
new file mode 100644
index 00000000..8ea83b3b
--- /dev/null
+++ b/tests/root/i18n/literalblock.po
@@ -0,0 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) 2012, foof
+# This file is distributed under the same license as the foo package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: sphinx 1.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-11-22 08:28\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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "i18n with literal block"
+msgstr "I18N WITH LITERAL BLOCK"
+
+msgid "Correct literal block::"
+msgstr "CORRECT LITERAL BLOCK::"
+
+msgid "Missing literal block::"
+msgstr "MISSING LITERAL BLOCK::"
+
+msgid "That's all."
+msgstr "THAT'S ALL."
+
diff --git a/tests/root/i18n/literalblock.txt b/tests/root/i18n/literalblock.txt
new file mode 100644
index 00000000..c9c71099
--- /dev/null
+++ b/tests/root/i18n/literalblock.txt
@@ -0,0 +1,13 @@
+:tocdepth: 2
+
+i18n with literal block
+=========================
+
+Correct literal block::
+
+ this is
+ literal block
+
+Missing literal block::
+
+That's all.